Page 1 of 1

nicer ffmpeg & bitrate fix

Posted: Tue Jan 19, 2010 3:58 pm
by jfkastner
ubu 904 / zm 1242 - the video generation locked up my system too much, zmc lost frames, and the bitrate was all over

my quick fix: in zmvideo.pl toward the end change a few lines to


my $ffmpegbitrate = $frame_rate*200000;

my $command = " nice -n 10 ".ZM_PATH_FFMPEG." -y -r $frame_rate ".ZM_FFMPEG_INPUT_OPTIONS." -i %0".ZM_EVENT_IMAGE_DIGITS."d-capture.jpg -b ".$ffmpegbitrate." -s $video_size ".ZM_FFMPEG_OUTPUT_OPTIONS." '$video_file' > ffmpeg.log 2>&1";


if you add a " & " after the &1 in the last line ffmpeg runs in the background, even nicer (since you can still use the ZM menus) - but you have to refresh/F5 the dialog to see the generated video file

maybe someone else can make this better?