doc:appunti:linux:video:ffmpeg
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | Next revisionBoth sides next revision | ||
doc:appunti:linux:video:ffmpeg [2020/06/17 12:35] – niccolo | doc:appunti:linux:video:ffmpeg [2020/12/07 17:26] – [Deinterlace] niccolo | ||
---|---|---|---|
Line 469: | Line 469: | ||
-x264-params ' | -x264-params ' | ||
output-video.mkv | output-video.mkv | ||
+ | </ | ||
+ | |||
+ | ====== Problem in MKV Remux ====== | ||
+ | |||
+ | It seems there is a bug in ffmpeg **[[https:// | ||
+ | |||
+ | This was the first try command line: | ||
+ | |||
+ | < | ||
+ | # The resulting video is broken. | ||
+ | ffmpeg -i input_file1.mkv -i input_file2.mkv \ | ||
+ | -map ' | ||
+ | -map ' | ||
+ | -codec:v copy -codec:a copy -codec:s copy \ | ||
+ | output_file.mkv | ||
+ | </ | ||
+ | |||
+ | The workaround was to extract each individual stream, and mux then together: | ||
+ | |||
+ | < | ||
+ | ffmpeg -i input_file1.mkv -map 0:v:0 -codec:v copy input-v_env.mkv | ||
+ | ffmpeg -i input_file1.mkv -map 0:a:0 -codec:a copy input-a_ita.mkv | ||
+ | ffmpeg -i input_file2.mkv -map 0:a:0 -codec:a copy input-a_eng.mkv | ||
+ | ffmpeg -i input_file2.mkv -map 0:s:0 -codec:s copy input-s_eng.mkv | ||
+ | ffmpeg \ | ||
+ | -i input-v_env.mkv \ | ||
+ | -i input-a_ita.mkv \ | ||
+ | -i input-a_eng.mkv \ | ||
+ | -i input-s_eng.mkv \ | ||
+ | -codec:v copy -codec:a copy -codec:s copy \ | ||
+ | -map ' | ||
+ | output_file.mkv | ||
</ | </ | ||
doc/appunti/linux/video/ffmpeg.txt · Last modified: 2023/11/13 11:24 by niccolo