[MPlayer-dev-eng] force lavf demuxer for rtmp?

Howard Chu hyc at highlandsun.com
Mon Mar 22 02:54:56 CET 2010


compn wrote:
> hello,
>
> it seems rtmp always uses flv (afaict?), it speeds things up to add
> mplayer -lavfdopts format=flv -demuxer lavf in front of any rtmp stream.
>
> i guess a large enough -cache would also help the probe find things quicker.
> just seems like it freezes for a while instead of playing if too small a cache is utilized.
>
> example stream:
> mplayer -lavfdopts format=flv -demuxer lavf ffmpeg://rtmp://cp82346.live.edgefcs.net:1935/live?ovpfv=1.1/CSPAN1@14845
>
> from reading demux_lavf it seems like one could use static char *opt_format = FLV
> but i think this would require including a bunch of things in stream_ffmpeg ?

No, static means it's only effective within that one source file. You need to 
call the global option parser and feed it the "-lavfdopts format=flv" 
directly. The "-demuxer lavf" is not needed if your rtmp source sets 
*file_format = DEMUXER_TYPE_LAVF.
-- 
   -- Howard Chu
   CTO, Symas Corp.           http://www.symas.com
   Director, Highland Sun     http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP  http://www.openldap.org/project/



More information about the MPlayer-dev-eng mailing list