maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Multimedia (https://talk.maemo.org/forumdisplay.php?f=32)
-   -   [M4+5] oscp - multiplatform player for (almost) any file format and network streams (using libav/ffmpeg and others), now with pygtk GUI (https://talk.maemo.org/showthread.php?t=94590)

saponga 2015-02-28 01:19

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
Quote:

Originally Posted by KotCzarny (Post 1462299)
weird, are you using package from extras-devel or some older build?

0.9.7-2 from extras-devel.

KotCzarny 2015-02-28 01:25

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
btw. are you talking about bluetooth keys or the ones from oscp-remote.py ? also, are you using stock fremantle or some other dist?

saponga 2015-02-28 12:57

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
Quote:

Originally Posted by KotCzarny (Post 1462301)
btw. are you talking about bluetooth keys or the ones from oscp-remote.py ? also, are you using stock fremantle or some other dist?

Bluetooth keys. I'm on cssu-thumb and kernel-power-53.

KotCzarny 2015-02-28 13:17

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
i don't have bt headset and using stock fremantle. you can try running dbus-monitor --system, log button presses and paste them here

saponga 2015-02-28 14:07

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
Quote:

Originally Posted by KotCzarny (Post 1462345)
i don't have bt headset and using stock fremantle. you can try running dbus-monitor --system, log button presses and paste them here

Never mind... :) I'm sure to you have another priorities and the keys are working anyway. Double click isn't a big deal at all.
Thanks again :)

Sohil876 2015-03-01 16:08

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
@KotCzarny what about playlist support? It will definetly be very useful if there is playlist support in cli and gui modes, and being able to keep the player in (daemon mode) running with a playlist with repeat and shuffle options if possible will definetly be very helpful and maybe more battery efficient than MP widget or OMP's background option.

KotCzarny 2015-03-01 16:56

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
@sohil876: it has support for 10 favourite lists, for example do: find /media/mmc1/mp3/pop/ -type f > ~/fav-7.m3u then press number 7 in oscp (don't remember if i set fav load in remote). another option is to navigate to some dir and press ';' or 'make recursive list' button

Sohil876 2015-03-01 19:56

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
Quote:

Originally Posted by KotCzarny (Post 1462463)
@sohil876: it has support for 10 favourite lists, for example do: find /media/mmc1/mp3/pop/ -type f > ~/fav-7.m3u then press number 7 in oscp (don't remember if i set fav load in remote). another option is to navigate to some dir and press ';' or 'make recursive list' button

Awesome, i made a playlist ~/watever.m3u pasted locations in it then set the file in ~/oscp.conf to be accessible via key 1 and the list showed up, awesome just what i was looking for. Btw when i created a recurcive list from oscp by pressing ; i noticed it created a list but locations in it contained extra slash after MyDocs though the list did work, eg. i created a list of /home/user/MyDocs/.sounds/abc/ locations in list file were /home/user/MyDocs//.sounds/abc/ , so is it intentional?. also .aac files duration is incorrectly shown.

KotCzarny 2015-03-01 20:26

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
1/ double slashes are the non critical bug when fixing paths
2/ duration is shown as reported by libav, vbr files without proper tag often show it wrong (otherwise would need to scan whole file)
3/ you can have dir where you can prepare lists and just navigate there as usual and they will show as 'dirs'
4/ if you create list by ';' then look for it in ~/oscp.m3u, you can just copy it to some other name (makes preparing a bit easier as it will only contain audio files, but is not that important as list will be filtered on load anyway)
5/ you can even have http://..... stations/links in the .m3u file
6/ if you like oscp, spread the word

KotCzarny 2015-03-02 09:48

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
upped oscp-0.9.7-5 to extras-devel, should show in repo in ~50 minutes. everything was rebuilt with -O3

endsormeans 2015-03-02 16:07

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
Grand grand grand ..
ahhhh...
soooo ...
when does it hit diablo extras-devel ?
:D

KotCzarny 2015-03-02 16:29

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
@endsormeans: as soon as i prepare diablo sdk (or i manage to stick deb tools on device)

KotCzarny 2015-03-02 18:21

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
ok, upped the package to diablo. please remove all traces of oscp before installing. havent' tested it yet (will do when i have a bit of time)

KotCzarny 2015-03-02 19:19

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
mind slip with dependencies, eh, it's late. anyway, fixed and upped as 0.9.7-6

KotCzarny 2015-03-02 21:12

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
well, it was built for stock fremantle, but i'm happy it works on cssu too. and don't forget it can control pc oscp-core too

KotCzarny 2015-03-02 21:22

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
oh, and btw. i'm thinking about styling it a bit, maybe even support old winamp skins

KotCzarny 2015-03-03 14:07

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
hmm, your request boils down to book-reader-with-test2speech-option ? or you are thinking about something else?

KotCzarny 2015-03-03 14:13

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
ps. i've upped to sf oscp-remote with the ability to select favs (hotkey dirs/playlists you can configure in ~/.oscp.conf). i'll still need to add setfav to the remote commands list

endsormeans 2015-03-03 15:23

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
book-reader-with-test2speech-option?
Naw ...(but that is a really really really super-good idea too y'know :D)
I was thinking more along the lines of text to speech implemented so you could say open an ebook and it could play it in oscp.
Insta-Audio Books addon.

KotCzarny 2015-03-03 15:33

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
hmm, not a bad idea, but needs decent text to speech engine

KotCzarny 2015-03-03 16:35

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
upped 0.9.7-7 (to both diablo and fremantle), notable changes: loadfav/savefav (navigate to some dir, press 'm' (as in memorize) then button with number to store path there in favs, you can later bring that folder/entry back)

KotCzarny 2015-03-04 10:05

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
upped 0.9.7-8 to fremantle repo, first stab at making it nicer

http://i.imgur.com/cnApAdJ.png

and styled on pc:

http://i.imgur.com/wrDkAHM.png

KotCzarny 2015-03-04 21:12

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
some work in progress:

http://i.imgur.com/GH1h4qo.png

and that's generated from classic winamp skin

KotCzarny 2015-03-04 21:33

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
http://i.imgur.com/scYmrn8.png

just checked how it works with random skin

KotCzarny 2015-03-04 21:47

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
ok, then maybe this one?

http://i.imgur.com/E6RJfTv.png

KotCzarny 2015-03-04 21:53

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
or this one:

http://i.imgur.com/P4KLs2J.png

ok. enough. good night!

endsormeans 2015-03-04 21:55

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
for goodness sake don't you dare go to bed without telling us how you did it. :D
did you simply pop the skins in a directory? like the skins directory for xmms? that simple ?
or was it something else?

KotCzarny 2015-03-04 21:57

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
i unzip the skin with the script then just start up oscp-remote.py, nite!

reinob 2015-03-05 09:12

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
Quote:

Originally Posted by KotCzarny (Post 1462822)
hmm, not a bad idea, but needs decent text to speech engine

I sometimes pipe text thru espeak for the laughs. My kids love it. However I would consider espeak reading a book for me as a form of (mild) torture :)

But as proof-of-concept you could allow opening txt files and use espeak as back-end.

totalizator 2015-03-05 12:04

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
Quote:

Originally Posted by reinob (Post 1463101)
[...]
But as proof-of-concept you could allow opening txt files and use espeak as back-end.

Please don't! Q__Q This is supposed to be a decent competitor for for other console / remote music players and not some Frankenstein like piece of software.

KotCzarny 2015-03-05 12:53

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
no worries, it would work just fine (as soon as i would write a wrapper). but espeak is.. well, good for some kid fun and not for audiobooks. if there would be some decent txt2speech engine..

KotCzarny 2015-03-05 16:23

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
1/ as for book reader part, don't know, with decent audio engine, oscp has few features not found in any other book reader
2/ i didn't made it as a-v player, but it uses libav already, so half of the tools (decoders) is there, so no need to open in mplayer (though possible because oscp was using mplayer as a slave in the first iteration). it is possible to extend it to display video part. feature put in todo.
3/ and skinning is going fairly well. looks good, works good. might release it in a few hours

KotCzarny 2015-03-05 20:26

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
upped 0.9.7-11 to fremantle, if you want to see winamp skin edit oscp-remote.py and change style_me=2 to 3. looks a bit ugly because somehow labels aren't showing without a kludge :/ i've included script to extract skin into pngs, needs imagemagic for now so preferably use it on pc then copy resulting .png to /opt/oscp/share/images/

http://i.imgur.com/ybEQa4G.png

KotCzarny 2015-03-05 21:21

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
missing labels bug was my fault. upped -12, looks almost good now:

http://i.imgur.com/i09vk24.png

KotCzarny 2015-03-06 09:57

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
just wrote mplayer slave interface, but it's too slow to play videos on n900

KotCzarny 2015-03-06 14:51

Re: oscp - multiplatform console audio player for (almost) any file format and network streams, now with pygtk GUI
 
good news, now (0.9.7-15) oscp can play video files via gst (but you have to enable video play). also i have to add disabling screen blank. enjoy

KotCzarny 2015-03-07 12:36

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
0.9.7-16 news: screen blanking prevented when running remote with local core on n900. also added buttons to list in style_me=3 mode. and some other small fixes

KotCzarny 2015-03-07 18:08

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
0.9.7-17: fixed ncurses frames, now they look nice! (tip: start with -l 0)

KotCzarny 2015-03-08 08:56

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
0.9.7-18: added help 'h' and info 'i' sub windows to remote

KotCzarny 2015-03-08 18:34

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
0.9.7-19: pygtk fixes and enhancements. also try style_me=3 (winamp skin mode). also updated diablo build. also uploader is choked so it might get some time before packages show up


All times are GMT. The time now is 04:57.

vBulletin® Version 3.8.8