So I'm trying to use ffmpeg to mux two ts files together while dropping the video of the second ts file and adding subtitles. So far (without really knowing anything about ffmpeg) I've pieced together the following command:
...with this I get..Code:ffmpeg -i "file1.ts" -i "file2.ts" -i "file3.srt" -map 0:v:0 -vcodec copy -map 0:a:0 -acodec copy -map 1:a:0 -acodec copy -map 2:s:0 -c copy -f matroska out.mkv
Ideally I want to make the audio from file1.ts default and the subtitles default as well when playing back the mkv, but I'll settle with just being able to run it through successfully for now. I'm also trying to retain all quality. I know I can do all this with MKVToolNix, but I'm trying to make a BAT file to run the whole process for me.Code:Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Stream #1:1 -> #0:2 (copy) Stream #2:0 -> #0:3 (copy) Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Advice?
+ Reply to Thread
Results 1 to 3 of 3
Similar Threads
-
FFmpeg error message when converting MKV to MP4
By BigPhil1 in forum Video ConversionReplies: 1Last Post: 15th Jun 2016, 14:59 -
FFMPEG Input and Output line for converting multiple videos
By Phillipj in forum Video ConversionReplies: 13Last Post: 10th May 2016, 15:23 -
mux multiple mkv files with subtitles
By simonrule in forum SubtitleReplies: 1Last Post: 30th Oct 2015, 18:15 -
FFMPEG/Virtualdub: "error: multiple chroma blocks not supported"
By marcorocchini in forum Newbie / General discussionsReplies: 0Last Post: 20th Apr 2014, 07:15 -
Trying to extract 1 image from multiple videos with FFMPEG
By mordor in forum Newbie / General discussionsReplies: 2Last Post: 13th Apr 2013, 18:31