| | 114 | |
| | 115 | == Example 4 == |
| | 116 | |
| | 117 | If we want to re-encode just the video streams, but copy all the other streams (like audio, subtitles, attachments, etc), we might use something like this: |
| | 118 | {{{ |
| | 119 | ffmpeg -i input.mkv -map 0 -c copy -c:v mpeg2video output.mkv |
| | 120 | }}} |
| | 121 | It will tell ffmpeg to: |
| | 122 | - read the input file 'input.mkv' |
| | 123 | - select all the input streams (first input = 0) to be processed (using "-map 0") |
| | 124 | - mark all the streams to be just copied to the output (using "-c copy") |
| | 125 | - mark just the video streams to be re-encoded (using "-c:v mpeg2video") |
| | 126 | - write the output file 'output.mkv' |