segfault when appending x264/ac3
Original reporter: rolf… AT pvv.…
I have separate files with x264-video and ac3-audio, and I have two of each I am trying to combine (basically two parts of a movie, with video and audio encoded separately, I want the two parts concatenated).
I am not really sure on the append-syntax, but this command line was generated by mmg, and it looks reasonable.
$ ./mkvmerge -o "/home/media/scripts/born_4_july.mkv" -d 0 -A -S /home/media/scripts/video1.264 --language 0:eng -a 0 -D -S /home/media/scripts/audio1.ac3 -d 0 -A -S +/home/media/scripts/video2.264 -a 0 -D -S +/home/media/scripts/audio2.ac3 --track-order 1:0,0:0 --append-to 3:0:1:0,2:0:0:0 --global-tags /home/media/scripts/Fdt_4_juli.xml mkvmerge v2.5.1 ('He Wasn't There') built on Feb 27 2009 18:31:19 '/home/media/scripts/video1.264': Using the AVC/h.264 ES demultiplexer. '/home/media/scripts/audio1.ac3': Using the AC3 demultiplexer. '/home/media/scripts/video2.264': Using the AVC/h.264 ES demultiplexer. '/home/media/scripts/audio2.ac3': Using the AC3 demultiplexer. '/home/media/scripts/video1.264' track 0: Extracted the aspect ratio information from the MPEG-4 layer 10 (AVC) video data and set the display dimensions to 1001/560. '/home/media/scripts/video1.264' track 0: Using the MPEG-4 part 10 ES video output module. '/home/media/scripts/audio1.ac3' track 0: Using the AC3 output module. '/home/media/scripts/video2.264' track 0: Extracted the aspect ratio information from the MPEG-4 layer 10 (AVC) video data and set the display dimensions to 1001/560. '/home/media/scripts/video2.264' track 0: Using the MPEG-4 part 10 ES video output module. '/home/media/scripts/audio2.ac3' track 0: Using the AC3 output module. The file '/home/media/scripts/born_4_july.mkv' has been opened for writing. Appending track 0 from file no. 2 ('/home/media/scripts/video2.264') to track 0 from file no. 0 ('/home/media/scripts/video1.264'). Segmentation fault (core dumped)
(gdb) bt #0 0x081ba813 in mpeg4::p10::avc_es_parser_c::cleanup () #1 (closed) 0x081bb124 in mpeg4::p10::avc_es_parser_c::handle_slice_nalu () #2 (closed) 0x081bd0f2 in mpeg4::p10::avc_es_parser_c::handle_nalu () #3 (closed) 0x081bde56 in mpeg4::p10::avc_es_parser_c::add_bytes () #4 (closed) 0x08163553 in mpeg4_p10_es_video_packetizer_c::process () #5 (closed) 0x080c9e85 in avc_es_reader_c::read () #6 (closed) 0x080b9293 in generic_packetizer_c::read () #7 (closed) 0x080a0978 in main_loop () #8 (closed) 0x0807b525 in main ()
Backtrace made on 2.5.1 from git.