I've been trying to re-mux some mkv files into mp4 files recently and ran into this issue. The mkv files contain an h.264 video stream, two aac audio streams (english and japanese) and one subtitle stream. All I'm trying to do is move all four streams into a mp4 container using the following command:
Code:
ffmpeg -i input.mkv -vcodec copy -acodec copy -acodec copy -scodec copy output.m4v -newaudio
Code:
Input #0, matroska, from 'input.mkv':
Duration: 00:24:42.64, start: 0.000000, bitrate: N/A
Stream #0.0: Video: h264, yuv420p, 640x480, PAR 1:1 DAR 4:3, 23.98 tbr, 1k tbn, 47.95 tbc
Stream #0.1(jpn): Audio: aac, 11025 Hz, stereo, s16
Stream #0.2(eng): Audio: aac, 24000 Hz, stereo, s16
Stream #0.3(eng): Subtitle: 0x0000
File 'output.m4v' already exists. Overwrite ? [y/N] y
Output #0, ipod, to 'output.m4v':
Stream #0.0: Video: libx264, yuv420p, 640x480 [PAR 1:1 DAR 4:3], q=2-31, 90k tbn, 23.98 tbc
Stream #0.1(jpn): Audio: 0x0000, 11025 Hz, stereo, s16
Stream #0.2(eng): Subtitle: 0x0000
Stream #0.3(eng): Audio: 0x0000, 24000 Hz, stereo, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Stream #0.3 -> #0.2
Stream #0.2 -> #0.3
Unsupported codec for output stream #0.3
Since the first audio stream doesn't seem to be throwing an error I'm a little confused as to why the second (with the same codec) would give this error.
I would appreciate any help with this problem, or alternative solutions to accomplishing the mux.
Bookmarks