felx / ffmbc

Automatically exported from code.google.com/p/ffmbc
0 stars 0 forks source link

ffmbc 0.7 rc9, ffmbc seg fault and ffplay cannot play h.264 file #173

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Compiled FFmbc 0.7 rc9 with this option:
./configure --enable-gpl --enable-libx264

-------------------
2. ffmbc seg fault playing a h.264 mov file
3. ffplay cannot play h.264 mov file

The mov is generated from GH3 camera, no modification.

What is the expected output? What do you see instead?
The mov can be recongized by ffmbc/ffplay.

What version of the product are you using? On what operating system?
ffmbc-0.7 rc9, Fedora 20 x64

Please provide any additional information below:

- Full commandline run (with -v 3) and everything the program printed
without
the repeating parts.

 ./ffmbc_g -v 3 -i /mnt-data/vg30/tmp/P1170397.MOV -vcodec libx264 -an test.mov
FFmbc version 0.7-rc9
Copyright (c) 2008-2014 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt-data/vg30/tmp/P1170397.MOV':
  Metadata:
    major_brand: qt
    minor_version: 537986816
    compatible_brands: qt  pana
    timecode: 02:48:50:00
  Duration: 00:00:01.50, bitrate: 30135 kb/s
    Stream #0.0(und): Video: h264 (High), yuvj420p, 1920x1080p [PAR 1:1 DAR 16:9], 25465 kb/s, 23.98 fps
    Stream #0.1(und): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
    Stream #0.2(und): Data: unknown (tmcd)
File 'test.mov' already exists. Overwrite ? [y/N] y
Incompatible pixel format 'yuvj420p' for codec 'libx264', auto-selecting format 
'yuv422p10le'
[libx264 @ 0x21b85c0] using SAR=1/1
[libx264 @ 0x21b85c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x21b85c0] profile High 4:2:2, level 4.0, 4:2:2 10-bit
[libx264 @ 0x21b85c0] 264 - core 142 r2409 d6b4e63 - H.264/MPEG-4 AVC codec - 
Copyleft 2003-2014 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 
deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 
mixed_ref=1 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 
fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 
sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 
constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 
open_gop=0 weightp=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 
rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=81 qpstep=4 
ip_ratio=1.40 aq=1:1.00
Output #0, mov, to 'test.mov':
  Metadata:
    encoder: FFmbc 0.7
    Stream #0.0(und): Video: libx264, yuv422p10le, 1920x1080p [PAR 1:1 DAR 16:9], vbr, crf 23.00, 23.98 fps
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop, [?] for help
Segmentation fault

=====================

$ ./ffplay_g /mnt-data/vg30/tmp/P1170397.MOV
ffplay version 0.7-rc9
Copyright (c) 2003-2014 Baptiste Coudurier and the FFmpeg developers
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/mnt-data/vg30/tmp/P1170397.MOV':
  Metadata:
    major_brand: qt  
    minor_version: 537986816
    compatible_brands: qt  pana
    timecode: 02:48:50:00
  Duration: 00:00:01.50, bitrate: 30135 kb/s
    Stream #0.0(und): Video: h264 (High), yuvj420p, 1920x1080p [PAR 1:1 DAR 16:9], 25465 kb/s, 23.98 fps
    Stream #0.1(und): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
    Stream #0.2(und): Data: unknown (tmcd)
[h264 @ 0x7f2ae4001020] get_buffer() failed (-1 0 0 (nil))
[h264 @ 0x7f2ae4001020] decode_slice_header error
[h264 @ 0x7f2ae4001020] no frame!
[h264 @ 0x7f2ae4001020] get_buffer() failed (-1 0 0 (nil))
[h264 @ 0x7f2ae4001020] decode_slice_header error
[h264 @ 0x7f2ae4001020] no frame!
[h264 @ 0x7f2ae4001020] get_buffer() failed (-1 0 0 (nil))
[h264 @ 0x7f2ae4001020] decode_slice_header error
[h264 @ 0x7f2ae4001020] no frame!
[h264 @ 0x7f2ae4001020] get_buffer() failed (-1 0 0 (nil))
[h264 @ 0x7f2ae4001020] decode_slice_header error
[h264 @ 0x7f2ae4001020] no frame!
[h264 @ 0x7f2ae4001020] get_buffer() failed (-1 0 0 (nil))
[h264 @ 0x7f2ae4001020] decode_slice_header error
[h264 @ 0x7f2ae4001020] no frame!

The mov file can be download in here:
https://drive.google.com/file/d/0B1SgNlcZrQJ1VDJPUUY3YnBlZjQ/edit?usp=sharing

Original issue reported on code.google.com by mpatd...@gmail.com on 9 Apr 2014 at 4:50

GoogleCodeExporter commented 8 years ago
For the bug I have reported in Apr 9, it is using Linux.

I tried FreeBSD, it also segfault.
I have tried to get more debugging info:

$ gdb ffmbc_g ./ffmbc.core
GNU gdb 6.1.1 [FreeBSD]
Copyright 2004 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 "amd64-marcel-freebsd"...

warning: core file may not match specified executable file.
Core was generated by `ffmbc'.
Program terminated with signal 11, Segmentation fault.
Reading symbols from /usr/local/lib/libasound.so.2...done.
Loaded symbols for /usr/local/lib/libasound.so.2
Reading symbols from /lib/libm.so.5...done.
Loaded symbols for /lib/libm.so.5
Reading symbols from /usr/lib/libbz2.so.4...done.
Loaded symbols for /usr/lib/libbz2.so.4
Reading symbols from /lib/libz.so.6...done.
Loaded symbols for /lib/libz.so.6
Reading symbols from /lib/libthr.so.3...done.
Loaded symbols for /lib/libthr.so.3
Reading symbols from /lib/libc.so.7...done.
Loaded symbols for /lib/libc.so.7
Reading symbols from /libexec/ld-elf.so.1...done.
Loaded symbols for /libexec/ld-elf.so.1
#0  0x000000000096fb78 in av_image_copy (dst_data=0x8, dst_linesizes=0x48,
    src_data=0x8024472a8, src_linesizes=0x8024472e8, pix_fmt=PIX_FMT_YUVJ420P,
    width=1920, height=1080) at libavutil/imgutils.c:72
72          if ((unsigned)pix_fmt >= PIX_FMT_NB || desc->flags & 
PIX_FMT_HWACCEL)
[New Thread 802406400 (LWP 100402/ffmbc)]
(gdb) where
#0  0x000000000096fb78 in av_image_copy (dst_data=0x8, dst_linesizes=0x48,
    src_data=0x8024472a8, src_linesizes=0x8024472e8, pix_fmt=PIX_FMT_YUVJ420P,
    width=1920, height=1080) at libavutil/imgutils.c:72
#1  0x000000000045fe59 in av_vsrc_buffer_add_video_buffer_ref (
    buffer_filter=0x80243d1a0, picref=0x8024472a0, flags=<value optimized out>)
    at libavfilter/vsrc_buffer.c:69
#2  0x000000000046009c in av_vsrc_buffer_add_frame (buffer_src=0x80243d1a0,
    frame=<value optimized out>, flags=0) at libavfilter/vsrc_buffer.c:69
#3  0x00000000004065db in output_packet (ist=<value optimized out>,
    ist_index=<value optimized out>, ost_table=0x80243f520, nb_ostreams=1,
    pkt=0x7fffffffd850) at ffmbc.c:3615
#4  0x000000000043ebb6 in transcode (nb_output_files=1, input_files=0x80243f500,
    nb_input_files=1, stream_maps=0x0, nb_stream_maps=<value optimized out>,
    output_files=Unhandled dwarf expression opcode 0x9f
) at ffmbc.c:3887
#5  0x00007fff00000000 in ?? ()
#6  0x00000000000f4240 in ?? ()
#7  0xfffffffb00000001 in ?? ()
#8  0x0000000000000001 in ?? ()
#9  0x0000000800000004 in ?? ()
#10 0x0000000501b40dbc in ?? ()
#11 0x00000008024160c0 in ?? ()
#12 0x00007fffffffd7e0 in ?? ()
#13 0x0000000802463180 in ?? ()
#14 0x0000000000000001 in ?? ()
#15 0x000000080243f500 in ?? ()
#16 0x0000000000000000 in ?? ()

Original comment by mpatd...@gmail.com on 14 Apr 2014 at 12:21

GoogleCodeExporter commented 8 years ago
Should be fixed, re-download the tar.bz2

Original comment by baptiste...@gmail.com on 14 Apr 2014 at 8:36