windows - how to save on existing video
2014-07
I have this command : ffmpeg -f dshow -i video="screen-capture-recorder" -r 30 -t 10 E:\test01.flv
and i am happy with it, but i wonder if i can make it save every 30 minutes so if the power went off i only loses the last 30 minutes.
i use C# to launch and hide ffmpeg cmd
, so i wonder how to make it save to the same test01.flv
every 30 minutes?
flv is a streaming container (unlike mp4). If the file is cut off, it is still valid and playable up to the last complete frame stored on disk. Just calling sync() once in a while is good enough for your use case.
I am converting each type video to .flv video using FFmpeg but for some videos I got
"Segmentation fault" error why this error was occurred?
my code to convert .flv file is
function convert_flv($vidtime,$infile, $outfile, $w = 0, $h = 0, $extra_infile = '', $extra_outfile = '') { $parms = ''; if($w == 0 && $h == 0) { //$parms .= '-sameq '; } else { $parms = '-s {$w}x{$h} '; }
if($vidtime==60)
{
$cmd = ffmpeg($infile, $outfile, $parms.' '.$extra_infile, '-t 00:01:00 -ar 22050 -r 15 -f flv '.$extra_outfile);
}
else
{
$cmd = ffmpeg($infile, $outfile, $parms.' '.$extra_infile, '-t 00:04:00 -ar 22050 -r 15 -f flv '.$extra_outfile);
}
print_r($cmd);
return $cmd;
}
and I am trying to convert .mp4 file.