[FFmpeg-user] corruption when performing scripted extraction using -ss and -t

np.mdbr np.mdbr at gmail.com
Tue Nov 5 01:36:11 CET 2013

Hi All,

I've scripted the extraction of clips from a large MP4 file.  However, each
clip that is extracted displays corrupted video/grey screen for
approximately the first five seconds, then it displays the expected output.

The main MP4 file was acquired using VLC's command line interface.  I had to
use VLC because the capture card currently available uses 'crossbars',
something that ffmpeg cannot handle at this time.  I've listed the two
commands below.

First command (in VLC, to acquire main video file):
vlc -I rc dshow:// --sout

Second command (using ffmpeg, to extract specific time periods from the main
video file; timings are in seconds, floating point values):
ffmpeg -ss <clipStart> -t <duration> -i <input_file> -b:v <bitrate of parent
file> -filter:v <calculated pixel area> <new file name>

Thanks for your help.

View this message in context: http://ffmpeg-users.933282.n4.nabble.com/corruption-when-performing-scripted-extraction-using-ss-and-t-tp4662225.html
Sent from the FFmpeg-users mailing list archive at Nabble.com.

More information about the ffmpeg-user mailing list