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)

KotCzarny 2015-03-15 15:41

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
initial idea about oscp was 'no or minimal deps', setting build tree to be that way would need packages in the size of tens of megs, or splitting them in subparts, which again would be 'Requires:' hell

as for the possible commands check this file:
http://sourceforge.net/projects/oscp...e.txt/download
command protocol doesn't provide loading arbitrary paths, only numbers from the list sent earlier from core to remote. the worst someone could do would be changing volume or track. and think about it, n900 usually is connected to home wifi network or gsm (no external ip). still, yes, acl is on the TODO.

KotCzarny 2015-03-16 08:26

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
0.9.7-30:
* "Look for" command (ie. search)

by default mapped to 'l' key (in both ncurses and pygtk). pattern wildcards are * (any chars) and ? (single any char). what it does? when you have zip archive open it filters list, when in regular dir it does make_recursive_dir with pattern added

ps. winamp skin mode has core connect/spawn/quit buttons added in playlist screen

KotCzarny 2015-03-18 05:43

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-31) unstable; urgency=low

* oscp-scrobbler (last.fm scrobble service client)
* draw blanks over numbers in winamp skin mode

how to enable scrobbler?
1/ in ~/.oscp.conf set: scrobble=1 (or start core with -S 1)
2/ in ~/.oscp/oscp-scrobbler.conf put user and pass (key will be acquired automatically):
user=yourlastfmuser
pass=pass
key=
scrobbling takes place once song hits min(duration/2, 240s) mark. one note, no caching, so if your network is down or service is unavailable, no scrobs will be recorded. please test and if there are any problems you can enable logging by placing: debug_file=/some/path/some/file in scrobbler config. also remember to chmod go-rwx ~/.oscp/oscp-scrobbler.conf if you create it by hand

KotCzarny 2015-03-18 13:30

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-32) unstable; urgency=low

* oscp-scrobbler: openssl was segfaulting, recompiled libcurl statically with gnutls26 (which is only required if you want to do scrobbling on n900)

fun, openssl segafults on n900 when used with libcurl https post. anyone up for updating repos?

KotCzarny 2015-03-18 13:37

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
everyone, if you like oscp please vote on oscp:

http://maemo.org/packages/package_in...oscp/0.9.7-26/

thanks in advance

branja 2015-03-18 17:33

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
Hello sir. Tnx for this great app. I have a few suggestions: please, make a GUI more user friendly (for us noobs). Something like N900's media player. Add a media library (maybe it has one but I wasn't able to find it) cuz it's much easier to choose music and play it. Add a support for micro sd cards (a lot of my music collection is stored on micro sd and I'm unable to find it). Also, it would be so good if u could implement an equalizer with preloaded presets.
I'm talking about an N900 version.

sorry for my bad English and keep up a good work

KotCzarny 2015-03-18 18:06

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
@branja:
- there are many medialibrary players, and i hate all of them, that's why i wanted something different (also called oldschool)
- to understand oscp principle you have to switch your thinking from database music library to folders/files. so basically you just select folders and play.
- microsd is mounted at /media/mmc2 if i remember correctly.
- if you expand buttons in the main window you can see 0-9 ones which you can use to quickly go to path stored there, or to put path by firstly clicking 'm' then the button you want to store into.
- next, if you want to listen to all files in current directory and all subdirs you click the 'make recursive list' button (the one under 'm' or press ';' key
- if you want to add all folders/files containing specified keyword press 'l' then type part of the word you look for
- you can navigate between dirs by clicking them or using keyboard arrows
- equalizer is on the TODO list
- oh, and if you play locally click 'gears' to spawn local core first

branja 2015-03-21 12:19

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
I learned how to use it and it's great!
Few requests, as usual... :D
Can u implement that when we remove headphones music stops playing and when we return them it starts again?
Also, it would be great that when we receve a message music don't stop and we just hear a clicking sound or something like that?

cheers

KotCzarny 2015-03-21 13:09

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-33) stable; urgency=low

* main change: equalizer
* bugfixes
* updated help in gui

eq is in! but it eats cpu, quite a bit, so it's mostly for running on pc. also added feature to show help screen for the first time installs (which was also updated with some information).

@branja: happy to know that my idea is the right one (ie. media libraries suck, usually). as for headphones mode, put on TODO, same for message bug (when i get around to check it).

as usual, tell others that oscp is one of the nicer players available

KotCzarny 2015-03-23 13:52

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-34) stable; urgency=low

* fixed zziplib to properly open files >2GB

though, i haven't tested it on n900 yet. still, it's a bug in zziplib

KotCzarny 2015-03-23 18:04

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-35) stable; urgency=low

* fixed StreamTitle parsing for internet streams

also trying to guess artist and title from it

KotCzarny 2015-03-23 20:39

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-36) stable; urgency=low

* more StreamTitle and scrobbler fixes

KotCzarny 2015-03-26 14:38

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-37) stable; urgency=low

* scrobble: more control, love track, buttons: toggle and love
* ncurses: press 'h' for keys, new keys in config (might require removing ~/.oscp.conf or setting them manually)

more buttons! :)

KotCzarny 2015-03-30 16:23

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-38) stable; urgency=low

* scrobble: compiled with openssl by mistake, recompiled with gnutls now

---

so, anyone is missing any feature? or it's good enough to replace your favourite player on n8x0/n900/pc ?

saponga 2015-03-30 19:04

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

Originally Posted by KotCzarny (Post 1465377)
so, anyone is missing any feature? or it's good enough to replace your favourite player on n8x0/n900/pc ?

I'm still using OMP only when i need hands free. That's because i prefer ncurses interface and BT headphone buttons doesn't work on it. Other than that, it's just perfect. Thanks.

KotCzarny 2015-03-31 19:13

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-39) stable; urgency=low

* .m3u: (re)added support for #EXTINF tags (you can name your radio stations
and files in playlists)

@saponga: i'm still thinking how to logically add dbus to core

saponga 2015-03-31 22:08

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
take your time man... you already did so much. Btw, im facing a litle problem: i've had the stupid idea of deleting the .oscp.conf because ive messed it but now i only have segfaults even after uninstalling, purging and reinstalling oscp. It seems that the file isnt created at all. Can u post a copy of it here please ?
thanks again.

tcbl50 2015-04-01 08:25

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
i have to say theres something i love about this player. its so simple and effective. what i love about it is that it hardly uses any resources so i can do other things on my n900 without worrying about the phone slowing down!!!

secondly i can just play the audio of my music videos without the actual video showing!!!

thanks so much. one request is it possible to add cross-fading??

KotCzarny 2015-04-01 09:29

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
1 Attachment(s)
@saponga: it should be recreated automatically. it's definitely some kind of bug, but i can't reproduce it here. anyone else? in any case, attached default conf created on n900

@tcbl50: added to TODO, will have to think about it

KotCzarny 2015-04-05 17:19

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-40) stable; urgency=low

* added dbus support to core via helper (right now only for headphones jack)
* to enable headphone mode (right now only n900), configure in ~/.oscp.conf:
dev_type=n900, hponly=1

preliminary dbus support. what it does now: when enabled it pauses when headphones unplug and unpauses when reconnected. if anyone thinks it should behave different let me know. i plan to let core react to bt buttons too, do you think it should?

KotCzarny 2015-04-05 17:27

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oh, i forgot to comment out bt and camera focus button funcs..so you will get dual bt clicks when running remote. on the plus side, you can test ncurses or daemonized versions and use them ;)

nokiabot 2015-04-05 17:42

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

Originally Posted by endsormeans (Post 1465823)
Fabulous function...unplug headphones...music pauses...plug in headphones music continues ... love it!

omp has it too its really nice feature

reinob 2015-04-05 19:36

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

Originally Posted by KotCzarny (Post 1465822)
oscp (0.9.7-40) stable; urgency=low

* added dbus support to core via helper (right now only for headphones jack)
* to enable headphone mode (right now only n900), configure in ~/.oscp.conf:
dev_type=n900, hponly=1

preliminary dbus support. what it does now: when enabled it pauses when headphones unplug and unpauses when reconnected. if anyone thinks it should behave different let me know. i plan to let core react to bt buttons too, do you think it should?

Does hponly=1 mean that sound will only go through the headphones?
This is something I'd actually like, so that whatever happens no sound goes through the speakers.

Can you confirm that this is how it's supposed to work?

As for the pause/unpause. I'd like it if the pause was automatic when unplugging, but not the "unpause". This should be IMHO manual (or an optional setting).

KotCzarny 2015-04-05 19:46

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
that's why i wanted your (users) opinion how it should behave. right now it only pauses/unpauses by unplug/plug. unpause is automatic because if it wasn't paused in the first place, nothing will happen, but allows for quick resume when unplug was accidental

tcbl50 2015-04-05 20:09

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
My favourite player. If u can implement upnp then it will be complete for me. Havent forgotten about the cross-fading :)

KotCzarny 2015-04-05 20:17

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
@tcbl50: xfade isn't so straightforward, but is in the todo. as for upnp, what it is that you need and how it should work

tcbl50 2015-04-05 23:13

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
upnp??? just to be able to see them n browse n play. could be difficult tho as ur player isdirectory-based

KotCzarny 2015-04-06 06:08

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
my player can use virtual playlists (ie. will treat .m3u with http/mms links as a directory and network links as a files) so it's a matter of dicovering/parsing upnp servers and playing their links. still, if you have nas on your network you can simply mount it via sshfs/nfs/samba and navigate there

tcbl50 2015-05-03 14:57

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

Originally Posted by KotCzarny (Post 1465854)
my player can use virtual playlists (ie. will treat .m3u with http/mms links as a directory and network links as a files) so it's a matter of dicovering/parsing upnp servers and playing their links. still, if you have nas on your network you can simply mount it via sshfs/nfs/samba and navigate there

thanks for the hint about mount sshfs/nfs/samba. never realized I could do this on my n900. having so much fun with it now :)

KotCzarny 2015-05-09 09:47

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
oscp (0.9.7-41) stable; urgency=low

* fixed gui bug (make_recursive_list button works now)

KotCzarny 2015-05-09 18:44

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
in related news, i've compiled recent oscp-core in cygwin (ie. you can have windows core now). right now there is only .exe on sf binaries page which means you should have basic cygwin libs. going to make complete package later.

L29Ah 2015-05-13 06:40

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
Performed some power consumption measurements of oscp against the stock mediabox: https://bpaste.net/show/cd54b9d3719c
Program to measure and calculate average: https://bpaste.net/show/2f85e21fac9c
Also added to the wiki.

KotCzarny 2015-05-13 07:45

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
cool, as a comment i should add that mediabox isnt stock mafw player, and l29ah's test showed that mediaplayer is using 415mW on speakers and 262mW on headphones (though stock player stops updating gui with screen off). also, oscp-ncurses mode is missing from measurements (though it should use the number close to gui-off)

L29Ah 2015-05-13 15:33

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
Did some more measurements, added them to https://wiki.maemo.org/N900_Hardware...y_monitor_chip.

Dongle Fongle 2015-06-11 22:59

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
Thanks for this.

Regarding this http://talk.maemo.org/showthread.php...67#post1473167, I get the same audio stutter when even tilting from portrait to landscape. in Panucci as in OSCP. The files are 320kb mp3 audiobook, it seems to overload the cpu or something with pulseaudio (usage is not great tho, less than 30 percent) Openmediaplayer does not have the same, plays it fine, but not gapless, which I prefer for my audiobooks.

What is a definite fix?

KotCzarny 2015-07-23 14:07

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
@Dongle Fongle: hmm, apparently any app (with exception of system media player and omp) is affected (i've tried oscp, mplayer, gst-launch). and it's not about cpu as it happens on low bitrate too. going to investigate further.

elros34 2015-07-23 14:40

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
This is because OMP and system media player use MAFW unfortunately I have no idea what tricks mafw uses to prevent stuttering - I have the same problem in qmlradio so hope you will resolve it.

proprog 2015-08-04 19:35

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
Love it. Is it possible, and a good idea, to use it as default player?

KotCzarny 2015-08-04 20:02

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
hmm, might be possible, but isn't implemented yet. you can easily add it via helper (which would be using remote protocol commands and a checker if core is running). and adding it to /usr/share/applications/defaults.list or something similar.

remote commands:
https://sourceforge.net/projects/osc...e.txt/download

to have fun with running core (port is configurable by either config file or option): telnet localhost coreport

i don't remember if running oscp-remote.py with a param would start playing it (you can try). oscp was meant to be self-contained, low deps, standalone alternative, so no effort was put into integrating it tightly with the system. i may add it into todo if you really want it

proprog 2015-08-17 21:25

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
I tried running oscp-remote.py with a param but couldn't get it to work. Will give it another try though and see if I at least can get some logs or similar.

The only need I have for it as a default player is to start it from gPodder with a stream or file. Hence maybe I'm tackling this in the wrong way.

All suggestions are welcome.


All times are GMT. The time now is 08:11.

vBulletin® Version 3.8.8