-playlist argument to mplayer

If you have a suggestion for a feature, post it here

-playlist argument to mplayer

Postby Adau » Sat Mar 03, 2012 9:51 pm

Hey guys !

First, great job on PS3 Media Server, it's an amazing and convenient software.

I just took a premium account on di.fm (which give high quality from to di.fm and sky.fm) and I wasn't able to stream the webradios to the PS3 (data damaged).
The links are like this : http://listen.di.fm/premium_high/trance.pls?xxxxxxxxxxx (x's are hex a numbers, for authentication).

Here is the pls file :
Code: Select all
[playlist]
NumberOfEntries=3
File1=http://72.26.216.106:80/trance_hi?xxxxxxxxxxx
Title1=Digitally Imported - Trance
Length1=-1
File2=http://72.26.204.32:80/trance_hi?xxxxxxxxxxx
Title2=Digitally Imported - Trance
Length2=-1
File3=http://72.26.204.18:80/trance_hi?xxxxxxxxxxx
Title3=Digitally Imported - Trance
Length3=-1
Version=2


When I run
Code: Select all
./mplayer -cache 1024 http://listen.di.fm/premium_high/trance.pls?xxxxxxxxxxx

mplayer just "reads" the file and exit.

If I run
Code: Select all
./mplayer -cache 1024 -playlist http://listen.di.fm/premium_high/trance.pls?xxxxxxxxxxx

mplayer reads and plays the stream !

For info, mplayer is the osx build found in the PS3 Media Server.app (1.50.1)

Looking at the source code, in the MPlayerAudio.java file, no reference to the -playlist argument is found.

I tried to add it manually in the source code, and compile it, but it didn't work, but I guess it's because I'm not a java guy...

Is there any way to add the -playlist argument in a nice way ?

Thanks,

Adrien

edit://
mplayer doesn't handle playlist if we do not ask him:
http://code.google.com/p/ps3mediaserver ... il?id=1151
Last edited by Adau on Sat Mar 03, 2012 10:11 pm, edited 1 time in total.
Adau
 
Posts: 4
Joined: Sat Mar 03, 2012 9:38 pm

Re: -playlist argument to mplayer

Postby chocolateboy » Sat Mar 03, 2012 10:10 pm

Adau wrote:Is there any way to add the -playlist argument in a nice way ?


Sadly, no:

https://code.google.com/p/ps3mediaserve ... il?id=1151
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: -playlist argument to mplayer

Postby Adau » Sat Mar 03, 2012 10:26 pm

Ok, so if I understand, I could use the patch given in the issue 1151 and take a lot of care on which stream I add.
I guess if I only add di.fm and sky.fm lists, everything's fine.

It could be added an audioplaylist category field, saying that playlist sources must be thrusted ? Why this patch won't be applied if users are aware of what they're doing ?
Adau
 
Posts: 4
Joined: Sat Mar 03, 2012 9:38 pm

Re: -playlist argument to mplayer

Postby chocolateboy » Sun Mar 04, 2012 12:16 am

Why this patch won't be applied if users are aware of what they're doing ?


Users who are "aware of what they're doing" (i.e. running insecure code) should be more than capable of applying the patch themselves.

If you're a developer, you'd be better off a) fixing or reporting Lizzy bugs (it silently failed for me with pretty much the first PLS file I tested) and b) improving/wrapping its clumsy interface so that it can be used as a generic solution for all folder-like files, including RSS feeds.
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: -playlist argument to mplayer

Postby Adau » Sun Mar 04, 2012 10:43 am

I'm not a Java developper, But i'd give a shot and see what I can do on Lizzy.

Is Lizzy already included in PMS ?

Thanks
Adau
 
Posts: 4
Joined: Sat Mar 03, 2012 9:38 pm

Re: -playlist argument to mplayer

Postby chocolateboy » Sun Mar 04, 2012 12:56 pm

Adau wrote:Is Lizzy already included in PMS ?


No. For development, you can check out the source from the Subversion repo and drop lizzy.jar and some of its dependencies in the lib directory. You probably don't need to add jna.jar (already included), args4j.jar or ffmpeg-java.jar (not needed for playlist parsing), and may not need to add commons-logging.jar. Then start by replacing the hand-coded playlist parsers in PlaylistFolder.java with their Lizzy equivalents. If you get that working with local files, the same functionality can be reused to work with URLs.

http://sourceforge.net/projects/lizzy/f ... urce=files
chocolateboy
Project Member
 
Posts: 2580
Joined: Wed Sep 16, 2009 10:05 am

Re: -playlist argument to mplayer

Postby Adau » Sun Mar 04, 2012 6:00 pm

Thanks for the tips and all the info !
Adau
 
Posts: 4
Joined: Sat Mar 03, 2012 9:38 pm


Return to Feature Suggestions

Who is online

Users browsing this forum: Yahoo [Bot] and 4 guests