HandBrakeCLI spins on Fedora

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
hot-wasabi
Posts: 2
Joined: Tue Feb 05, 2008 7:54 pm

HandBrakeCLI spins on Fedora

Post by hot-wasabi »

Just updated to HandBrakeCLI 0.9.2 and it refuses to finish ripping a movie.

From outside it looks like it's hung:

Modified x264 options for pass 1 to append turbo options: ref=2:bframes=2:subme=5:me=umh:direct=auto:no-fast-pskip=1:deblock=-1:-1:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
x264 [warning]: width or height not divisible by 16 (718x368), compression will suffer.
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 Cache64
Encoding: task 1 of 2, 100.00 %x264 [info]: slice I:1262 Avg QP:17.02 size: 54403 PSNR Mean Y:46.38 U:47.16 V:47.73 Avg:46.65 Global:45.84
x264 [info]: slice P:53210 Avg QP:18.93 size: 18367 PSNR Mean Y:44.11 U:45.26 V:45.66 Avg:44.47 Global:43.24
x264 [info]: slice B:81182 Avg QP:20.70 size: 6340 PSNR Mean Y:43.68 U:45.29 V:45.66 Avg:44.13 Global:43.01
x264 [info]: mb I I16..4: 20.4% 0.0% 79.6%
x264 [info]: mb P I16..4: 10.8% 0.0% 0.0% P16..4: 73.2% 0.0% 0.0% 0.0% 0.0% skip:16.0%
x264 [info]: mb B I16..4: 1.2% 0.0% 0.0% B16..8: 24.6% 0.0% 0.0% direct:29.7% skip:44.5%
x264 [info]: final ratefactor: 19.33
x264 [info]: direct mvs spatial:92.2% temporal:7.8%
x264 [info]: SSIM Mean Y:0.9821580
x264 [info]: PSNR Mean Y:43.871 U:45.293 V:45.678 Avg:44.288 Global:43.118 kb/s:2206.67
x264 [warning]: width or height not divisible by 16 (718x368), compression will suffer.
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 Cache64
Encoding: task 1 of 2, 100.00 %No accelerated IMDCT transform found
Encoding: task 2 of 2, 1.33 % (31.47 fps, avg 31.71 fps, ETA 01h10m18s)

But a quick strace shows it's got multiple threads that are spinning in tight loops:

12491 <... nanosleep resumed> NULL) = 0
12491 nanosleep({0, 10000000}, <unfinished ...>
12490 <... nanosleep resumed> NULL) = 0
12490 nanosleep({0, 10000000}, <unfinished ...>
12485 <... nanosleep resumed> NULL) = 0
12485 nanosleep({0, 10000000}, <unfinished ...>

The command-line I used is:


/usr/local/bin/HandBrakeCLI -i /VIDEO_TS -o /file.avi -e x264 -E ac3 -b 2200 -2 -B 448 -R 48 -C 2 -D 1.5 -p -T -x ref=2:bframes=2:subme=5:me=umh:direct=auto:no-fast-pskip=1:deblock=-1:-1

I've used this command successfully in the past. Does same thing running against a DVD.

This is running on Fedora 8 kernel 2.6.24.3-12
on Pentium D 820

Any suggestions? If you need more debug info I can get it.
saintdev
Enlightened
Posts: 146
Joined: Wed Dec 20, 2006 4:17 am

Re: HandBrakeCLI spins on Fedora

Post by saintdev »

hot-wasabi
Posts: 2
Joined: Tue Feb 05, 2008 7:54 pm

Re: HandBrakeCLI spins on Fedora

Post by hot-wasabi »

Thanks, that definitely looks like the defect.
I also found the same encode attempt spins on the Mac GUI app.
Post Reply