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

Howard Chu hyc at highlandsun.com
Mon Mar 22 03:27:56 CET 2010


Howard Chu wrote:
> 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.

Something like:

   m_option_t *opt = m_option_list_find(lavfdopts_conf, "format");
   m_option_parse(opt, opt->name, "flv", opt->p, M_CONFIG_FILE);

-- 
   -- 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