ffmpeg

FFmpeg - fixing video duration

Overview Had a capture going with Vegas where the capture crashed near the end.  The capture program ( vidcap ) did dump a avi file but the avi file's duration or length was only 50 seconds instead of 35 minutes.  Vegas will not load the whole file, just the first 50 seconds!

Solution

Rewrote the video file using ffmpeg...this also fixed the duration.

Here's the script:

setlocal
SET ffmpegpath=%APPDATA%\myFFmpeg
SET PATH=%PATH%;%ffmpegpath%
ffmpeg -i "u:\04 - Lord Howe Island\CaptureTemp_0000.avi" -c:v copy -c:a copy "good0.avi" -f null 1>out_error3.txt 2>out_error4.txt -