[MEncoder-users] Mencoder hanging while trying to encode some files
Alex Bennee
kernel-hacker at bennee.com
Fri Nov 20 00:38:05 CET 2009
Hi,
I'm having a problem with mencoder hanging while trying to encode some
VOB files. The versions I'm using are:
media-libs/x264-0.0.20091021
media-video/mplayer-1.0_rc4_p20091026-r1
The encode line I'm using is:
-x264encopts subq=6:bframes=3:partitions=p8x8,b8x8,i4x4:weight_b:threads=auto:nopsnr:nossim:frameref=3:mixed_refs:level_idc=41:direct_pred=auto:trellis=1
To create PS3 compatible mp4s.
Running on Gentoo (but no overly tweaked optimisation flags ;-). Other
files work fine. It seems to be near the end of the encode it hangs:
Pos: 1.5s 45f ( 0%) 11.67fps Trem: 0min 0mb A-V:0.080 [8:147]]
Skipping frame!
Pos:2494.6s 62372f (100%) 21.91fps Trem: 0min 634mb A-V:0.080 [2000:128]
Skipping frame!
x264 [error]: Incomplete MB-tree stats file.0min 634mb A-V:0.048 [2000:128]
x264_encoder_encode failed
x264 [error]: Incomplete MB-tree stats file.0min 634mb A-V:0.052 [2000:128]
x264_encoder_encode failed
x264 [error]: Incomplete MB-tree stats file.0min 634mb A-V:0.016 [2000:128]
x264_encoder_encode failed
1 duplicate frame(s)!
Pos:2494.6s 62377f (100%) 21.91fps Trem: 0min 634mb A-V:0.020 [2000:128]
Flushing video frames.
Attaching via GDB I can see all the threads are waiting for something:
(gdb) bt
#0 0x00007fead4c94765 in pthread_join () from /lib/libpthread.so.0
#1 0x00007fead0e84ca0 in x264_encoder_frame_end (h=0x1af5060,
thread_current=0x1cdcb90, pp_nal=0x7fff626a8f00,
pi_nal=0x7fff626a8f0c, pic_out=0x7fff626a8eb0) at
encoder/encoder.c:1965
#2 0x0000000000455356 in encode_frame (vf=<value optimized out>,
pic_in=0xfffffffffffffe00) at libmpcodecs/ve_x264.c:254
#3 0x00000000004554d2 in control (vf=0x1a0c910, request=<value
optimized out>, data=<value optimized out>) at
libmpcodecs/ve_x264.c:202
#4 0x0000000000445252 in main (argc=<value optimized out>,
argv=<value optimized out>) at mencoder.c:1503
(gdb) frame 0
#0 0x00007fead4c94765 in pthread_join () from /lib/libpthread.so.0
Current language: auto
The current source language is "auto; currently asm".
(gdb)
(gdb) info threads
4 Thread 0x7feacba93950 (LWP 6524) 0x00007fead4c97dc9 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
3 Thread 0x7feacca95950 (LWP 6525) 0x00007fead4c97dc9 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
2 Thread 0x7feacc294950 (LWP 6526) 0x00007fead4c97dc9 in
pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0
* 1 Thread 0x7fead6041750 (LWP 8646) 0x00007fead4c94765 in
pthread_join () from /lib/libpthread.so.0
Any ideas for things I can try?
--
Alex, homepage: http://www.bennee.com/~alex/
http://www.half-llama.co.uk
More information about the MEncoder-users
mailing list