[Ffmpeg-devel] FFmpeg segfaults when encoding h264

Peter Andersson pandersson61
Fri Jan 19 11:44:42 CET 2007


I'm using ffmpeg rev 7585
When i try to convert a 720p h264 hdtv recording to mpeg2 ffmpeg segfaults. 
The file also includes two audiostreams one ac3 and a mpg2.
Heres the backtrace:

#0  0x083782bf in ?? ()
#1  0x088101e8 in ?? ()
#2  0x00000520 in ?? ()
#3  0xb5b5d820 in ?? ()
#4  0xbf989870 in ?? ()
#5  0xbf989898 in ?? ()
#6  0x0a938f12 in ?? ()
#7  0x00000008 in ?? ()
#8  0x00000003 in ?? ()
#9  0x7f7f7f80 in ?? ()
#10 0x817f807f in ?? ()
#11 0x80808080 in ?? ()
#12 0x80808080 in ?? ()
#13 0x80808080 in ?? ()
#14 0x80808080 in ?? ()
#15 0x80808080 in ?? ()
#16 0x80808080 in ?? ()
#17 0x00000007 in ?? ()
#18 0x00000002 in ?? ()
#19 0x01010101 in ?? ()
#20 0xbf989990 in ?? ()
#21 0x00000007 in ?? ()
#22 0x00000002 in ?? ()
#23 0x00000003 in ?? ()
#24 0x0837516e in ?? ()
#25 0x0a938c80 in ?? ()
#26 0x00000290 in ?? ()
#27 0x00000008 in ?? ()
#28 0x00000003 in ?? ()
#29 0xbf9899c4 in ?? ()
#30 0x08810542 in ?? ()
#31 0x08810514 in ?? ()
#32 0x00000003 in ?? ()
#33 0x00000160 in ?? ()
#34 0x00000000 in ?? ()

I'm using gcc version 4.1.1
CPU Intel 3 ghz prescott
Kernel 2.19.1
These are the compile flags for ffmpeg:

--enable-pthreads --disable-ffplay --enable-a52 --enable-dts 
--enable-mp3lame --enable-x264 --enable-gpl --enable-xvid --enable-libogg 
--enable-vorbis

I have used no custom cflags when compiling ffmpeg.

These are the flags passed to ffmpeg when encoding:

ffmpeg -v 9 -i /mythtv/tv/3064_20070115000400.mpg -r pal -target dvd -b 
9000k -s 720x576 -acodec copy -copyts -aspect 16:9 /mythtv/encoded.mpg

These are the messages written in the console window:

frame= 1424 q=2.0 size=    6434kB time=56.3 bitrate= 936.0kbits/s dup=216 
drop=1*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
*** drop!
frame= 1438 q=2.0 size=    6508kB time=56.9 bitrate= 937.5kbits/s dup=216 
drop=1

And then just before the segfault i get something like this:

[h264 @ 0x8597298]concealing 0 DC, 0 AC, 0 MV errors
frame= 1443 q=2.0 size=    6566kB time=57.3 bitrate= 938.8kbits/s dup=216 
drop=1frame= 1443 q=2.0 size=    6624kB time=57.7 bitrate= 940.8kbits/s 
dup=216 drop=1[h264 @ 0x8597298]get_buffer() failed (stride changed)
[h264 @ 0x8597298]decode_slice_header error

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1211660608 (LWP 6000)]
0x083782bf in ?? ()

This is ffmpegs interpretation of the file:
Input #0, mpegts, from '/mythtv/tv/3064_20070115000400.mpg':
  Duration: 00:27:28.8, start: 7791.479522, bitrate: 16755 kb/s
  Stream #0.0[0x1004]: Video: h264, yuv420p, 1280x720, 50.00 fps(r)
  Stream #0.1[0x1104](swe): Audio: mp2, 48000 Hz, stereo, 256 kb/s
  Stream #0.2[0x704](swe): Audio: ac3, 48000 Hz, 5 channels, 640 kb/s

If you need any more information please let me know.

/Peter

_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE! 
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/





More information about the ffmpeg-devel mailing list