<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" &nbsp;-vcodec copy -acodec copy&nbsp;"c:\output_file.mp4"</div><div>FFmpeg version SVN-r22716, Copyright (c) 2000-2010 the FFmpeg developers</div><div>&nbsp;&nbsp;built on Mar 29 2010 06:05:44 with gcc 4.4.2</div><div>&nbsp;&nbsp;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>&nbsp;&nbsp;libavutil &nbsp; &nbsp; 50.13. 0 / 50.13. 0</div><div>&nbsp;&nbsp;libavcodec &nbsp; &nbsp;52.61. 0 / 52.61. 0</div><div>&nbsp;&nbsp;libavformat &nbsp; 52.58. 0 / 52.58. 0</div><div>&nbsp;&nbsp;libavdevice &nbsp; 52. 2. 0 / 52. 2. 0</div><div>&nbsp;&nbsp;libswscale &nbsp; &nbsp; 0.10. 0 / &nbsp;0.10. 0</div><div>[flv @ 01a1d490]negative cts, previous timestamps might be wrong</div><div>&nbsp;&nbsp; &nbsp;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>-&gt; 25.25 (101/4)</div><div>Input #0, flv, from 'c:\output_file.flv':</div><div>&nbsp;&nbsp;Duration: 00:00:59.99, start: 0.000000, bitrate: N/A</div><div>&nbsp;&nbsp; &nbsp;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>&nbsp;&nbsp; &nbsp;Stream #0.1: Audio: aac, 48000 Hz, mono, s16</div><div>Output #0, mp4, to 'c:\output_file.mp4':</div><div>&nbsp;&nbsp;Metadata:</div><div>&nbsp;&nbsp; &nbsp;encoder &nbsp; &nbsp; &nbsp; &nbsp; : Lavf52.58.0</div><div>&nbsp;&nbsp; &nbsp;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>&nbsp;&nbsp; &nbsp;Stream #0.1: Audio: aac, 48000 Hz, mono</div><div>Stream mapping:</div><div>&nbsp;&nbsp;Stream #0.0 -&gt; #0.0</div><div>&nbsp;&nbsp;Stream #0.1 -&gt;
 #0.1</div><div>Press [q] to stop encoding</div><div>[mp4 @ 01b08070]st:0 error, non monotone timestamps -2 &gt;= -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:&nbsp;record rtmp video using rtmpdump-&gt;mux as mp4 using ffmpeg&nbsp;</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 &lt;hyc@highlandsun.com&gt;<br><b><span style="font-weight: bold;">To:</span></b> rtmpdump discussion and development &lt;rtmpdump@mplayerhq.hu&gt;<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>&gt; On Thu, 7 Oct 2010 14:11:18 -0700 (PDT), Soroush Hassani wrote:<br>&gt;&gt; Thanks for your reply, here is the full command and its output:<br>&gt;&gt; rtmpdump -r<br>&gt;&gt; "rtmp://swarmcasteulivefs.fplive.net/swarmcasteulive-live/swrmcst_alarabiya"<br>&gt;&gt; --live --flv "c:\output_file.flv"&nbsp; --stop 60<br><span>&gt;&gt; here is the created file: <a target="_blank" href="http://simplewebcode.com/output_file.flv">http://simplewebcode.com/output_file.flv</a></span><br>&gt;&gt; there is not difference if I end the filename with .flv or .mp4<br>&gt;<br>&gt; rtmpdump outputs a file which works in mplayer and ffplay for me.<br>&gt; i can also play your url in mplayer and ffplay.<br>&gt;<br>&gt; i can also convert your file:<br>&gt; ffmpeg -i <a href="http://simplewebcode.com/output_file.flv" target="_blank">http://simplewebcode.com/output_file.flv</a> out.avi<br>&gt; out.avi then plays fine for me.<br>&gt;<br>&gt; 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>