Incomplete encoding

HandBrake for Mac support
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
black
Posts: 4
Joined: Thu Apr 09, 2009 3:29 pm

Incomplete encoding

Post by black » Fri Apr 10, 2009 2:01 pm

For the life of me I can't seem to get a complete encoding. I'm trying to re-encode an avi (from EyeTV + plextor box). Handbrake whirs away happily, reports a successful encoding, but the resulting file is a) only a fraction of the original movie and b) slightly corrupted (dropped sequences - digital snow). In this particular run, I had a 2 and a half hour movie that Handbrake converted to a 7 and a half minute clip. I've tried a variety of different films with various results (usually closer to half and hour). I've been using ffmpeg, Turbo.264, MPEG Streamclip, and iSquint/VisualHub all successfully on these same files, so this is a little mysterious (and before you ask - yes, these other techniques work fine, I just wanted to see how Handbrake stacked up against them in terms of quality/speed)

I'm on a first gen. MBP running 10.5.6, and I'm using Handbrake 0.9.3. When I first had the problem, I cleansed the system of all relics of old versions and completely reinstalled Handbrake with exactly the same result. I haven't seen any reports of similar things on the forums, so I don't know what to make of this.

Here is the log from my last run:

Code: Select all

HandBrake Activity Log for /Volumes/Bilskirnir III/Apocalypse Now.mkv: 2009-04-10 00:08:08 -0400
Handbrake Version: 0.9.3 (2008112300)

[00:08:08] macgui: Rip: No pending jobs, so sending this one to doAddToQueue
[00:08:08] macgui: Rip: Going right to performNewQueueScan
[00:08:08] macgui: scanning specifically for title: 1
[00:08:08] macgui: performNewQueueScan currentQueueEncodeIndex is: 1
[00:08:08] hb_scan: path=/Volumes/Bilskirnir III/to process movies/Apocalypse Now.avi, title_index=1
[00:08:08] scan: trying to open with libdvdread
[00:08:08] dvd: not a dvd - trying as a stream/file instead
Input #0, avi, from '/Volumes/Bilskirnir III/to process movies/Apocalypse Now.avi':
  Duration: 02:33:15.69, start: 0.000000, bitrate: 3417 kb/s
    Stream #0.0: Video: mpeg4, yuv420p, 720x480 [PAR 10:11 DAR 15:11], 29.97 tb(r)
    Stream #0.1: Audio: mp2, 48000 Hz, stereo, s16, 224 kb/s
[00:08:08] scan: decoding previews for title 1
[00:08:08] scan: 10 previews, 720x480, 29.970 fps, autocrop = 76/80/6/10, aspect 4:3, PAR 10:11
[00:08:08] scan: title (0) job->width:640, job->height:320
[00:08:08] libhb: scan thread found 1 valid title(s)
[00:08:09] macgui: ScanDone state received from fQueueEncodeLibhb
[00:08:09] macgui: processNewQueueEncode title list is: 1
[00:08:09] macgui: Preset: Film
[00:08:09] macgui: processNewQueueEncode number of passes expected is: 2
[00:08:09] macgui: prepareJob exiting
[00:08:09] 2 job(s) to process
[00:08:09] starting job
[00:08:09] job configuration:
[00:08:09]  * source
[00:08:09]    + /Volumes/Bilskirnir III/to process movies/Apocalypse Now.avi
[00:08:09]    + title 1, chapter(s) 1 to 1
[00:08:09]    + container: avi
[00:08:09]    + data rate: 3417 kbps
[00:08:09]  * destination
[00:08:09]    + /Volumes/Bilskirnir III/Apocalypse Now.mkv
[00:08:09]    + container: Matroska (.mkv)
[00:08:09]      + chapter markers
[00:08:09]  * video track
[00:08:09]    + decoder: mpeg4
[00:08:09]    + frame rate: same as source (around 29.970 fps)
[00:08:09]    + strict anamorphic
[00:08:09]      + storage dimensions: 720 * 480 -> 704 * 324, crop 76/80/6/10
[00:08:09]      + pixel aspect ratio: 10 / 11
[00:08:09]      + display dimensions: 640 * 324
[00:08:09]    + encoder: x264
[00:08:09]      + options: ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:b-pyramid=1:me=umh:subq=9:analyse=all:8x8dct=1:trellis=1:no-fast-pskip=1:psy-rd=1,1:ref=1:subme=1:me=dia:analyse=none:trellis=0:no-fast-pskip=0:8x8dct=0:weightb=0
[00:08:09]      + bitrate: 2000 kbps, pass: 1
[00:08:09]  * audio track 0
[00:08:09]    + decoder: Unknown (MP2) (track 1, id 1)
[00:08:09]    + mixdown: Stereo
[00:08:09]    + encoder: faac
[00:08:09]      + bitrate: 128 kbps, samplerate: 48000 Hz
[00:08:09] dvd: not a dvd - trying as a stream/file instead
[00:08:09] encx264: keyint-min: 30, keyint-max: 300
[00:08:09] encx264: encoding with stored aspect 10/11
x264 [warning]: width or height not divisible by 16 (704x324), compression will suffer.
x264 [info]: using SAR=10/11
x264 [info]: using cpu capabilities: MMX2 Cache64
x264 [info]: profile Main, level 3.0
[00:08:09] sync: expecting 275625 video frames
[00:08:09] reader: first SCR 0
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (22057272 left 7F3031, score= -2630)
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (32891709 left 780181, score= -3387)
[00:08:58] sync: adding 148 ms of silence to audio 0  start 10186945, next 10173600
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (28144629 left 79818B, score= -3991)
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (20627226 left 400C0C, score= -6072)
[00:09:39] sync: adding 110 ms of silence to audio 0  start 18255889, next 18245905
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (31892109 left 780181, score= -7770)
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (28060985 left 001818, score= -8148)
[00:10:09] sync: adding 133 ms of silence to audio 0  start 24493882, next 24481825
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (23301666 left 4C0C5D, score= -11335)
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (28156870 left 7CC0C5, score= -11423)
[00:10:57] sync: adding 139 ms of silence to audio 0  start 34333862, next 34321345
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (25929188 left 730317, score= -12163)
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (27208271 left 7E0060, score= -12513)
[00:11:13] sync: adding 128 ms of silence to audio 0  start 37608177, next 37596625
[mpeg4 @ 0x1173200]slice end not reached but screenspace end (29442068 left 730317, score= -13501)
[00:12:50] sync: got 13511 frames, 275625 expected
[00:12:50] reader: done. 1 scr changes
[00:12:51] work: average encoding speed for job is 47.980614 fps
[00:12:58] mpeg4-decoder done: 13512 frames, 0 decoder errors, 0 drops
[00:12:58] render: lost time: 0 (0 frames)
[00:12:58] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:74    Avg QP:13.86  size: 21365  PSNR Mean Y:50.25 U:51.26 V:52.09 Avg:50.65 Global:49.89
x264 [info]: slice P:7100  Avg QP:16.14  size: 11348  PSNR Mean Y:46.99 U:48.19 V:49.18 Avg:47.46 Global:47.01
x264 [info]: slice B:6337  Avg QP:19.13  size:  4747  PSNR Mean Y:44.59 U:46.51 V:47.81 Avg:45.27 Global:44.99
x264 [info]: consecutive B-frames: 31.4% 24.2%  5.5%  5.8% 16.8% 16.3%  0.0%
x264 [info]: mb I  I16..4: 19.9%  0.0% 80.1%
x264 [info]: mb P  I16..4: 37.9%  0.0%  0.0%  P16..4: 61.5%  0.0%  0.0%  0.0%  0.0%    skip: 0.6%
x264 [info]: mb B  I16..4:  8.0%  0.0%  0.0%  B16..8: 40.4%  0.0%  0.0%  direct:37.9%  skip:13.7%  L0:29.4% L1:52.2% BI:18.5%
x264 [info]: final ratefactor: 21.14
x264 [info]: direct mvs  spatial:100.0%  temporal:0.0%
x264 [info]: SSIM Mean Y:0.9845245
x264 [info]: PSNR Mean Y:45.883 U:47.416 V:48.550 Avg:46.448 Global:45.956 kb/s:1991.67
[00:12:59] mp2-decoder done: 0 frames, 0 decoder errors, 0 drops
[00:12:59] starting job
[00:12:59] job configuration:
[00:12:59]  * source
[00:12:59]    + /Volumes/Bilskirnir III/to process movies/Apocalypse Now.avi
[00:12:59]    + title 1, chapter(s) 1 to 1
[00:12:59]    + container: avi
[00:12:59]    + data rate: 3417 kbps
[00:12:59]  * destination
[00:12:59]    + /Volumes/Bilskirnir III/Apocalypse Now.mkv
[00:12:59]    + container: Matroska (.mkv)
[00:12:59]      + chapter markers
[00:12:59]  * video track
[00:12:59]    + decoder: mpeg4
[00:12:59]    + frame rate: same as source (around 29.970 fps)
[00:12:59]    + strict anamorphic
[00:12:59]      + storage dimensions: 720 * 480 -> 704 * 324, crop 76/80/6/10
[00:12:59]      + pixel aspect ratio: 10 / 11
[00:12:59]      + display dimensions: 640 * 324
[00:12:59]    + encoder: x264
[00:12:59]      + options: ref=3:mixed-refs=1:bframes=6:weightb=1:direct=auto:b-pyramid=1:me=umh:subq=9:analyse=all:8x8dct=1:trellis=1:no-fast-pskip=1:psy-rd=1,1
[00:12:59]      + bitrate: 2000 kbps, pass: 2
[00:12:59]  * audio track 0
[00:12:59]    + decoder: Unknown (MP2) (track 1, id 1)
[00:12:59]    + mixdown: Stereo
[00:12:59]    + encoder: faac
[00:12:59]      + bitrate: 128 kbps, samplerate: 48000 Hz
[00:12:59] encx264: keyint-min: 30, keyint-max: 300
[00:12:59] encx264: encoding with stored aspect 10/11
[00:12:59] dvd: not a dvd - trying as a stream/file instead
x264 [warning]: width or height not divisible by 16 (704x324), compression will suffer.
x264 [info]: using SAR=10/11
x264 [info]: using cpu capabilities: MMX2 Cache64
[00:13:01] reader: first SCR 0
x264 [info]: profile High, level 3.0
[00:13:01] sync: expecting 275625 video frames
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (22057272 left 7F3031, score= -2630)
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (32891709 left 780181, score= -3387)
[00:19:15] sync: adding 148 ms of silence to audio 0  start 10186945, next 10173600
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (28144629 left 79818B, score= -3991)
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (20627226 left 400C0C, score= -6072)
[00:24:15] sync: adding 110 ms of silence to audio 0  start 18255889, next 18245905
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (31892109 left 780181, score= -7770)
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (28060985 left 001818, score= -8148)
[00:27:25] sync: adding 133 ms of silence to audio 0  start 24493882, next 24481825
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (23301666 left 4C0C5D, score= -11335)
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (28156870 left 7CC0C5, score= -11423)
[00:33:07] sync: adding 139 ms of silence to audio 0  start 34333862, next 34321345
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (25929188 left 730317, score= -12163)
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (27208271 left 7E0060, score= -12513)
[00:35:19] sync: adding 128 ms of silence to audio 0  start 37608177, next 37596625
[mpeg4 @ 0x114fa00]slice end not reached but screenspace end (29442068 left 730317, score= -13501)
[00:37:31] reader: done. 1 scr changes
[00:37:31] sync: got 13511 frames, 275625 expected
[00:37:31] work: average encoding speed for job is 9.185264 fps
[00:37:33] mpeg4-decoder done: 13512 frames, 0 decoder errors, 0 drops
[00:37:33] render: lost time: 0 (0 frames)
[00:37:33] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: slice I:74    Avg QP:16.42  size: 16232  PSNR Mean Y:47.15 U:51.93 V:52.81 Avg:48.28 Global:47.56
x264 [info]: slice P:7104  Avg QP:18.57  size: 11532  PSNR Mean Y:46.34 U:48.82 V:49.77 Avg:47.10 Global:46.84
x264 [info]: slice B:6333  Avg QP:20.79  size:  4681  PSNR Mean Y:44.25 U:46.87 V:48.27 Avg:45.08 Global:44.94
x264 [info]: consecutive B-frames: 31.4% 24.2%  5.5%  5.8% 16.8% 16.3%  0.0%
x264 [info]: mb I  I16..4: 16.7% 61.7% 21.6%
x264 [info]: mb P  I16..4:  3.0% 11.6%  1.9%  P16..4: 50.5% 22.0% 10.3%  0.1%  0.1%    skip: 0.6%
x264 [info]: mb B  I16..4:  0.5%  1.4%  0.3%  B16..8: 38.0%  1.2%  2.0%  direct:12.5%  skip:44.1%  L0:38.5% L1:32.1% BI:29.4%
x264 [info]: 8x8 transform  intra:69.2%  inter:61.5%
x264 [info]: direct mvs  spatial:93.4%  temporal:6.6%
x264 [info]: ref P L0  54.2% 25.1% 20.8%
x264 [info]: ref B L0  77.1% 22.9%
x264 [info]: ref B L1  92.5%  7.5%
x264 [info]: SSIM Mean Y:0.9827415
x264 [info]: PSNR Mean Y:45.366 U:47.921 V:49.083 Avg:46.161 Global:45.852 kb/s:2001.13
[00:37:33] mp2-decoder done: 0 frames, 0 decoder errors, 0 drops
[00:37:33] libhb: work result = 0

lone_tree
Posts: 75
Joined: Mon May 05, 2008 10:23 pm

Re: Incomplete encoding

Post by lone_tree » Tue Apr 14, 2009 4:48 pm

What version of VLC are you using?

black
Posts: 4
Joined: Thu Apr 09, 2009 3:29 pm

Re: Incomplete encoding

Post by black » Sun Apr 19, 2009 4:33 pm

I have a copy of VLC 0.9.2, but I'm not sure I see the relevance - I'm not using it at any stage of the proceedings. Does Handbrake interact with installed components of VLC in some way?

Edit: Ah, I see that handbrake does go and use some VLC components. However, from the description, it looks like it is just the decss library. Would VLC interfere with/be a part of pure encoding? What would be the recommended version of VLC?

dynaflash
Veteran User
Posts: 3820
Joined: Thu Nov 02, 2006 8:19 pm

Re: Incomplete encoding

Post by dynaflash » Mon Apr 20, 2009 8:39 pm

black wrote: I'm trying to re-encode an avi (from EyeTV + plextor box).
VLC has no relevance on anything but encoding encrypted dvd's right from the disk.

black
Posts: 4
Joined: Thu Apr 09, 2009 3:29 pm

Re: Incomplete encoding

Post by black » Mon Apr 20, 2009 9:27 pm

Okay, so my reading of the docs was correct - VLC is just relevant to the deCSS stuff. Anyone else have any ideas, or even suggestions of more information I could provide to help debug the problem?

jbrjake
Veteran User
Posts: 4805
Joined: Wed Dec 13, 2006 1:38 am

Re: Incomplete encoding

Post by jbrjake » Tue Apr 21, 2009 6:09 pm

It's *not* DeCSS. It's libdvdcss. There is a difference.

black
Posts: 4
Joined: Thu Apr 09, 2009 3:29 pm

Re: Incomplete encoding

Post by black » Tue Apr 21, 2009 7:18 pm

Okay, point taken - different solution to the same problem... and just as irrelevant to _my_ problem, no?

User avatar
s55
HandBrake Team
Posts: 9519
Joined: Sun Dec 24, 2006 1:05 pm

Re: Incomplete encoding

Post by s55 » Tue Apr 21, 2009 8:02 pm

decss / libdvdcss really needs cleared up. You don't need to be confusing them due to their legality.

You've either got a screwed up source file, or there is a bug somewhere in HandBrake that's causing it. So you might try compiling the source code yourself, or wait for the next release or snapshot built (no eta on either right now)

I know eddyg has spent alot of time fixing issues with DVB streams and such for New Zealand broadcasts. It's possible some of his work fixes this.

Post Reply