[MPlayer-users] mplayer vs mpv

Reimar Döffinger Reimar.Doeffinger at gmx.de
Thu Jan 18 03:43:25 EET 2024



> On 11 Jan 2024, at 18:28, Mike Castle <dalgoda+mplayer at gmail.com> wrote:
> 
> On Thu, Jan 11, 2024 at 6:34 AM Michael Hawkins
> <mhawkins.consultant at gmail.com> wrote:
>> This works fine:
>> mpv -playlist https://somafm.com/defcon130.pls
>> 
>> This does not:
>> mplayer -playlist https://somafm.com/defcon130.pls
> 
> Adding a bunch of '-v's to the command line shows something interesting.
> 
> It looks like for http:, mplayer handles the fetch/parsing of the
> playlist itself.  While, for https:, it hands it off to
> libavformat/ffmpeg to fetch the playlist.

Not sure this is quite the right thing, but below patch helps.
But https still needs a much larger cache. I am not sure if that
is because of how FFmpeg works or because the server uses chunked
encoding for https or something else.

Index: stream/stream_ffmpeg.c
===================================================================
--- stream/stream_ffmpeg.c (revision 38441)
+++ stream/stream_ffmpeg.c (working copy)
@@ -32,6 +32,7 @@
 static int fill_buffer(stream_t *s, char *buffer, int max_len)
 {
     int r = avio_read(s->priv, buffer, max_len);
+    if (avio_feof(s->priv)) s->eof = 1;
     return (r <= 0) ? -1 : r;
 }
 



More information about the MPlayer-users mailing list