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-08-17 22:20

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
hmm, looking at the code now. i made it to be accepting load requests by specifying numbers in current playlist. maybe i'll just add code to allow it to parse fullpath requests. but that's when i get up, too sleepy now

KotCzarny 2015-08-19 15:58

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

* reup, fixed changelog
* added LOAD2 remote command (accepts full path as a param)
* changed /tmp/oscp-user/oscp.slave interface
--
hint1: oscp.slave accepts any remote.txt command. fe.: echo "PAUSE" >> /tmp/oscp-user/oscp.slave
hint2: added oscp-command.py which is an example of minimal remote interface

word of notice: this release is a work in progress. both interfaces are preliminary work to allow using oscp as a system player replacement

xes 2015-08-20 14:06

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
@KotCzarny
while talking about full paths...
http://talk.maemo.org/showpost.php?p...&postcount=161

have you already added some kind of network acl or is it still in your TODO list?
I like your oscp player but the closed sources and the lack of network acl make me feel a litlle bit worried...

KotCzarny 2015-08-23 16:38

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
@xes: still in todo, most likely gonna add it tomorrow (just returned from vacations). for now you can use /tmp/ interface for commands if you are worried about network

KotCzarny 2015-08-24 13:22

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

* added netacl config option (in config file or via -N option)
by default (with remoted enabled and empty config) all remote ips can connect, to restrict:
run core at least once with (example): -N "127.0.0.1 192.168.1.0/24"
or put space separated list of ips/masks in netacl in config file

@proprog: were you successful hacking using oscp and oscp-command.py using LOAD2 or /tmp/ interface?

proprog 2015-08-24 19:33

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

Originally Posted by KotCzarny (Post 1480081)
oscp (0.9.7-44) stable; urgency=low

* added netacl config option (in config file or via -N option)
by default (with remoted enabled and empty config) all remote ips can connect, to restrict:
run core at least once with (example): -N "127.0.0.1 192.168.1.0/24"
or put space separated list of ips/masks in netacl in config file

@proprog: were you successful hacking using oscp and oscp-command.py using LOAD2 or /tmp/ interface?

Let's just say that I have a lot to leárn.

I can get oscp to play downloaded songs via oscp-command, and that works ok for some of my use cases. But it looks like the current directory is not changed which is a bit confusing when the song is finished. And I cannot get the remote to work. If the remote is open it disconnects and wont connect again. And it doesn't start if not open.

Had a look at the gPodder source and it uses osso to call mime_open to have applications registered for that mime open the file. I guess that is what needed in oscp for it to replace omp for all my use cases.

Altogether my current setup is maybe not good enough to ditch omp yet. But I still use oscp daily and it's part of the reason I'm back using my n900.

Please let me know if I'm missing something. I'm happy to keep testing.

KotCzarny 2015-08-24 19:41

Re: oscp - multiplatform player for (almost) any file format and network streams, now with pygtk GUI
 
@proprog: some of your gripes come from oscp design:
1/ i made LOAD2 to be temporary (ie. not changing current dir and preserving previous one for go-back action)
2/ LOAD2 only works for files, right now i didnt add the code to change dirs (in case you wanted to start playing dir)
3/ only one remote can be used at once (that's why i suggested you to use /tmp/ interface, i may add multi-remote support if i think it over carefully or auto-reconnect)

so, one would need to write tiny app that would:
1/ register file types
2/ start oscp if not running
3/ echo LOAD2 command into /tmp/oscp-{user}/oscp.slave

all in all, i need more input on what's needed and how one would like to use it

proprog 2015-08-24 20:57

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

Originally Posted by KotCzarny (Post 1480102)
@proprog: some of your gripes come from oscp design:
1/ i made LOAD2 to be temporary (ie. not changing current dir and preserving previous one for go-back action)
2/ LOAD2 only works for files, right now i didnt add the code to change dirs (in case you wanted to start playing dir)
3/ only one remote can be used at once (that's why i suggested you to use /tmp/ interface, i may add multi-remote support if i think it over carefully or auto-reconnect)

so, one would need to write tiny app that would:
1/ register file types
2/ start oscp if not running
3/ echo LOAD2 command into /tmp/oscp-{user}/oscp.slave

all in all, i need more input on what's needed and how one would like to use it

Thanks for the clarification. i might give it a try myself. Will keep you posted, should at least find out some more details for you in the process.

KotCzarny 2015-08-25 15:43

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

* N900: pause now closes audio device (ie. 0% cpu usage in pause)

have i said today that pulseaudio is evil and should die in a fire? anyway, you can now safely pause oscp without cpu/battery drain

KotCzarny 2015-08-26 18:24

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

* LOAD2 param now can be file, dir or link (http/mms/rtsp)
* ncurses: k_open: assign key (default: o) to call LOAD2 directly

another update toward using oscp as default media player.

for ncurses key to work add k_open=o to ~/.oscp.conf
why is it nice? you can now copy paste links or paths (absolute or relative) into oscp-core directly (or via remote interface)


All times are GMT. The time now is 13:34.

vBulletin® Version 3.8.8