<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>
<SPAN style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; DISPLAY: inline !important; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; FLOAT: none; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Hi</SPAN>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">I'm capturing live h264 stream over RTSP protocol and time to time when I stop recordind I get corrupted file. </DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Here is ffmpeg line what I use for recording: <STRONG><EM> ffmpeg -i rtsp://192.169.23.28:8555 -aspect 16:9 -copyts -vcodec libx264 -preset fast -b:v 900k -crf 22 -y /videos/video1.mp4</EM> </STRONG>. I must stop this record using "<EM>pkill 2</EM>" (=ctrl+c) command, because I like to split this program for peaces.</DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Moust of files are OK and I can play those without any problem. Here is one of those working files output:</DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<DIV style="TEXT-INDENT: 0px !important">root@CVod1:/DVB#<EM> ffmpeg -i /videos/Video_2.mp4</EM></DIV>
<DIV style="TEXT-INDENT: 0px !important">ffmpeg version N-34781-gab31db0 Copyright (c) 2000-2012 the FFmpeg developers</DIV>
<DIV style="TEXT-INDENT: 0px !important"> built on Mar 27 2012 08:48:53 with gcc 4.6.1</DIV>
<DIV style="TEXT-INDENT: 0px !important"> configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libavutil 51. 44.100 / 51. 44.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libavcodec 54. 12.100 / 54. 12.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libavformat 54. 3.100 / 54. 3.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libavdevice 53. 4.100 / 53. 4.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libavfilter 2. 66.100 / 2. 66.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libswscale 2. 1.100 / 2. 1.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libswresample 0. 10.100 / 0. 10.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libpostproc 52. 0.100 / 52. 0.100</DIV>
<DIV style="TEXT-INDENT: 0px !important">Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/videos/Video_2.mp4':</DIV>
<DIV style="TEXT-INDENT: 0px !important"> Metadata:</DIV>
<DIV style="TEXT-INDENT: 0px !important"> major_brand : isom</DIV>
<DIV style="TEXT-INDENT: 0px !important"> minor_version : 512</DIV>
<DIV style="TEXT-INDENT: 0px !important"> compatible_brands: isomiso2avc1mp41</DIV>
<DIV style="TEXT-INDENT: 0px !important"> <SPAN style="TEXT-INDENT: 0px !important; FONT-SIZE: 10pt"> encoder : Lavf54.3.100</SPAN></DIV>
<DIV style="TEXT-INDENT: 0px !important"> <SPAN style="TEXT-INDENT: 0px !important; FONT-SIZE: 10pt"> Duration: 00:00:30.26, start: 0.000000, bitrate: 642 kb/s</SPAN></DIV>
<DIV style="TEXT-INDENT: 0px !important"> Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 640x360 [SAR 1:1 DAR 16:9], 508 kb/s, 25 fps, 25 tbr, 25 tbn, 50 tbc</DIV>
<DIV style="TEXT-INDENT: 0px !important"> Metadata:</DIV>
<DIV style="TEXT-INDENT: 0px !important"> handler_name : VideoHandler</DIV>
<DIV style="TEXT-INDENT: 0px !important"> Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, s16, 127 kb/s</DIV>
<DIV style="TEXT-INDENT: 0px !important"> Metadata:</DIV>
<DIV style="TEXT-INDENT: 0px !important"> handler_name :</DIV>
<DIV style="TEXT-INDENT: 0px !important">At least one output file must be specified</DIV>
<DIV style="TEXT-INDENT: 0px !important">root@CVod1:/DVB#</DIV></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">And sometimes from same source and same stream, the recording fails for " moov atom not found":</DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">
<DIV style="TEXT-INDENT: 0px !important"><SPAN style="TEXT-INDENT: 0px !important; FONT-SIZE: 10pt"><A href="mailto:root@Vod1:/DVB">root@Vod1:/DVB</A>#</SPAN><EM> ffmpeg -i /videos/Video_53.mp4</EM></DIV>
<DIV style="TEXT-INDENT: 0px !important">ffmpeg version N-34781-gab31db0 Copyright (c) 2000-2012 the FFmpeg developers</DIV>
<DIV style="TEXT-INDENT: 0px !important"> built on Mar 27 2012 08:48:53 with gcc 4.6.1</DIV>
<DIV style="TEXT-INDENT: 0px !important"> configuration: --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libtheora --enable-libvorbis --enable-libx264 --enable-nonfree --enable-postproc --enable-version3 --enable-x11grab --enable-libvpx</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libavutil 51. 44.100 / 51. 44.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libavcodec 54. 12.100 / 54. 12.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libavformat 54. 3.100 / 54. 3.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libavdevice 53. 4.100 / 53. 4.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libavfilter 2. 66.100 / 2. 66.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libswscale 2. 1.100 / 2. 1.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libswresample 0. 10.100 / 0. 10.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"> libpostproc 52. 0.100 / 52. 0.100</DIV>
<DIV style="TEXT-INDENT: 0px !important"><FONT color=#ff0000><STRONG>[mov,mp4,m4a,3gp,3g2,mj2 @ 0x16d43e0] moov atom not found</STRONG></FONT></DIV>
<DIV style="TEXT-INDENT: 0px !important"><SPAN style="TEXT-INDENT: 0px !important; FONT-SIZE: 10pt">/videos/Video_53.mp4</SPAN>: Invalid data found when processing input</DIV>
<DIV style="TEXT-INDENT: 0px !important"><A href="mailto:root@Vod1:/DVB">root@Vod1:/DVB</A>#</DIV></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">So what's the trik here or how I should do this to get all files to work without any problem ?</DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px"><BR style="TEXT-INDENT: 0px !important"></DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Cheers,</DIV>
<DIV style="WIDOWS: 2; TEXT-TRANSFORM: none; TEXT-INDENT: 0px; FONT: 13px Tahoma; WHITE-SPACE: normal; ORPHANS: 2; LETTER-SPACING: normal; COLOR: rgb(0,0,0); WORD-SPACING: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">Jii</DIV><BR class=Apple-interchange-newline> </div></body>
</html>