Audio drop outs when cropping?

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
umdterrapins
Posts: 11
Joined: Sun Feb 18, 2007 3:27 am

Audio drop outs when cropping?

Post by umdterrapins »

I am ripping a DVD, that was dubbed from a VHS. So, the source video has black on the sides, creasing at the bottom of the picture, and captioning junk at the top. I am using the AppleTV preset, using slow de-interlace, and cropping the image to remove the unwanted junk on the sides. The result looks great, but has 1 second audio dropouts every 30-40 seconds (or so). No good! When I don't crop the image, I don't get the dropouts. Any ideas how to remedy this? Is this a known bug? Thanks!
eddyg
Veteran User
Posts: 798
Joined: Mon Apr 23, 2007 3:34 am

Re: Audio drop outs when cropping?

Post by eddyg »

umdterrapins wrote:I am ripping a DVD, that was dubbed from a VHS. So, the source video has black on the sides, creasing at the bottom of the picture, and captioning junk at the top. I am using the AppleTV preset, using slow de-interlace, and cropping the image to remove the unwanted junk on the sides. The result looks great, but has 1 second audio dropouts every 30-40 seconds (or so). No good! When I don't crop the image, I don't get the dropouts. Any ideas how to remedy this? Is this a known bug? Thanks!
Never heard of anything like this.

Have you tried using the CLI and then turning on verbose and capturing the entire encode log, maybe there is something in there that will help.

Cheers, Ed.
umdterrapins
Posts: 11
Joined: Sun Feb 18, 2007 3:27 am

Post by umdterrapins »

Hi Eddy. Thanks for your reply. I'm not familiar with CLI, verbose or how to capture the log. I do get this from my Activity Window...not sure if it's relevant.

*** libdvdread: CHECK_VALUE failed in nav_read.c:207 ***
*** for dsi->dsi_gi.zero1 == 0 ***
dynaflash
Veteran User
Posts: 3820
Joined: Thu Nov 02, 2006 8:19 pm

Post by dynaflash »

That is *very* relevant. You need to rip the dvd first with mtr.
umdterrapins
Posts: 11
Joined: Sun Feb 18, 2007 3:27 am

Post by umdterrapins »

Ok......I tried ripping with MTR. Using that video_ts folder as my source, I get the same results. When I crop, the audio drops out every 25 seconds or so. When I don't crop, the audio is fine. Any ideas?
ohlarikd
Posts: 4
Joined: Sun Oct 21, 2007 3:48 am

Post by ohlarikd »

I have an audio dropout problem as well, on a Mac Mini using latest version 0.9.1. Every 30 seconds or so, I get 5 seconds of no audio. It seems like it happens on widescreen material with a lot of cropping. I turned off cropping (well, made them all 0), and will report if this fixes the issue.

My 4:3 material seems to be fine.

Derek
eddyg
Veteran User
Posts: 798
Joined: Mon Apr 23, 2007 3:34 am

Post by eddyg »

I believe that what happens is that on slower computers and loaded computers it is possible through the vagaries of scheduling that the audio stream gets slightly ahead (but within acceptable limits) of the video stream.

When we then encounter a PTS discontinuity (usually on a chapter break) the audio/video sync is thrown out for a few seconds whilst we recover.

I have a proposed fix for this.

Cheers, Ed.
eddyg
Veteran User
Posts: 798
Joined: Mon Apr 23, 2007 3:34 am

Post by eddyg »

Note that if you are seeing the following:

*** libdvdread: CHECK_VALUE failed in nav_read.c:207 ***
*** for dsi->dsi_gi.zero1 == 0 ***

Then the fix most likely will not address the issue.

Cheers, Ed.
ohlarikd
Posts: 4
Joined: Sun Oct 21, 2007 3:48 am

Post by ohlarikd »

When I start the encode, I get this in the activity window, inlcuding the above mentioned CHECK VALUE error:



[11:27:06] thread 2596800 started ("work")
[11:27:06] 3 job(s) to process
[11:27:06] starting job
[11:27:06] + device /dev/disk1
[11:27:06] + title 1, chapter(s) 1 to 21
[11:27:06] + 720x480 -> 698x384, crop 60/36/14/8
[11:27:06] + grayscale off
[11:27:06] + filters
[11:27:06] + Deinterlace (ffmpeg or yadif/mcdeint) (2:-1:1)
[11:27:06] + 29.970 fps, video bitrate 2000 kbps, pass -1
[11:27:06] + PixelRatio: 1, width:698, height: 384
[11:27:06] + encoder x264
[11:27:06] + audio 128 kbps, 48000 Hz
[11:27:06] + encoder faac
[11:27:06] thread 2102600 started ("reader")
[11:27:06] + output: /Users/Derek/Desktop/Ultraman Cosmos Fix2.mp4
[11:27:06] thread 256be00 started ("muxer")
[11:27:06] thread 213a400 started ("MPEG-2 decoder (libmpeg2)")
60960 dezicycles in vertical_compose97i, 1 runs, 0 skips
116760 dezicycles in vertical_compose97i, 2 runs, 0 skips
182880 dezicycles in horizontal_compose97i, 1 runs, 0 skips
170250 dezicycles in vertical_compose97i, 4 runs, 0 skips
183660 dezicycles in horizontal_compose97i, 2 runs, 0 skips
182250 dezicycles in horizontal_compose97i, 4 runs, 0 skips
200910 dezicycles in vertical_compose97i, 8 runs, 0 skips
181635 dezicycles in horizontal_compose97i, 8 runs, 0 skips
212182 dezicycles in vertical_compose97i, 16 runs, 0 skips
181095 dezicycles in horizontal_compose97i, 16 runs, 0 skips
217668 dezicycles in vertical_compose97i, 32 runs, 0 skips
180738 dezicycles in horizontal_compose97i, 32 runs, 0 skips
221056 dezicycles in vertical_compose97i, 64 runs, 0 skips
180875 dezicycles in horizontal_compose97i, 64 runs, 0 skips
220707 dezicycles in vertical_compose97i, 128 runs, 0 skips
184258 dezicycles in horizontal_compose97i, 128 runs, 0 skips
223053 dezicycles in vertical_compose97i, 256 runs, 0 skips
183627 dezicycles in horizontal_compose97i, 256 runs, 0 skips
219859 dezicycles in vertical_compose97i, 512 runs, 0 skips
181822 dezicycles in horizontal_compose97i, 512 runs, 0 skips
217927 dezicycles in vertical_compose97i, 1024 runs, 0 skips
181315 dezicycles in horizontal_compose97i, 1024 runs, 0 skips
217945 dezicycles in vertical_compose97i, 2048 runs, 0 skips
180949 dezicycles in horizontal_compose97i, 2047 runs, 1 skips
217498 dezicycles in vertical_compose97i, 4096 runs, 0 skips
180937 dezicycles in horizontal_compose97i, 4095 runs, 1 skips
218140 dezicycles in vertical_compose97i, 8191 runs, 1 skips
181101 dezicycles in horizontal_compose97i, 8189 runs, 3 skips
[11:27:07] thread 265be00 started ("Renderer")
[11:27:07] encx264: encoding with stored aspect 8/9
[11:27:07] encx264: opening libx264 (pass -1)
x264 [warning]: width or height not divisible by 16 (698x384), compression will suffer.
x264 [info]: using SAR=8/9
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2
[11:27:07] thread 22ee800 started ("H.264/AVC encoder (libx264)")
[11:27:07] sync: expecting 186143 video frames
*** Zero check failed in ifo_read.c:432
for vmgi_mat->zero_3 = 0x00000000010000000000000000000000000000

*** libdvdread: CHECK_VALUE failed in nav_read.c:207 ***
*** for dsi->dsi_gi.zero1 == 0 ***

[11:27:11] DVD: Beginning of Cell (0) at block 0

*** libdvdread: CHECK_VALUE failed in nav_read.c:207 ***
*** for dsi->dsi_gi.zero1 == 0 ***



I get audio dropouts every 30-40 seconds, not really on chapter marks only. Not sure what this means?

Derek
ohlarikd
Posts: 4
Joined: Sun Oct 21, 2007 3:48 am

Post by ohlarikd »

Ah... I also have this, over and over againL

[22:52:09] Sync: Audio PTS (740438) > Video PTS (213918) by greater than 100ms insert silence until reconverged
[22:52:09] sync: adding 50 ms of silence for track 80bd
[22:52:10] Sync: Audio is way out of sync, attempt to reconverge from current video PTS
[22:52:10] Sync: Audio PTS (740438) > Video PTS (218418) by greater than 100ms insert silence until reconverged
[22:52:10] sync: adding 50 ms of silence for track 80bd
[22:52:10] Sync: Audio is way out of sync, attempt to reconverge from current video PTS
[22:52:10] Sync: Audio PTS (740438) > Video PTS (222918) by greater than 100ms insert silence until reconverged
[22:52:10] sync: adding 50 ms of silence for track 80bd
[22:52:10] Sync: Audio is way out of sync, attempt to reconverge from current video PTS



So I assume this goes on for a few seconds, making for noticeable silence in the output video. What causes this issue? Running a MAC mini 2GHz CoreDuo2, 2 Gigs RAM.

Derek
zjokke
Posts: 3
Joined: Tue Jan 08, 2008 10:35 am

same here!

Post by zjokke »

I'm having exactly the same problem. DVD was created by our company (product showcase), so it's very unlikely copy protection has been used.
Even when ripped with MTR (which works fine), I'm having the same problem with those files. Only when rescaling the video, else everything works fine.
Rodney suggested the zero cell issue (which still seems very unlikely to me).
Post Reply