concat=n=2:v=1:a=1 means concatenate filter, two streams, one stream per video and one stream per audio.
means "input 0 video stream 0 input 0 audio stream 0 input 1 video stream 0 input 2 video stream 0".
Concatenate two videos two one: ffmpeg -i movie1.avi -i movie2.avi \ Select the 0:0 video stream, and the 0:2 audio stream (supposedly 0:0 is the video, and 0:1 and 0:2 are audio streams). Select specific track ffmpeg -i movie1.avi -map 0:0 -map 0:2 movie1.m4v Set 480 pixels high, scale width to even pixelsįorce 8-bit YUV420 pixels (downsample from 10-bit)ĭump information to JSON format: ffprobe "file.mkv" -v quiet -print_format json \ Set file size limit (for 2-pass encoding) Force duration to specific length ( hh:mm:ss)