[Ffmpeg-devel] Crash when encoding to H.264

Tyler Loch TylerL82
Mon Aug 14 22:39:39 CEST 2006


With recent SVN revisions of ffmpeg on Mac OS X, encoding to x264 crashes with
"Illegal instruction"
Current ffmpeg SVN, x264 r537 (the one mentioned in the last libavcodec/x264.c
revision). The problem arises with any SVN revision of x264, and is also present
when replacing libavcodec/x264.c with its previous revision.
This most current test is on PPC (Mac OS X 10.4.7), but I had a similar
problem on x86 just last week.

Sample run:
FFmpeg version SVN-r5998, Copyright (c) 2000-2004 Fabrice Bellard
  configuration:  --enable-x264 --enable-gpl 
  libavutil version: 49.0.0
  libavcodec version: 51.11.0
  libavformat version: 50.5.0
  built on Aug 14 2006 15:26:14, gcc: 4.0.1 (Apple Computer, Inc. build 5341)
Input #0, mpeg, from '/Users/tylerl/Desktop/palpyintro.mpg':
  Duration: 00:00:04.7, start: 0.696978, bitrate: 999 kb/s
Stream#0.0[0x1e0]:Video: mpeg1video, yuv420p, 448x160, 104857 kb/s, 23.98 fps(r)
Stream#0.1[0x1c0]:Audio: mp2, 48000 Hz, stereo, 64 kb/s
File 'zrr.mp4' already exists. Overwrite ? [y/N] y
Output #0, mp4, to 'zrr.mp4':
  Stream #0.0: Video: h264, yuv420p, 448x160, q=2-31, 200 kb/s, 23.98 fps(c)
  Stream #0.1: Audio: 0x0000, 48000 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Illegal instruction

--
Debug info, for what it's worth:
PID:    2182
Thread: 0

Exception:  EXC_BAD_INSTRUCTION (0x0002)
Code[0]:    0x00000002
Code[1]:    0x00235404


Thread 0 Crashed:
0   ffmpeg 	0x00235404 av_evaluate_lls + 6148
1   ffmpeg 	0x00235d68 x264_encoder_open + 104
2   ffmpeg 	0x00235d68 x264_encoder_open + 104
3   ffmpeg 	0x001c8d10 X264_init + 1184
4   ffmpeg 	0x00067c6c avcodec_open + 492
5   ffmpeg 	0x0000b9ac main + 3612
6   ffmpeg 	0x000024a4 start + 404
7   ffmpeg 	0x0000234c start + 60

Thread 0 crashed with PPC Thread State 64:
  srr0: 0x0000000000235404 srr1: 0x000000000208f030                        
  vrsave: 0x0000000000000000
    cr: 0x24442244          xer: 0x0000000020000006   lr: 0x0000000000235d68  
    ctr: 0x0000000000000000
    r0: 0x0000000000235d68   r1: 0x00000000bffff3e0   r2: 0x0000000000000000   
    r3: 0x0000000000593000
    r4: 0x000000000280600c   r5: 0x000000000000020c   r6: 0x00000000000001c0   
    r7: 0x00000000000000a0
    r8: 0x0000000000000030   r9: 0x0000000000000000  r10: 0x0000000000000060  
    r11: 0x0000000000000080
   r12: 0x000000000059320c  r13: 0x0000000001101878  r14: 0x0000000000360000  
   r15: 0x0000000000360000
   r16: 0x0000000000000001  r17: 0x0000000001100140  r18: 0x0000000001100120  
   r19: 0x0000000001101870
   r20: 0x0000000000000001  r21: 0x0000000000000002  r22: 0x0000000000000002  
   r23: 0x0000000001101830
   r24: 0x0000000002804200  r25: 0x00000000002cb508  r26: 0x0000000002805e00  
   r27: 0x0000000002805e00
   r28: 0x000000000035ccb4  r29: 0x0000000000593000  r30: 0x0000000002801c00  
   r31: 0x0000000000593000


-Tyler Loch





More information about the ffmpeg-devel mailing list