Discussion:
[MPlayer-users] Mplayer not launching M3U playlist from a local file, but works from network file
Vincent Lambert
2016-04-10 20:45:30 UTC
Permalink
Hello,

I've created a stackoverflow topic with correct coloration and
description of my problem, you can answer here or in the topic as you
prefer.

http://stackoverflow.com/questions/36534875/mplayer-not-launching-m3u-playlist-from-a-local-file-but-works-from-network-fil


I have two identical .m3u files, one on my current directory and another
hosted on a web server on my LAN.

If I try:

-bash-4.1# mplayer -quiet -input file=/tmp/mplayer-control playlist.m3u

It results:

MPlayer 1.0rc2.atmel.1-4.3.5 (C) 2000-2007 MPlayer Team
CPU: ARM

Playing playlist.m3u.


Exiting... (End of file)

And nothing happen. Okai. In another hand if I try:

-bash-4.1# mplayer -quiet -input file=/tmp/mplayer-control
http://192.168.0.101:8000/playlist.m3u

Here is the result:

MPlayer 1.0rc2.atmel.1-4.3.5 (C) 2000-2007 MPlayer Team
CPU: ARM

Playing http://192.168.0.101:8000/playlist.m3u.
Connecting to server 192.168.0.101[192.168.0.101]: 8000...
Cache size set to 320 KBytes


Playing
http://192.168.0.101:8000/BertycoX%20-%20New%20Day%20%28E-SHINE%20Remix%29.mp3.
Connecting to server 192.168.0.101[192.168.0.101]: 8000...
Cache size set to 320 KBytes
Cache fill: 5.00% (16384 bytes)
Audio file file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...

I was a bit curious about this, I've checked everything (permissions,
cache, ...) tried to host the webserver on my computer instead of LAN...
But it appear that everything is fine when the .m3u is loaded from LAN,
regardless the playlist elements are HTTP links pointing to local or LAN
files.

I really need the previous parameters. But I decided to come back to
basic with:

-bash-4.1# mplayer -playlist playlist.m3u

And as you can see, everything is fine

MPlayer 1.0rc2.atmel.1-4.3.5 (C) 2000-2007 MPlayer Team
CPU: ARM

Playing http://192.168.0.101:8000/BertycoX%20-%20New%20Day.mp3.
Connecting to server 192.168.0.101[192.168.0.101]: 8000...
Cache size set to 320 KBytes
Cache fill: 5.00% (16384 bytes)
Audio file file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A: 0.4 (00.3) of -2.7 (unknown) 92.7% 77%

Do you have any idea why my local file is not loaded when used with the
needed parameters, and works just fine if loaded from LAN (even without
-playlist parameter)?


--

*Vincent Lambert*
Développeur informatique
Carl Eugen Hoyos
2016-04-11 21:33:03 UTC
Permalink
Vincent Lambert <vincent.lambert <at> supinfo.com> writes:

> MPlayer 1.0rc2.atmel.1-4.3.5 (C) 2000-2007 MPlayer Team

This looks quite ancient.

Carl Eugen
LAMBERT Vincent
2016-04-12 07:10:13 UTC
Permalink
I'm on an embedded board with a very dry linux, no gcc, no llvm, no apt, no yum, no way to get a newer version.

Vincent Lambert
Développeur informatique

________________________________________
De : MPlayer-users <mplayer-users-***@mplayerhq.hu> de la part de Carl Eugen Hoyos <***@ag.or.at>
Envoyé : lundi 11 avril 2016 23:33
À : mplayer-***@mplayerhq.hu
Objet : Re: [MPlayer-users] Mplayer not launching M3U playlist from a local file, but works from network file

Vincent Lambert <vincent.lambert <at> supinfo.com> writes:

> MPlayer 1.0rc2.atmel.1-4.3.5 (C) 2000-2007 MPlayer Team

This looks quite ancient.

Carl Eugen

_______________________________________________
MPlayer-users mailing list
MPlayer-***@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
Reimar Döffinger
2016-04-12 20:22:02 UTC
Permalink
On Tue, Apr 12, 2016 at 07:10:13AM +0000, LAMBERT Vincent wrote:
> I'm on an embedded board with a very dry linux, no gcc, no llvm, no apt, no yum, no way to get a newer version.

For such systems you usually build new versions by cross-compiling so
you don't need any of that.
Apart from that, none of that stops you from testing on a desktop
machine, and if it's fixed bisecting to what change fixed it.
However if you can't update the version it's likely all pointless
anyway, unless you want to rely on having enough luck someone
happens to find a workaround that does not involve code changes...

> ________________________________________
> De : MPlayer-users <mplayer-users-***@mplayerhq.hu> de la part de Carl Eugen Hoyos <***@ag.or.at>
> Envoyé : lundi 11 avril 2016 23:33
> À : mplayer-***@mplayerhq.hu
> Objet : Re: [MPlayer-users] Mplayer not launching M3U playlist from a local file, but works from network file
>
> Vincent Lambert <vincent.lambert <at> supinfo.com> writes:
>
> > MPlayer 1.0rc2.atmel.1-4.3.5 (C) 2000-2007 MPlayer Team
>
> This looks quite ancient.
>
> Carl Eugen
>
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-***@mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
> _______________________________________________
> MPlayer-users mailing list
> MPlayer-***@mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users
Reimar Döffinger
2016-04-12 20:26:39 UTC
Permalink
On Sun, Apr 10, 2016 at 10:45:30PM +0200, Vincent Lambert wrote:
> Hello,
>
> I've created a stackoverflow topic with correct coloration and
> description of my problem, you can answer here or in the topic as you
> prefer.
>
> http://stackoverflow.com/questions/36534875/mplayer-not-launching-m3u-playlist-from-a-local-file-but-works-from-network-fil
>
>
> I have two identical .m3u files, one on my current directory and another
> hosted on a web server on my LAN.
>
> If I try:
>
> -bash-4.1# mplayer -quiet -input file=/tmp/mplayer-control playlist.m3u

Why aren't you just using -playlist here?
You're supposed to use that option whenever an input
might be a playlist.

> And nothing happen. Okai. In another hand if I try:
>
> -bash-4.1# mplayer -quiet -input file=/tmp/mplayer-control
> http://192.168.0.101:8000/playlist.m3u

Might be some content-type based auto-detection as playlist.
Local files don't have a content-type...
LAMBERT Vincent
2016-04-13 07:57:52 UTC
Permalink
> Why aren't you just using -playlist here?
> You're supposed to use that option whenever an input
> might be a playlist.

I just realized I'm not forced to use the API I'm calling but just create a subproccess launching mplayer. I'm loosing some functionnalities (as stop the playlist) but at least it works and I'm convenient with that, thank you :)

> Might be some content-type based auto-detection as playlist.
> Local files don't have a content-type...

You're right, again. I was using the SimpleHTTPServer module from Python. On Python 2.4 (on my embedded computer), the playlist is "octet-stream", but on my LAN server Python is 2.7 and send a correct x-mpegurl

I finally found a workaround, thank you!
Loading...