Thursday, May 16, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 12748  / 2 Years ago, wed, september 21, 2022, 9:13:26

I have been trying to convert mkv to mp4 using
ffmpeg -i input.mkv -vcodec copy -acodec copy output.mp4


The input.mkv has two different audio track and one subtitle .


But the problem I am getting is that when I convert only the default audio track remains and the 2nd audio track & the subtitle does not get converted


Reference image


More From » video

 Answers
4

Use -map advanced option. See manpages (man ffmpeg) but basically use -map 0


Excerpt from manpage:


For example, to map ALL streams from the first input file to output   
ffmpeg -i INPUT -map 0 output

[#1755] Thursday, September 22, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
itutejagua

Total Points: 89
Total Questions: 124
Total Answers: 113

Location: British Indian Ocean Territory
Member since Sun, Feb 13, 2022
2 Years ago
itutejagua questions
Tue, Nov 29, 22, 11:04, 1 Year ago
Wed, Feb 23, 22, 20:14, 2 Years ago
Wed, Jul 27, 22, 13:15, 2 Years ago
Wed, Jan 18, 23, 01:33, 1 Year ago
;