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-02-19 10:50

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
another update, apart from bugfixes, spawn-local-core is in! what does it mean? if you have oscp in path or configured it in remote.py, you can simply launch oscp-remote.py, spawn local core via button and connect to it automatically (no need to run two things separately, but you need recent oscp core build). please test, comment and enjoy!

ps. tested only with pc version, but should work with nit ones
ps2. fixed oscp-remote.py again and it's working now

KotCzarny 2015-02-19 15:19

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
hah. update to oscp-remote.py. now hardware +/- are bound to next/prev track, thanks qwerty12!

nokiabot 2015-02-19 17:15

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
how do i install it on n900

KotCzarny 2015-02-19 17:20

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
1/ grab oscp (on fremantle grab oscp-n8x0-n900.gz on another distro with pulseaudio grab oscp-n900-PA.gz)
2/ grab oscp-remote.py
3/ unpack and put on /opt/bin or somewhere in the PATH or anywhere where you can execute things
4/ chmod +x oscp oscp-remote.py
5/ configure oscp-remote.py
6/ run oscp-remote.py (or if you want ncurses version run oscp)

later i'll prepare packages for diablo/fremantle

KotCzarny 2015-02-20 11:42

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
1 Attachment(s)
quick hint: want to turn n8x0/n900 into radio tuner? grab the attachment, unpack somewhere, navigate there with oscp, play!
credit: stations grabbed from http://www.screamer-radio.com/ app (which is also nice)

nokiabot 2015-02-20 12:55

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

Originally Posted by KotCzarny (Post 1461456)
quick hint: want to turn n8x0/n900 into radio tuner? grab the attachment, unpack somewhere, navigate there with oscp, play!
credit: stations grabbed from http://www.screamer-radio.com/ app (which is also nice)

this deserves its own threadc;)

KotCzarny 2015-02-20 13:05

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
it has, right here, right now ;) why whould you need any other player than oscp?

nokiabot 2015-02-20 13:06

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
how do i unpack the file tar -xvzf does not seem to work nither archieve manager

KotCzarny 2015-02-20 13:09

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
check if it downloaded ok, checked just now and it works. 241020 bytes, md5:
892de68f35f0904990e34ad918f5150e screamradio-stations-20150220.tar.gz

nokiabot 2015-02-20 13:17

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
na na i am talking about the oscp file :

KotCzarny 2015-02-20 13:19

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
binaries are just gzipped single file, just use gzip -d (they have .gz extension right?) then chmod +x and it's done

nokiabot 2015-02-20 13:23

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
na na i am talking about the oscp file :

KotCzarny 2015-02-20 13:33

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
did you just double post or having another question?

KotCzarny 2015-02-20 16:52

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
update: improved navigation in oscp-core and oscp-remote. also removed exact mp3 scanning because it was slowing down networked files (so total time displayed might be inaccurate)

KotCzarny 2015-02-21 18:54

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
update: softvolume is in. important mostly to n900-pa version, but can be enabled in n8x0 and linux too. did i mention that i hate pulseaudio api?

saponga 2015-02-21 21:02

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

it has, right here, right now ;) why whould you need any other player than oscp?
Is there any chance to get bluetooth headphone's keys working ? This is the only feature that i miss in this great brand new player. Thanks.

KotCzarny 2015-02-22 07:03

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
@saponga, i don't own a bluetooth headphone with keys, but you can check something for me though: if you press unknown key, there should be feedback on title bar "key_press_event: <number>" let me know the numbers and functions you want them to do

saponga 2015-02-22 11:47

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

Originally Posted by KotCzarny (Post 1461644)
@saponga, i don't own a bluetooth headphone with keys, but you can check something for me though: if you press unknown key, there should be feedback on title bar "key_press_event: <number>" let me know the numbers and functions you want them to do

Sorry, i couldn't find any feedback while pressing the headphone's keys. Should i install some kind of evtest ? All keys (next, prev song, play/pause, volume) are working on default player.
Thank you very much for your time and attention.

KotCzarny 2015-02-22 11:54

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
after reading a bit, they are most likely reported via dbus. i'm trying to find out how to use dbus with python (i'm a newbie in the matter), so once i get there i should add bt events

KotCzarny 2015-02-22 13:45

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
upped oscp-remote.py, when you uncomment id="n900" line it will enable code to listen for dbus event. right now i've configured it to following actions:
with hs-48: pressing button skips to next track
pressing camera focus button halfway:
- short: ffwd
- long (>0.5s): pause/play

if you have bluetooth headset and send me log of dbus-monitor --system when pressing buttons, i can try to add them

saponga 2015-02-22 22:51

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
1 Attachment(s)
Quote:

Originally Posted by KotCzarny (Post 1461671)
if you have bluetooth headset and send me log of dbus-monitor --system when pressing buttons, i can try to add them

i've pressed the buttons as follows: next song, previous, volume up, down, pause, resume, pick a call.

KotCzarny 2015-02-23 06:21

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
mapped next/prev and pause (i think), resume and pick-a-call aren't showing, unless it's too early in the morning for me, and volume is probably handled internally by bt, so i prefer not to touch it. as always, grab the file, configure and test. if you want buttons to do anything else, just change the functions they call (they are set in handle_hsb() and available functions are further down the file)

KotCzarny 2015-02-23 19:45

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
@saponga: and? did it work?

saponga 2015-02-23 20:42

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

Originally Posted by KotCzarny (Post 1461827)
@saponga: and? did it work?

Sorry, i didn't test yet because i'm at work and my headphone is at home. I'm a bit confused because looks like you've changed only the remote.py file, at least at the time i've saw the sourceforge early in the morning and i actually don't use that file at all. I just call the oscp-n900-PA bin from terminal and it just works. Sorry. I'm a noob and have no clue weather is possible to make the headphone's keys work without that remote.py or not.
Thanks again.

KotCzarny 2015-02-24 06:18

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
ahm, yes, i only changed it in remote, because it's more touch friendly than console version on n8x0/n900. just try it, you might like it. especially it now can spawn/close oscp-core via button. i've added example .desktop files (put them to /usr/share/applications/hildon/) then you can have icon directly on your n900's desktop

if not i'll see how much work would be needed to add dbus support to core

KotCzarny 2015-02-24 11:15

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
updated binaries with current wildmidi branch (fixes silence at the start/end)

KotCzarny 2015-02-25 19:31

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
update: fixed a bug where tcp listen was only enabled with daemonize mode (thx to totalizator for spotting it) now you can use ncurses interface AND pygtk gui from another machine at the same time. also is my player so good that no one has any issues or nobody bothers to report their experiences? if you like it, spread the word, if you don't, tell me why, if you find a bug, tell me too

endsormeans 2015-02-25 21:08

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
Alritey ...feedback?
want more people using it?
put it up in extras - devel or testing
pump it... get it in extras...
if you think about it...
it appears the evolution of a sub-community is such that when a new device/ platform comes out..it attracts many who are adept and new...they quickly all become masters and then move on to the next available device when it appears (excepting a few ...) ...
then comes (for lack of a better term) the next generation of users for that device / platform ...that are new...with alot of research already done in writ in the forums for study ...but few actual people (who still use said devices and platform) around to help....
we have some of the greatest stuff ...
but the learning curve may be cliff steep in some examples...
with few or no one to help.
For a more direct example...How many would be afraid to try something new if it were easy to install...less daunting...intimidating...or confusing.
For example...look at the simplicity of installing easy debian.
If it weren't that easy... fewer would have tried it ..fearing they would screw up their devices somehow.
And hence fewer would be using it.
That is the short and simple of it.
I'm not saying that the best way to get new or established members to use stuff is to dumb stuff down for them...belittling people's intelligence is not the aim.
But if it seems (from say ...the perspective of the noob ) a brain-eating,time-consuming herculean effort to understand how to do something and implement it.
More oft than not the new member will pick the quickest most understandable and easiest method and / or service first before the more complex one.

My advice...
Get it into extras.
Get it into the application manager.
Then it's highly visible and people will be perpetually seeing it as an alternate player when they surf through the app man trying to figure out what to try next.
Half the battle's won then.
The easier to install and run the better.
Especially for new people.
Just my opinion.

KotCzarny 2015-02-26 06:23

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
@endsormeans, good, i'll move the 'make a .deb' to the top of the todo. i just wanted to polish it before so people won't stumble upon not working software on install. expect package today/tomorrow!

ps. it seems there is no freepats package for diablo, or i'm looking wrong? i'll make one too in such case

endsormeans 2015-02-26 16:15

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
Ah grand.
My lucid moment of sanity must have made sense. :D

Y'know even if a program doesn't function initially (the way the developer would like)...I know it hasn't stopped me from hunting and investigating why and trying to find the answer to get it to work.
And it never stopped me from attempting at a later date to try again.
It's just that unless one has time, the desire to hunt through the posts on the forums, an insatiable curiosity and an overwhelming desire to try something off the beaten track that may or may not work. ..(which is cool and exciting method to find stuff btw...)
Then having it accessible in the app man is the way to go.
The more people using it...the more likelihood and the quicker people find those odd little hiccups or bugs that can identified and rectified...the sooner it is optimally working.

hum...yea .. I can't say that in my time I've run into the freepats package for diablo to be able to deny your suspicions. Better safe than sorry if it's needed.

KotCzarny 2015-02-26 16:29

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
thanks again :) i'm not going to make freepats required, as only few users would want playing midi files. right now i've prepared extras-devel package and trying to make it show in repository

KotCzarny 2015-02-26 16:48

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
ok, oscp is now in fremantle extras-devel, woo-hoo! calling all the users, please test installing/using

Sohil876 2015-02-27 06:30

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

Originally Posted by KotCzarny (Post 1462119)
ok, oscp is now in fremantle extras-devel, woo-hoo! calling all the users, please test installing/using

There is no sound for me in this version in maemo, previous ones worked fine.

KotCzarny 2015-02-27 08:49

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
@sohil876: what does volume thingy say? 0 or -1? if it's 0 then most likely you have to turn up the volume (in ncurses it's + or = key). in oscp-remote just click on the volume bar (which should also show 0% in such case)

Sohil876 2015-02-27 10:45

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

Originally Posted by KotCzarny (Post 1462216)
@sohil876: what does volume thingy say? 0 or -1? if it's 0 then most likely you have to turn up the volume (in ncurses it's + or = key). in oscp-remote just click on the volume bar (which should also show 0% in such case)

Thanks that was it i didnt realized that was the volume bar i thought volume increased by vol keys and status bar like MP/OMP its fine now sound is there.

KotCzarny 2015-02-27 19:51

Re: oscp - console player for (almost) any file format, now with pygtk GUI
 
1 Attachment(s)
i found out that there is native pygtk for windows, hoo-ray for oscp-remote.py!

http://www.pygtk.org/downloads.html
--

saponga 2015-02-27 22:59

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

Originally Posted by KotCzarny (Post 1461827)
@saponga: and? did it work?

Yes, it works. The only minor problem is that I need to double push the pause and resume buttons. Next and previous are OK. Another thing that I don't know wether is a feature or a bug is that I couldn't stop the engine just closing the GUI clicking at x on the upper corner. So, I had to kill the process. That's with the repositories version.
Thanks.

KotCzarny 2015-02-27 23:28

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
closing gui doesn't close core, if you want to end core there is a red x icon in the lower left part. think about it: you run core on the pc or n800 connected to hifi, you open gui on n900 select dir/playlist to play, and you can close remote. and later you can reopen it on another computer to change the track etc.

pause and resume should work with a single click, can you tell me more what exactly is happening? maybe it's just a bit of delay between push and reaction from core?

saponga 2015-02-28 00:07

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

Originally Posted by KotCzarny (Post 1462294)
closing gui doesn't close core, if you want to end core there is a red x icon in the lower left part. think about it: you run core on the pc or n800 connected to hifi, you open gui on n900 select dir/playlist to play, and you can close remote. and later you can reopen it on another computer to change the track etc.

Got it. It tottaly makes sense.
Quote:

pause and resume should work with a single click, can you tell me more what exactly is happening? maybe it's just a bit of delay between push and reaction from core?
Just tried: first click it shows key 269025073 and does nothing. Second click, no matter how much time after first, shows key 269025044 and pauses or resumes properly.

KotCzarny 2015-02-28 01:00

Re: oscp - multiplatform console audio player for (almost) any file format, now with pygtk GUI
 
weird, are you using package from extras-devel or some older build?

in other news: uploaded 0.9.7-4 (includes few bugfixes and integrated uade2 and mdxplay slaves). i hope it will show in repository eventually


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

vBulletin® Version 3.8.8