Log in

View Full Version : Video & Sound Not in Sync


Av8r
7th May 2013, 06:47
This just started happening a few weeks ago. I've been using BDrebuilder to compress my rips from anydvdhd and have always had great success with it until now. I can't figure out what I'm doing wrong. Any suggestions?

Mark_Venture
7th May 2013, 14:04
I've noticed similar.

I re-encoded Total Recall 2012 as "alternate MKV." While the audio started out in sync, by the end of the movie the audio and video were out of sync.

This was the only movie I noticed it on so far, so I was waiting on the next version of BD-Rebuilder to try again.

RobertM
7th May 2013, 17:43
I had that exact same problem with Total Recall 2012. I fixed it manually and did a custom re-mux/re-build.

Av8r, you probably need to be a bit more clear about what kind of problem you are seeing, or hearing, to get any useful help. Is it on EVERY disc? How much of a delay? Same delay at start vs end? Which version of BD-RB?

I still, occasionally, bump up against this out-of-sync issue,... but it's rare; hasn't happened in weeks and weeks.

Av8r
7th May 2013, 18:10
Version 43.04

Yes it occurs on every disc, and the delay is about 2 seconds. I have been using BDRebuilder for over a year and have never had a problem even with this version until a few weeks ago. The last 3 files I've tried to condense have had this issue.

RobertM
7th May 2013, 18:16
If it is on every disc then it's pretty hard to believe that BD-RB is the problem, or there would be LOTS of feedback about it. Something must be messed up with your installation.

I would suggest un-installing then re-installing BD-RB and all of the helper apps, and see what difference that makes.

Mark_Venture
8th May 2013, 12:17
I had that exact same problem with Total Recall 2012. I fixed it manually and did a custom re-mux/re-build.Can you help explain how you did that?

RobertM
8th May 2013, 15:09
Can you help explain how you did that?

Sure, here goes:

(It's not really easy, but it's not really hard either)

You'll need to use txMuxeR for most of the work and also something to change the playlength of the audio track. tsMuxeR comes bundled with BD-RB, so that's easy. For the audio I found AudioScaleGUI, which is a free (GNU license), very lightweight tool that can manipulate 5.1 ac3 files.

Step 1: Determine the specifics of the problem.
====================================
This is where you quantify the problem, so that you know exactly what to fix. I check 3 positions: just after the opening credits, in the middle, and just before the closing credits. You want to see how out-of-phase-sync (OOPS ;) ) the audio is at those 3 points to determine the type of fix required.

The 3 points you pick should be chosen to specifically highlight the audio sync. Usually with strong, clear dialogue so that it's easy to pick up on OOPS issues. It doesn't have to be dialogue, of course. I specifically remember the 'end of movie' point that I picked: where Beckinsale is thrust out of the vehicle and lands on her back. The difference between the video and the 'splat' sound was easy to detect.

It's less easy to quantify, by ear, how much OOPS you've got. What I do is to cut out a bit of the video (about 1 minute) around the point in question, then re-mux it with varying audio offsets until the OOPS is gone. To cut out the test point use txMuxeR. Open the file with the OOPS problem and use the "Split & Cut" tab to select a small portion around the test point, and use the "Demux" output option. This will give you small video and audio files that are easy to fiddle with. Now you need to re-mux those video and audio files, but add a little audio delay when you output a new M2TS test file (select the audio track under "tracks" and add some delay or advance on the "general track options" tab). By trial and error you will quickly be able to figure out precisely how much delay you need.

Using the above technique I was able to determine that the beginning was in-sync, the end was OOPS by about 1/2 second, and the middle was approx 1/2 way between.


Step 2: Scale the audio
=======================================
If it is OOPS is consistent throughout (same delay at beginning, middle and end) then the audio does not need to be scaled, but just needs to be offset by the appropriate amount during re-muxing: you can skip this step.

In the case of Total Recall, there is a 1/2 second OOPS difference between the beginning and end, so we use AudioScaleGUI to scale the audio to fix it. Let's say the Total Recall audio was originally 2 hrs long, or 7200 seconds. You simply need to scale the audio to be 7199.5 seconds long, so that the audio will fit the video.

Open AudioScaleGUI, open the OOPS audio file*. Give it a new name for the scaled audio, and shorten the duration by subtracting 1/2 second from the "New Length" input box. This process is very fast (audio is small) and it should complete in virtually tens of seconds.

*The OOPS audio file should be in your WORKFILES folder if it was the last rebuild that you did with BD-RB. Or you can use tsMuxeR to demux your rebuild to get a fresh copy to work with.


Step 3: Assign chapter positions
======================================
When doing a manual rebuild I manually input the chapter positions on the "Blu-ray tab>Custom chapters list". It's not a particularly time-consuming process, so I never bothered to see if there was a way to automate the process. I'm sure there is ;)


Step 4: Re-mux/Rebuild
=======================================
Use tsMuxer to create a new Blu-ray disc structure. Pick your original video file (the *.264 file in your WORKFILES folder, or from a fresh demux), the scaled audio file that you created, any sup files in the WORKFILES folder, and type in your chapter positions. Remember to offset the audio if you found you needed to in step 1 above.


Step 5: Validate
=======================================
Open up your newly created m2ts file and check those 3 positions again for audio sync. I use VLC for this purpose, but the final test will be on your standalone player.


That's it. Let me know if the above wasn't clear enough.

Av8r
9th May 2013, 01:19
If it is on every disc then it's pretty hard to believe that BD-RB is the problem, or there would be LOTS of feedback about it. Something must be messed up with your installation.

I would suggest un-installing then re-installing BD-RB and all of the helper apps, and see what difference that makes.

Thanks. I removed BDRebild, and then reinstalled but it didn't help. I didn't do that to the helper apps so I'll try that next. Can't really figure out how this happened. It's worked great for a long time.

jdobbs
9th May 2013, 13:32
All,

Please provide details (log and config contents). We need to fix the issue, not find workarounds outside of BD-RB.

Mark_Venture
9th May 2013, 16:38
All,

Please provide details (log and config contents). We need to fix the issue, not find workarounds outside of BD-RB.

I've posted in the Bug Reports Only thread

jdobbs
9th May 2013, 16:46
I've posted in the Bug Reports Only threadGot it, thanks. I'll run it today and see what I can find.

Av8r
10th May 2013, 22:33
Ok here is my log file and config file.


05/09/13] BD Rebuilder v0.44.04 (beta)
[22:12:46] Source: GANGSTER_SQUAD_00100
- Input BD size: 21.85 GB
- Approximate total content: [01:52:54.809]
- Target BD size: 4.36 GB
- Windows Version: 6.2 [9200]
- MOVIE-ONLY mode enabled
- Auto Quality: High Quality (Default), Two Pass
- Decoding/Frame serving: DirectShow
- Audio Settings: AC3=0 DTS=0 HD=1 Kbs=640
[22:12:46] PHASE ONE, Encoding
- [22:12:46] Processing: VID_00005 (1 of 1)
- [22:12:46] Extracting A/V streams [VID_00005]
- [22:15:12] Reencoding video [VID_00005]
- Source Video: MPEG-4 (AVC), 1920x1080
- Rate/Length: 23.976fps, 162,433 frames
- Bitrate: 4,314 Kbs
- [22:15:12] Reencoding: VID_00005, Pass 1 of 2
- [23:03:52] Reencoding: VID_00005, Pass 2 of 2
- [00:57:23] Video Encode complete
- [00:57:23] Processing audio tracks
- Track 4352 (eng): Reencoding audio to AC3...
[01:00:19]PHASE ONE complete
[01:00:19]PHASE TWO - Rebuild Started
- [01:00:19] Rebuilding AVCHD file Structure
[01:01:28] - Encode and Rebuild complete
[01:01:28] Writing BD structure to ISO file
- ImgBurn completed successfully
- GANGSTER_SQUAD folder removed.
- WORKFILES folder removed.
[01:02:35] JOB: GANGSTER_SQUAD finished.


Options]
VERSION=0.44.0.4
MODE=3
ENCODE_QUALITY=2
ONEPASS_ENCODING=0
AUTO_QUALITY=1
AUTO_BURN=2
AUDIO_TO_KEEP=eng;
SUBS_TO_KEEP=all
SD_CONVERT=0
OPEN_GOP=0
RESIZE_1080=0
RESIZE_1440=0
DEINTERLACE=1
SD_TO_1080=0
CONVERT_WIDE=0
DTS_REENCODE=0
AC3_REENCODE=0
AC3_640=1
AC3_192=0
KEEP_HD_AUDIO=1
AVCHD=1
REMOVE_WORKFILES=1
MOVIE_ONLY_LOOP=1
REMOVE_OUTPUT=1
USE_FILTERS=0
BDMV_CERT_ONLY=0
USE_LAVF=0
IVTC_PULLDOWN=0
ASSUME_DVD_PAL=0
UNMASK_CHAPTER=0
COMPLETION_BEEP=0
DGDECNV=0
OUTPUT_3D=0
AUDIO_TRACK_LIMIT=1
SUBTITLE_TRACK_LIMIT=1
CUSTOM_TARGET_SIZE=23500
[Paths]
SOURCE_PATH=C:\USERS\STEVE\DESKTOP\GANGSTER\GANGSTER_SQUAD\
WORKING_PATH=I:\MOVIES\GANGSTER SQUAD\

jdobbs
10th May 2013, 23:03
Remove BD-RB, AVISYNTH, FFDSHOW, and HAALI and reinstall them all. If you are having problems with all discs -- it has to be an issue with your configuration.

Av8r
12th May 2013, 05:39
Everything working fine now. Uninstalled and reinstalled all helper programs.

jdobbs
12th May 2013, 13:23
Everything working fine now. Uninstalled and reinstalled all helper programs.Great.