<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><div><div>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:</div><div><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 12pt; "><div>ffmpeg -i "c:\output_file.flv" -vcodec copy -acodec copy "c:\output_file.mp4"</div><div>FFmpeg version SVN-r22716, Copyright (c) 2000-2010 the FFmpeg developers</div><div> built on Mar 29 2010 06:05:44 with gcc 4.4.2</div><div> configuration: --enable-memalign-hack --cross-prefix=i686-mingw32- --cc=ccache</div><div>-i686-mingw32-gcc --arch=i686 --target-os=mingw32
--enable-runtime-cpudetect --e</div><div>nable-avisynth --enable-gpl --enable-version3 --enable-bzlib --enable-libgsm --e</div><div>nable-libfaad --enable-pthreads --enable-libvorbis --enable-libtheora --enable-l</div><div>ibspeex --enable-libmp3lame --enable-libopenjpeg --enable-libxvid --enable-libsc</div><div>hroedinger --enable-libx264 --enable-libopencore_amrwb --enable-libopencore_amrn</div><div>b</div><div> libavutil 50.13. 0 / 50.13. 0</div><div> libavcodec 52.61. 0 / 52.61. 0</div><div> libavformat 52.58. 0 / 52.58. 0</div><div> libavdevice 52. 2. 0 / 52. 2. 0</div><div> libswscale 0.10. 0 / 0.10. 0</div><div>[flv @ 01a1d490]negative cts, previous timestamps might be wrong</div><div> Last message repeated 67 times</div><div>[flv @ 01a1d490]Estimating duration from bitrate, this may be
inaccurate</div><div><br></div><div>Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1)</div><div>-> 25.25 (101/4)</div><div>Input #0, flv, from 'c:\output_file.flv':</div><div> Duration: 00:00:59.99, start: 0.000000, bitrate: N/A</div><div> Stream #0.0: Video: h264, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 50 fps, 25.2</div><div>5 tbr, 1k tbn, 50 tbc</div><div> Stream #0.1: Audio: aac, 48000 Hz, mono, s16</div><div>Output #0, mp4, to 'c:\output_file.mp4':</div><div> Metadata:</div><div> encoder : Lavf52.58.0</div><div> Stream #0.0: Video: libx264, yuv420p, 720x576 [PAR 16:15 DAR 4:3], q=2-31, 5</div><div>0 tbn, 25 tbc</div><div> Stream #0.1: Audio: aac, 48000 Hz, mono</div><div>Stream mapping:</div><div> Stream #0.0 -> #0.0</div><div> Stream #0.1 ->
#0.1</div><div>Press [q] to stop encoding</div><div>[mp4 @ 01b08070]st:0 error, non monotone timestamps -2 >= -2</div><div>av_interleaved_write_frame(): Error number -1 occurred</div><div><br></div><div>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 </div><div><br></div></div></div><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><br><div style="font-family:arial, helvetica, sans-serif;font-size:13px"><font size="2" face="Tahoma"><hr size="1"><b><span style="font-weight: bold;">From:</span></b> Howard Chu <hyc@highlandsun.com><br><b><span style="font-weight: bold;">To:</span></b> rtmpdump discussion and development <rtmpdump@mplayerhq.hu><br><b><span style="font-weight: bold;">Sent:</span></b> Fri, October 8, 2010 3:12:09
AM<br><b><span style="font-weight: bold;">Subject:</span></b> Re: [rtmpdump] corrupt dumped file<br></font><br>
compn wrote:<br>> On Thu, 7 Oct 2010 14:11:18 -0700 (PDT), Soroush Hassani wrote:<br>>> Thanks for your reply, here is the full command and its output:<br>>> rtmpdump -r<br>>> "rtmp://swarmcasteulivefs.fplive.net/swarmcasteulive-live/swrmcst_alarabiya"<br>>> --live --flv "c:\output_file.flv" --stop 60<br><span>>> here is the created file: <a target="_blank" href="http://simplewebcode.com/output_file.flv">http://simplewebcode.com/output_file.flv</a></span><br>>> there is not difference if I end the filename with .flv or .mp4<br>><br>> rtmpdump outputs a file which works in mplayer and ffplay for me.<br>> i can also play your url in mplayer and ffplay.<br>><br>> i can also convert your file:<br>> ffmpeg -i <a href="http://simplewebcode.com/output_file.flv" target="_blank">http://simplewebcode.com/output_file.flv</a> out.avi<br>> out.avi then plays fine for me.<br>><br>> maybe your
ffmpeg tools (super) are too old? try getting newer versions.<br><br>Played fine for me too, but with lots of complaints about invalid timestamps. <br>Very likely the original source is spewing incorrect timestamps.<br><br><br>_______________________________________________<br>rtmpdump mailing list<br><a ymailto="mailto:rtmpdump@mplayerhq.hu" href="mailto:rtmpdump@mplayerhq.hu">rtmpdump@mplayerhq.hu</a><br><a href="https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump" target="_blank">https://lists.mplayerhq.hu/mailman/listinfo/rtmpdump</a><br></div></div><div style="position:fixed"></div>
</div><br>
</body></html>