[rtmpdump] corrupt dumped file

Soroush Hassani soroush124 at yahoo.com
Fri Oct 8 13:29:38 CEST 2010

Players based on ffmpeg like VLC and others could play that file but not others 
like media player classic and even when I try to convert it to mp4 preserving 
the original codecs, because I need to analyze it using Elecard StreamEye, 
ffmpeg fails to do that, here is the command and its output:

ffmpeg -i "c:\output_file.flv"  -vcodec copy -acodec copy "c:\output_file.mp4"
FFmpeg version SVN-r22716, Copyright (c) 2000-2010 the FFmpeg developers
  built on Mar 29 2010 06:05:44 with gcc 4.4.2
  configuration: --enable-memalign-hack --cross-prefix=i686-mingw32- --cc=ccache
-i686-mingw32-gcc --arch=i686 --target-os=mingw32 --enable-runtime-cpudetect --e
nable-avisynth --enable-gpl --enable-version3 --enable-bzlib --enable-libgsm --e
nable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-l
ibspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libsc
hroedinger --enable-libx264 --enable-libopencore_amrwb --enable-libopencore_amrn
  libavutil     50.13. 0 / 50.13. 0
  libavcodec    52.61. 0 / 52.61. 0
  libavformat   52.58. 0 / 52.58. 0
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0.10. 0 /  0.10. 0
[flv @ 01a1d490]negative cts, previous timestamps might be wrong
    Last message repeated 67 times
[flv @ 01a1d490]Estimating duration from bitrate, this may be inaccurate

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)
-> 25.25 (101/4)
Input #0, flv, from 'c:\output_file.flv':
  Duration: 00:00:59.99, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: h264, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 50 fps, 25.2
5 tbr, 1k tbn, 50 tbc
    Stream #0.1: Audio: aac, 48000 Hz, mono, s16
Output #0, mp4, to 'c:\output_file.mp4':
    encoder         : Lavf52.58.0
    Stream #0.0: Video: libx264, yuv420p, 720x576 [PAR 16:15 DAR 4:3], q=2-31, 5
0 tbn, 25 tbc
    Stream #0.1: Audio: aac, 48000 Hz, mono
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[mp4 @ 01b08070]st:0 error, non monotone timestamps -2 >= -2
av_interleaved_write_frame(): Error number -1 occurred

I am going to make video on demand files of our live stream which is recorded as 
one big file for each 24 hours on Flash media server and will need to repeat 
this chain much: record rtmp video using rtmpdump->mux as mp4 using ffmpeg 

From: Howard Chu <hyc at highlandsun.com>
To: rtmpdump discussion and development <rtmpdump at mplayerhq.hu>
Sent: Fri, October 8, 2010 3:12:09 AM
Subject: Re: [rtmpdump] corrupt dumped file

compn wrote:
> On Thu, 7 Oct 2010 14:11:18 -0700 (PDT), Soroush Hassani wrote:
>> Thanks for your reply, here is the full command and its output:
>> rtmpdump -r
>> "rtmp://swarmcasteulivefs.fplive.net/swarmcasteulive-live/swrmcst_alarabiya"
>> --live --flv "c:\output_file.flv"  --stop 60
>> here is the created file: http://simplewebcode.com/output_file.flv
>> there is not difference if I end the filename with .flv or .mp4
> rtmpdump outputs a file which works in mplayer and ffplay for me.
> i can also play your url in mplayer and ffplay.
> i can also convert your file:
> ffmpeg -i http://simplewebcode.com/output_file.flv out.avi
> out.avi then plays fine for me.
> maybe your ffmpeg tools (super) are too old? try getting newer versions.

Played fine for me too, but with lots of complaints about invalid timestamps. 
Very likely the original source is spewing incorrect timestamps.

rtmpdump mailing list
rtmpdump at mplayerhq.hu

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mplayerhq.hu/pipermail/rtmpdump/attachments/20101008/2ee60b73/attachment.htm>

More information about the rtmpdump mailing list