[MPlayer-dev-eng] Can't play mp4 over http - PATCH

Alban Bedel albeu at free.fr
Tue Feb 19 19:03:12 CET 2008


On Tue, 19 Feb 2008 18:31:18 +0100
Alban Bedel <albeu at free.fr> wrote:

> On Tue, 19 Feb 2008 18:22:04 +0100
> Alban Bedel <albeu at free.fr> wrote:
> 
> > On Tue, 19 Feb 2008 17:21:10 +0100
> > "Guillaume LECERF" <foxcore at gmail.com> wrote:
> > 
> > > Hi all,
> > > 
> > > I experience a weird problem here : many mp4 files can't be
> > > correctly played when streamed over http.
> > > I use mplayer svn, and it's definitely not a ffmpeg problem, as
> > > the files almost play with ffplay.
> > > Here is an output :
> > > 
> > > $ ./mplayer
> > > http://m.podshow.com/media/3507/episodes/97393/bestofyoutube-97393-02-02-2008.mp4
> > > <snip> AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
> > > Starting playback...
> > > [mov,mp4,m4a,3gp,3g2,mj2 @ 0x864bd40]stream 1, offset 0xe5f:
> > > partial file [mov,mp4,m4a,3gp,3g2,mj2 @ 0x864bd40]stream 1,
> > > offset 0xe79: partial file
> > > 
> > > But if I download the file locally, it plays flawlessly.
> > > 
> > > Here are some url of streams not played :
> > > http://m.podshow.com/media/3507/episodes/97393/bestofyoutube-97393-02-02-2008.mp4
> > > http://feeds.feedburner.com/~r/BestOfDailymotion/~5/219758919/dailymotion-94587-01-13-2008.mp4
> > 
> > Both play perfectly with the (somewhat old) version installed on my
> > system (r22570). So there was a regression.
> 
> I missed something before sending my previous mail. The old version
> use mplayer's mov demuxer and it still work fine with -demuxer mov.
> So the bug is most probably in the lavf warper.

And it turn out to be in the http code. The lavf demuxer need
stream->end_pos for seeking to work correctly. As a side effect it also
fix mplayer "`youtube-dl -g $URL`" :)

	Albeu
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http_end_pos.diff
Type: text/x-diff
Size: 780 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20080219/b59723e9/attachment.diff>


More information about the MPlayer-dev-eng mailing list