Changes between Version 28 and Version 29 of Concatenate


Ignore:
Timestamp:
Oct 31, 2015, 2:02:33 PM (4 years ago)
Author:
steely.wing
Comment:

Better way to select stream, because some video file stream 0 is audio, stream 1 is video

Legend:

Unmodified
Added
Removed
Modified
  • Concatenate

    v28 v29  
    156156{{{
    157157ffmpeg -i input1.mp4 -i input2.webm \
    158 -filter_complex "[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]" \
     158-filter_complex "[0:v:0] [0:a:0] [1:v:0] [1:a:0] concat=n=2:v=1:a=1 [v] [a]" \
    159159-map "[v]" -map "[a]" <encoding options> output.mkv
    160160}}}
     
    163163
    164164{{{
    165 [0:0] [0:1] [1:0] [1:1]
    166 }}}
    167 
    168 tells ffmpeg what streams to send to the concat filter; in this case, streams 0 and 1 from input 0 (`input1.mp4` in this example), and streams 0 and 1 from input 1 (`input2.webm`).
     165[0:v:0] [0:a:0] [1:v:0] [1:a:0]
     166}}}
     167
     168tells ffmpeg what streams to send to the concat filter; in this case, video stream 0 [0:v:0] and audio stream 0 [0:a:0] from input 0 (`input1.mp4` in this example), and video stream 0 [1:v:0] and audio stream 0 [1:v:0] from input 1 (`input2.webm`).
    169169
    170170{{{