With ffmpeg you can use the segment
muxer:
ffmpeg -i in.vob -c:v libx264 -c:a aac -strict experimental -b:a 192k \ -map 0:v:0 -map 0:a:0 -f segment -segment_times 1,2,3,5,8,13,21 out%03d.mp4
Here, the -segment_times
option gives the individual durations of the segments in seconds. Use a single -segment_time 5
instead for creating segments of same duration.
The -map 0:v:0
says, take the first video stream (v:0
) of the first input file (0:
). Same goes for audio. You need to change the v:0
to v:2
to get the third video stream, for example.
Check the H.264 encoding guide for more options regarding quality.
The \
continues the command in Linux shells. YMMV for Windows.