Ich versuche gerade eine MKV die 2 Untertitel beinhaltet zu kodieren in eine MP4. Videospur kopiere ich, Audiospur wandel ich in AAC um und die Untertitelspuren in mov_text, das Format womit MP4 zurecht kommt. Aber im Ergebnis habe ich immer nur die eine erste deutsche Untertitelspur umgewandelt. Ich habe mir den Befehl zusammengestückelt aus dem Netz: Ausgangsvideo ist:
General Complete name : input.mkv Format : Matroska Format version : Version 4 / Version 2 File size : 1.48 GiB Duration : 51 min 10 s Overall bit rate : 4 128 kb/s Encoded date : UTC 2014-12-14 00:38:39 Writing application : mkvmerge v7.4.0 ('Circles') 64bit built on Dec 12 2014 12:19:56 Writing library : libebml v1.3.0 + libmatroska v1.4.1 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.1 Format settings, CABAC : Yes Format settings, RefFrames : 10 frames Codec ID : V_MPEG4/ISO/AVC Duration : 51 min 10 s Bit rate : 2 846 kb/s Width : 1 280 pixels Height : 640 pixels Display aspect ratio : 2.000 Frame rate mode : Constant Frame rate : 23.976 (24000/1001) FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.145 Stream size : 1.02 GiB (69%) Writing library : x264 core 142 r2479 dd79a61 Encoding settings : cabac=1 / ref=10 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=48 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=6,6 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=7 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=250 / rc=crf / mbtree=1 / crf=15.5 / qcomp=0.70 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=38000 / vbv_bufsize=30000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.10 / aq=1:0.70 Default : Yes Forced : No Audio #1 ID : 2 Format : AC-3 Format/Info : Audio Coding 3 Format settings, Endianness : Big Codec ID : A_AC3 Duration : 51 min 10 s Bit rate mode : Constant Bit rate : 640 kb/s Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Bit depth : 16 bits Compression mode : Lossy Stream size : 234 MiB (15%) Language : German Service kind : Complete Main Default : Yes Forced : No Audio #2 ID : 3 Format : AC-3 Format/Info : Audio Coding 3 Format settings, Endianness : Big Codec ID : A_AC3 Duration : 51 min 10 s Bit rate mode : Constant Bit rate : 640 kb/s Channel(s) : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 kHz Frame rate : 31.250 FPS (1536 SPF) Bit depth : 16 bits Compression mode : Lossy Stream size : 234 MiB (15%) Language : English Service kind : Complete Main Default : No Forced : No Text #1 ID : 4 Format : UTF-8 Codec ID : S_TEXT/UTF8 Codec ID/Info : UTF-8 Plain Text Duration : 48 min 9 s Bit rate : 41 b/s Count of elements : 458 Stream size : 14.6 KiB (0%) Language : German Default : Yes Forced : No Text #2 ID : 5 Format : UTF-8 Codec ID : S_TEXT/UTF8 Codec ID/Info : UTF-8 Plain Text Duration : 47 min 39 s Bit rate : 47 b/s Count of elements : 518 Stream size : 16.4 KiB (0%) Language : English Default : No Forced : No
Jetzt wende ich folgendes an:
ffmpeg -i input.mkv -c:v copy -c:a aac -b:a 128k -c:s mov_text -metadata:s:s:0 language=ger -metadata:s:s:1 language=eng output.mp4
Doch das Ergebnis ist eine MP4 nur mit der ersten deutschen Spur.
General Complete name : output.mp4 Format : MPEG-4 Format profile : Base Media Codec ID : isom (isom/iso2/avc1/mp41) File size : 1.07 GiB Duration : 51 min 10 s Overall bit rate mode : Variable Overall bit rate : 2 981 kb/s Writing application : Lavf57.71.100 Video ID : 1 Format : AVC Format/Info : Advanced Video Codec Format profile : High@L4.1 Format settings, CABAC : Yes Format settings, RefFrames : 10 frames Codec ID : avc1 Codec ID/Info : Advanced Video Coding Duration : 51 min 10 s Bit rate : 2 846 kb/s Width : 1 280 pixels Height : 640 pixels Display aspect ratio : 2.000 Frame rate mode : Variable Frame rate : 23.976 (23976/1000) FPS Minimum frame rate : 23.564 FPS Maximum frame rate : 24.390 FPS Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bits Scan type : Progressive Bits/(Pixel*Frame) : 0.145 Stream size : 1.02 GiB (95%) Writing library : x264 core 142 r2479 dd79a61 Encoding settings : cabac=1 / ref=10 / deblock=1:-3:-3 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=48 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=6,6 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=0 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=7 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=250 / rc=crf / mbtree=1 / crf=15.5 / qcomp=0.70 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=38000 / vbv_bufsize=30000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.10 / aq=1:0.70 Audio ID : 2 Format : AAC Format/Info : Advanced Audio Codec Format profile : LC Codec ID : 40 Duration : 51 min 10 s Duration_LastFrame : -11 ms Bit rate mode : Constant Bit rate : 129 kb/s Channel(s) : 2 channels Channel(s)_Original : 6 channels Channel positions : Front: L C R, Side: L R, LFE Sampling rate : 48.0 kHz Frame rate : 46.875 FPS (1024 SPF) Compression mode : Lossy Stream size : 47.0 MiB (4%) Language : German Default : Yes Alternate group : 1 Text ID : 3 Format : Timed Text Muxing mode : sbtl Codec ID : tx3g Duration : 48 min 21 s Bit rate mode : Variable Bit rate : 46 b/s Stream size : 16.2 KiB (0%) Language : German Default : Yes Forced : No Alternate group : 3
Irgendwas ist falsch an meinem Befehl, aber was?