[FFmpeg-devel] rtmp support and librtmp
Mon Apr 26 23:37:22 CEST 2010
I'm using ffmpeg (libavformat) to read rtmp stream and I had lots of problems with it, so I decided to scrap that code. Then for rtmp I started to use original c++ librtmp from xbmc (xbox media center) and right away all my problems went away.
Since librtmp (http://rtmpdump.mplayerhq.hu/) was based on that librtmp from xbmc I thought that if I compile in librtmp then I'd also get the same nice results.
However, it appears that with librtmp compiled in I cannot even open file anymore and I get in log:
"24: Received FLV packet before play()! Ignoring."
and av_open_input_file returns -1
I use this sequence to read files:
loop : av_read_frame()
is there something special that I need to do in order to be able to use new librtmp and ffmpeg? In case if it matters, the file is regular flv (created with ffmpeg) served from wowza streaming server.
Among problems with regular (without librtmp) build of ffmpeg were: quite unstable playback, freezing of playback, if the stream did not have sound then it would freeze on start up for quite a while (av_find_stream_info could take like 10 secs and usually when stream is video only it would take longer to return). With librtmp from xbmc it would work just as expected: no delays and freezing, so I guess that if I compile in librtmp support into ffmpeg I'd get the same nice results, but so far it breaks on the first step. Can you please tell me if there is anything wrong with what I'm doing? Thanks
More information about the ffmpeg-devel