Есть файл mkv, конвертируемый в dvd (tovid -audiotrack 1 2 3 4 -normalize -quality 10 -in video.mkv -out video). На стадии соединения аудиодорожек процесс обламывается и выдается файл ~50 Мб. Вероятно, какая-то ошибка в mplex:
pete@pete-desktop:/media/SEAGATE/tmp/Doom.0$ clear;mplex -V -f 8 -o Doom_f.%d.mpg video.m2v audio0.ac3 audio1.ac3 audio2.ac3 audio3.ac3
INFO: [mplex] mplex version 1.8.0 (2.2.4 $Date: 2005/08/28 17:50:54 $)
INFO: [mplex] File video.m2v looks like an MPEG Video stream.
INFO: [mplex] File audio0.ac3 looks like an AC3 Audio stream.
INFO: [mplex] File audio1.ac3 looks like an AC3 Audio stream.
INFO: [mplex] File audio2.ac3 looks like an AC3 Audio stream.
INFO: [mplex] File audio3.ac3 looks like an AC3 Audio stream.
INFO: [mplex] Video stream 0: profile 8 selected - ignoring non-standard options!
INFO: [mplex] Found 4 audio streams and 1 video streams
INFO: [mplex] Selecting dvdauthor DVD output profile
INFO: [mplex] Multiplexing video program stream!
INFO: [mplex] Scanning for header info: Video stream e0 (video.m2v)
INFO: [mplex] VIDEO STREAM: e0
INFO: [mplex] Frame width : 720
INFO: [mplex] Frame height : 576
INFO: [mplex] Aspect ratio : 4:3 display
INFO: [mplex] Picture rate : 25.000 frames/sec
INFO: [mplex] Bit rate : 9000000 bits/sec
INFO: [mplex] Vbv buffer size : 229376 bytes
INFO: [mplex] CSPF : 0
INFO: [mplex] Scanning for header info: AC3 Audio stream 00 (audio0.ac3)
INFO: [mplex] AC3 frame size = 1536
INFO: [mplex] AC3 AUDIO STREAM:
INFO: [mplex] Bit rate : 49152 bytes/sec (384 kbit/sec)
INFO: [mplex] Frequency : 48000 Hz
INFO: [mplex] Scanning for header info: AC3 Audio stream 01 (audio1.ac3)
INFO: [mplex] AC3 frame size = 1536
INFO: [mplex] AC3 AUDIO STREAM:
INFO: [mplex] Bit rate : 49152 bytes/sec (384 kbit/sec)
INFO: [mplex] Frequency : 48000 Hz
INFO: [mplex] Scanning for header info: AC3 Audio stream 02 (audio2.ac3)
INFO: [mplex] AC3 frame size = 1536
INFO: [mplex] AC3 AUDIO STREAM:
INFO: [mplex] Bit rate : 49152 bytes/sec (384 kbit/sec)
INFO: [mplex] Frequency : 48000 Hz
INFO: [mplex] Scanning for header info: AC3 Audio stream 03 (audio3.ac3)
INFO: [mplex] AC3 frame size = 1536
INFO: [mplex] AC3 AUDIO STREAM:
INFO: [mplex] Bit rate : 49152 bytes/sec (384 kbit/sec)
INFO: [mplex] Frequency : 48000 Hz
INFO: [mplex] SYSTEMS/PROGRAM stream:
INFO: [mplex] rough-guess multiplexed stream data rate : 10790848
INFO: [mplex] target data-rate specified : 10080000
++ WARN: [mplex] Target data rate lower than computed requirement!
++ WARN: [mplex] N.b. a 20% or so discrepancy in variable bit-rate
++ WARN: [mplex] streams is common and harmless provided no time-outs will occur
INFO: [mplex] Run-in Sectors = 92 Video delay = 13458 Audio delay = 17058
INFO: [mplex] New sequence commences...
INFO: [mplex] Video e0: buf= 0 frame=000000 sector=00000000
INFO: [mplex] Audio bd: buf= 0 frame=000000 sector=00000000
INFO: [mplex] Audio bd: buf= 0 frame=000000 sector=00000000
INFO: [mplex] Audio bd: buf= 0 frame=000000 sector=00000000
INFO: [mplex] Audio bd: buf= 0 frame=000000 sector=00000000
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=5982354 required(DTS)=5982258
<skipped>
sent(SCR)=6246838 required(DTS)=6237858
++ WARN: [mplex] Video e0: buf= 2025 frame=001729 sector=00017757
++ WARN: [mplex] Audio bd: buf= 0 frame=002160 sector=00001646
++ WARN: [mplex] Audio bd: buf= 0 frame=002160 sector=00001646
++ WARN: [mplex] Audio bd: buf= 0 frame=002160 sector=00001646
++ WARN: [mplex] Audio bd: buf= 0 frame=002160 sector=00001646
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=6290870 required(DTS)=6277458
++ WARN: [mplex] Video e0: buf= 2025 frame=001740 sector=00018013
++ WARN: [mplex] Audio bd: buf= 0 frame=002174 sector=00001657
++ WARN: [mplex] Audio bd: buf= 0 frame=002174 sector=00001657
++ WARN: [mplex] Audio bd: buf= 0 frame=002174 sector=00001657
++ WARN: [mplex] Audio bd: buf= 0 frame=002174 sector=00001657
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=6334902 required(DTS)=6320658
++ WARN: [mplex] Video e0: buf= 2025 frame=001752 sector=00018269
++ WARN: [mplex] Audio bd: buf= 0 frame=002189 sector=00001668
++ WARN: [mplex] Audio bd: buf= 0 frame=002189 sector=00001668
++ WARN: [mplex] Audio bd: buf= 0 frame=002189 sector=00001668
++ WARN: [mplex] Audio bd: buf= 0 frame=002189 sector=00001668
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=6379081 required(DTS)=6363858
++ WARN: [mplex] Video e0: buf= 2015 frame=001764 sector=00018521
++ WARN: [mplex] Audio bd: buf= 0 frame=002204 sector=00001680
++ WARN: [mplex] Audio bd: buf= 0 frame=002204 sector=00001680
++ WARN: [mplex] Audio bd: buf= 0 frame=002204 sector=00001680
++ WARN: [mplex] Audio bd: buf= 0 frame=002204 sector=00001680
++ WARN: [mplex] Stream e0: data will arrive too late sent(SCR)=6423113 required(DTS)=6403458
++ WARN: [mplex] Video e0: buf= 2025 frame=001775 sector=00018781
++ WARN: [mplex] Audio bd: buf= 0 frame=002218 sector=00001690
++ WARN: [mplex] Audio bd: buf= 0 frame=002218 sector=00001690
++ WARN: [mplex] Audio bd: buf= 0 frame=002218 sector=00001690
++ WARN: [mplex] Audio bd: buf= 0 frame=002218 sector=00001690
**ERROR: [mplex] Too many frame drops -exiting
Если соединять только 2 дорожки в итоговом фильме, то все проходит нормально. Проверено на разных mkv. Если же соединять большее число дорожек, то получаем результат выше. Итак, как объединить несколько аудиодорожек?