kraken@tao:~/y/ffmpeg$ ./ffmpeg_g -i sample.ts -y -vcodec libx264 -acodec libfaac -f mp4 -mbd rd -flags 4mv+trell+aic+qprd+mv0 -cmp 2 -subcmp 2 -flags2 dct8x8+skiprd -level 41 -b 80000 -bf 3 -ac 6 -ab 384 -threads 2 -pass 1 output.mp4 FFmpeg version SVN-r9606, Copyright (c) 2000-2007 Fabrice Bellard, et al. configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --incdir=/usr/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=/usr/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-pp --enable-libamr-nb --enable-libamr-wb --enable-x11grab --enable-libogg --enable-libgsm --enable-libx264 --enable-liba52 --enable-libtheora --enable-swscaler --extra-cflags=-fPIC -DPIC libavutil version: 49.4.1 libavcodec version: 51.40.4 libavformat version: 51.12.1 built on Jul 11 2007 17:48:30, gcc: 4.1.3 20070629 (prerelease) (Debian 4.1.2-13) Segmentation fault (core dumped) kraken@tao:~/y/ffmpeg$ gdb ./ffmpeg_g core.7600 GNU gdb 6.6-debian Copyright (C) 2006 Free Software Foundation, Inc. GDB is free software, covered by the GNU General Public License, and you are welcome to change it and/or distribute copies of it under certain conditions. Type "show copying" to see the conditions. There is absolutely no warranty for GDB. Type "show warranty" for details. This GDB was configured as "i486-linux-gnu"... Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1". warning: Can't read pathname for load map: Input/output error. Reading symbols from /home/kraken/y/ffmpeg/libavformat/libavformat.so.51...done. Loaded symbols for ./libavformat/libavformat.so.51 Reading symbols from /home/kraken/y/ffmpeg/libavcodec/libavcodec.so.51...done. Loaded symbols for ./libavcodec/libavcodec.so.51 Reading symbols from /home/kraken/y/ffmpeg/libavutil/libavutil.so.49...done. Loaded symbols for ./libavutil/libavutil.so.49 Reading symbols from /lib/i686/cmov/libm.so.6...done. Loaded symbols for /lib/i686/cmov/libm.so.6 Reading symbols from /home/kraken/y/ffmpeg/libswscale/libswscale.so.0...done. Loaded symbols for ./libswscale/libswscale.so.0 Reading symbols from /lib/i686/cmov/libpthread.so.0...done. Loaded symbols for /lib/i686/cmov/libpthread.so.0 Reading symbols from /lib/i686/cmov/libc.so.6...done. Loaded symbols for /lib/i686/cmov/libc.so.6 Reading symbols from /usr/lib/libz.so.1...done. Loaded symbols for /usr/lib/libz.so.1 Reading symbols from /usr/lib/libogg.so.0...done. Loaded symbols for /usr/lib/libogg.so.0 Reading symbols from /usr/lib/libX11.so.6...done. Loaded symbols for /usr/lib/libX11.so.6 Reading symbols from /usr/lib/libXext.so.6...done. Loaded symbols for /usr/lib/libXext.so.6 Reading symbols from /usr/lib/liba52-0.7.4.so...done. Loaded symbols for /usr/lib/liba52-0.7.4.so Reading symbols from /usr/lib/libamrnb.so.2...done. Loaded symbols for /usr/lib/libamrnb.so.2 Reading symbols from /usr/lib/libamrwb.so.2...done. Loaded symbols for /usr/lib/libamrwb.so.2 Reading symbols from /usr/lib/libgsm.so.1...done. Loaded symbols for /usr/lib/libgsm.so.1 Reading symbols from /usr/lib/libmp3lame.so.0...done. Loaded symbols for /usr/lib/libmp3lame.so.0 Reading symbols from /usr/lib/libtheora.so.0...done. Loaded symbols for /usr/lib/libtheora.so.0 Reading symbols from /usr/lib/libvorbis.so.0...done. Loaded symbols for /usr/lib/libvorbis.so.0 Reading symbols from /usr/lib/libvorbisenc.so.2...done. Loaded symbols for /usr/lib/libvorbisenc.so.2 Reading symbols from /usr/lib/libx264.so.55...done. Loaded symbols for /usr/lib/libx264.so.55 Reading symbols from /usr/lib/libxvidcore.so.4...done. Loaded symbols for /usr/lib/libxvidcore.so.4 Reading symbols from /usr/lib/libfaac.so.0...done. Loaded symbols for /usr/lib/libfaac.so.0 Reading symbols from /usr/lib/libfaad.so.0...done. Loaded symbols for /usr/lib/libfaad.so.0 Reading symbols from /lib/ld-linux.so.2...done. Loaded symbols for /lib/ld-linux.so.2 Reading symbols from /usr/lib/libXau.so.6...done. Loaded symbols for /usr/lib/libXau.so.6 Reading symbols from /usr/lib/libXdmcp.so.6...done. Loaded symbols for /usr/lib/libXdmcp.so.6 Reading symbols from /lib/i686/cmov/libdl.so.2...done. Loaded symbols for /lib/i686/cmov/libdl.so.2 Core was generated by `./ffmpeg_g -i sample.ts -y -vcodec libx264 -acodec libfaac -f mp4 -mbd rd -flag'. Program terminated with signal 11, Segmentation fault. #0 0xb7ec2280 in pmt_cb (filter=0x8074c10, section=0x8074c60 "\002�\035", section_len=32) at mpegts.c:543 543 st= pes->st; (gdb) bt #0 0xb7ec2280 in pmt_cb (filter=0x8074c10, section=0x8074c60 "\002�\035", section_len=32) at mpegts.c:543 #1 0xb7ec081d in write_section_data (s=, tss1=0x8074c10, buf=, buf_size=183, is_start=1) at mpegts.c:185 #2 0xb7ec0a9b in handle_packet (ts=0x806aaa0, packet=) at mpegts.c:975 #3 0xb7ec2877 in mpegts_read_header (s=0x8061aa0, ap=0xbf98447c) at mpegts.c:1054 #4 0xb7e85645 in av_open_input_stream (ic_ptr=0xbf9844b4, pb=0xbf9843b4, filename=0xbf985c69 "sample.ts", fmt=0xb7efed00, ap=0xbf98447c) at utils.c:380 #5 0xb7e88c3e in av_open_input_file (ic_ptr=0xbf9844b4, filename=0xbf985c69 "sample.ts", fmt=, buf_size=0, ap=0xbf98447c) at utils.c:482 #6 0x0804c4fa in opt_input_file (filename=0xbf985c69 "sample.ts") at ffmpeg.c:2523 #7 0x08055d3b in parse_options (argc=35, argv=0xbf984c44, options=0x8059020) at cmdutils.c:112 #8 0x080536b9 in main (argc=35, argv=0xbf984c44) at ffmpeg.c:3764 #0 0xb7ec2280 in pmt_cb (filter=0x8074c10, section=0x8074c60 "\002�\035", section_len=32) at mpegts.c:543 ts = (MpegTSContext *) 0x806aaa0 st = (AVStream *) 0xb7 p = p_end = (const uint8_t *) 0x8074c7c "\230���", '�' desc_list_end = (const uint8_t *) 0x8074c71 "\201�\024�\006\n\004eng" desc_end = (const uint8_t *) 0xb7
program_info_length = pcr_pid = 17 pid = 17 stream_type = 2 desc_list_len = desc_tag = comp_page = 0 anc_page = 0 language = "\000\000\000" #1 0xb7ec081d in write_section_data (s=, tss1=0x8074c10, buf=, buf_size=183, is_start=1) at mpegts.c:185 tss = (MpegTSSectionFilter *) 0x8074c1c len = #2 0xb7ec0a9b in handle_packet (ts=0x806aaa0, packet=) at mpegts.c:975 s = (AVFormatContext *) 0x8061aa0 tss = (MpegTSFilter *) 0x8074c10 len = pid = 16 cc = cc_ok = 1 afc = is_start = 64 p = p_end = (const uint8_t *) 0xb7
#3 0xb7ec2877 in mpegts_read_header (s=0x8061aa0, ap=0xbf98447c) at mpegts.c:1054 ts = (MpegTSContext *) 0x806aaa0 pb = (ByteIOContext *) 0x8061ab0 buf = "G@\000\020\000\000�\r\000\001�\000\000\000\001�\020X�A2", '�' , "G@\000\021\000\000�\r\000\001�\000\000\000\001�\020X�A2", '�' , "G@\000\022\000\000�\r\000\001�\000\000\000\001�\020X�A2", '�' , "G@\020\020\000\002�\035\000\001�\000\000�\021\000\000\002�\021�\000\201�\024�\006\n\004eng\000\230���", '�' , "G@\020\021\000\002�\035\000\001�\000\000�\021\000\000\002�\021�\000\201�\024�\006\n\004eng\000\230���", '�' , "G@\000\023\000\000�\r\000\001�\000\000"... len = pos = 0 #4 0xb7e85645 in av_open_input_stream (ic_ptr=0xbf9844b4, pb=0xbf9843b4, filename=0xbf985c69 "sample.ts", fmt=0xb7efed00, ap=0xbf98447c) at utils.c:380 err = ic = (AVFormatContext *) 0x8061aa0 default_ap = {time_base = {num = -1080540156, den = -1209549779}, sample_rate = 321, channels = -1209565184, width = 543004, height = 0, pix_fmt = -1209553984, channel = -1209022592, device = 0xb7efed00 "\003t��\230s��,\200", standard = 0xbf984404 "", mpeg2ts_raw = 0, mpeg2ts_compute_pcr = 0, initial_pause = -1, prealloced_context = 0, video_codec_id = 3086058176, audio_codec_id = 3214433385} #5 0xb7e88c3e in av_open_input_file (ic_ptr=0xbf9844b4, filename=0xbf985c69 "sample.ts", fmt=, buf_size=0, ap=0xbf98447c) at utils.c:482 score = err = -1080540156 file_opened = 1 probe_size = 4096 probe_data = {filename = 0xbf985c69 "sample.ts", buf = 0x0, buf_size = 2048} pb1 = {buffer = 0x8062a70 "G@", buffer_size = 32768, buf_ptr = 0x8062a70 "G@", buf_end = 0x806aa70 "", opaque = 0x8062a30, read_packet = 0xb7e8d5e0 , write_packet = 0xb7e8d5b0 , seek = 0xb7e8d570 , pos = 32768, must_flush = 0, eof_reached = 0, write_flag = 0, is_streamed = 0, max_packet_size = 0, checksum = 3085411136, checksum_ptr = 0x80598e0 "�\227\005\b`\026���\202��j�\004\bz�\004\b\212�\004\b\232�\004\b��\004\b��\004\bʡ\004\bڡ\004\b��\004\b��\004\b\n�\004\b\032�\004\b*�\004\b:�\004\bJ�\004\bZ�\004\bj�\004\bz�\004\b\212�\004\b\232�\004\b��\004\b��\004\bʢ\004\bڢ\004\b��\004\b��\004\b\n�\004\b\032�\004\b*�\004\b:�\004\bJ�\004\bZ�\004\bP_|�z�\004\b\212�\004\b�\211跪�\004\b��\004\bʣ\004\bڣ\004\b��\004\b��\004\b\n�\004\b\032�\004\b*�\004\b:�\004\bJ�\004\b"..., update_checksum = 0, error = 0} pb = (ByteIOContext *) 0xbf9843b4 #6 0x0804c4fa in opt_input_file (filename=0xbf985c69 "sample.ts") at ffmpeg.c:2523 opt = (const AVOption *) 0x8059020 d = 0 ic = (AVFormatContext *) 0x8061aa0 params = {time_base = {num = 1, den = 25}, sample_rate = 44100, channels = 1, width = 0, height = 0, pix_fmt = PIX_FMT_NONE, channel = 0, device = 0x0, standard = 0x0, mpeg2ts_raw = 0, mpeg2ts_compute_pcr = 0, initial_pause = 0, prealloced_context = -1, video_codec_id = CODEC_ID_NONE, audio_codec_id = CODEC_ID_NONE} err = i = 0 ret = rfps = rfps_base = timestamp = #7 0x08055d3b in parse_options (argc=35, argv=0xbf984c44, options=0x8059020) at cmdutils.c:112 opt = 0xbf985c66 "-i" arg = 0x11
optindex = 3 handleoptions = 1 po = (const OptionDef *) 0x8059084 #8 0x080536b9 in main (argc=35, argv=0xbf984c44) at ffmpeg.c:3764 i =