Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > DVD & BD Rebuilder

Reply
 
Thread Tools Search this Thread Display Modes
Old 24th June 2016, 08:13   #24361  |  Link
ggtop
Registered User
 
Join Date: Mar 2003
Posts: 311
"Alternate Movie-Only Output" audio out of sync

Hi jdobbs,

I think I encountered a small bug in "Alternate Movie-Only Output". Playlist contains 3 streams:
05016.m2ts (Studio logo, 11sec)
05012.m2ts
05017.m2ts (Studio logo, 7sec)

BDRB muxes the audio via MP4Box using a delay of 758:
Code:
"C:\xxx\BD_Rebuilder_V05014\tools\mp4box\mp4box.exe" -fps 23.976 -tmp "C:\xxx\VIDEOS\BD_RB_WORK\WORKFILES"
-chap "C:\xxx\VIDEOS\BD_RB_WORK\WORKFILES\mChapters.chp"
-mpeg4 -add "C:\xxx\VIDEOS\BD_RB_WORK\WORKFILES\VID_05016+VID_05012+VID_05017.264"
-add "C:\xxx\VIDEOS\BD_RB_WORK\WORKFILES\AUD_05016_4357.AAC":delay=758:lang=deu:name=""
-new "C:\xxx\VIDEOS\BD_RB_WORK\NEVER_SAY_NEVER_AGAIN.mp4"
I analyzed the commandline via process Explorer.
If I remux the files manually using no delay Audio is in perfect sync. Seems that BDRB shifts the audio by the intro (05016.m2ts)...But the file "AUD_05016_4357.AAC" already contains the audio part from the intro stream 05016

BTW I had another encode running for another movie with a lot of m2ts files (33!) which is some kind of multi angle I guess and BDRB created a BDMV structure before muxing to MP4. This one worked perfectly.

I kept all temporary files on my HDD in case you want to have some info.

I would really like to donate for the time you spent in BDRB and the effort supporting it.

Thank you
ggtop

Last edited by ggtop; 24th June 2016 at 08:20.
ggtop is offline   Reply With Quote
Old 24th June 2016, 22:39   #24362  |  Link
soneca
Registered User
 
Join Date: Feb 2008
Location: Brazil
Posts: 753
Hello jdobbs, I am unable to register the DVD Rebuilder.

soneca is offline   Reply With Quote
Old 25th June 2016, 13:29   #24363  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
Quote:
Originally Posted by soneca View Post
Hello jdobbs, I am unable to register the DVD Rebuilder.

That's one I've never seen before. I looked it up, and it says the that there is a DLL that is missing or hasn't been registered somehow. Have you recently done an install of a new O/S or something similar? I'd suggest you try to uninstall/reinstall DVD-RB from scratch.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 25th June 2016, 13:31   #24364  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
Quote:
Originally Posted by ggtop View Post
Hi jdobbs,

I think I encountered a small bug in "Alternate Movie-Only Output". Playlist contains 3 streams:
05016.m2ts (Studio logo, 11sec)
05012.m2ts
05017.m2ts (Studio logo, 7sec)

BDRB muxes the audio via MP4Box using a delay of 758:
Code:
"C:\xxx\BD_Rebuilder_V05014\tools\mp4box\mp4box.exe" -fps 23.976 -tmp "C:\xxx\VIDEOS\BD_RB_WORK\WORKFILES"
-chap "C:\xxx\VIDEOS\BD_RB_WORK\WORKFILES\mChapters.chp"
-mpeg4 -add "C:\xxx\VIDEOS\BD_RB_WORK\WORKFILES\VID_05016+VID_05012+VID_05017.264"
-add "C:\xxx\VIDEOS\BD_RB_WORK\WORKFILES\AUD_05016_4357.AAC":delay=758:lang=deu:name=""
-new "C:\xxx\VIDEOS\BD_RB_WORK\NEVER_SAY_NEVER_AGAIN.mp4"
I analyzed the commandline via process Explorer.
If I remux the files manually using no delay Audio is in perfect sync. Seems that BDRB shifts the audio by the intro (05016.m2ts)...But the file "AUD_05016_4357.AAC" already contains the audio part from the intro stream 05016

BTW I had another encode running for another movie with a lot of m2ts files (33!) which is some kind of multi angle I guess and BDRB created a BDMV structure before muxing to MP4. This one worked perfectly.

I kept all temporary files on my HDD in case you want to have some info.

I would really like to donate for the time you spent in BDRB and the effort supporting it.

Thank you
ggtop
If you can provide me with the movie name I may be able to run a test.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 25th June 2016, 14:27   #24365  |  Link
Ch3vr0n
Registered User
 
Join Date: Jan 2009
Posts: 1,368
According to last part of the command line it's 'never say never again'.
Ch3vr0n is offline   Reply With Quote
Old 25th June 2016, 14:52   #24366  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
Quote:
Originally Posted by Ch3vr0n View Post
According to last part of the command line it's 'never say never again'.
Thanks. I guess I missed that.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 25th June 2016, 18:22   #24367  |  Link
Mark_Venture
Registered User
 
Join Date: Jan 2010
Posts: 225
This may be a bug or working as designed (not sure which)... Plus a feature request...

Its around Alt Movie Only and .SRT files while having selected "use SupTitle for Alternate Forced subs" and "use Tesseract to convert PGS to SRT"

The SUP and SRT files are left in the WORKING Path, not put in the same folder as the final .MKV file. If doing a BATCH and using the same workingpath it could mean a loss of .SRT files, or at least a mix of them.

More importantly If you set "remove WORKFILES after rebuild", when rebuild is complete, the workfiles folder gets removed, and so do any SRT files that were made.

My current work around is... don't set "remove workfiles"... use a separate working path for each batch item, when rebuilds are done, individually go into each working path, copy the SRT's into the folder with the associated MKV, and delete the working folder. Its time consuming.

Is there a way that BD-Rebuilder could place the SRT files in the folder with the .MKV file before the working path gets deleted? And maybe rename them to Movie-trackXXXX.srt?
Mark_Venture is offline   Reply With Quote
Old 25th June 2016, 18:44   #24368  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
The SRT will still exist -- it's just embedded as a stream in the MKV file. If you want to extract it later for some reason, you can just use MKVEXTRACT.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 25th June 2016, 18:58   #24369  |  Link
ggtop
Registered User
 
Join Date: Mar 2003
Posts: 311
Quote:
Originally Posted by jdobbs View Post
Thanks. I guess I missed that.
Yes, Ch3vr0n is correct. It's "Never say never again". The James Bond movie that is none :-) At least not official starring Sean Connery, Kim Basinger

Don't know if this is strange, but the AUD_05016.meta file is showing Video is extracted from 05016.m2ts, but Audio and Subs are pointed to the playlist which is 00130.
AUD_0512.meta is fully pointing to 05012.m2ts. Both are extracting nearly the same subtitle file sizes. Audio is coming from 05012.m2ts only.

If this should be uncommon (or not understandable from my description) I could send you some screenshots.

ggtop

Attached the log:
Code:
[06.22.16] BD Rebuilder v0.50.15
[10:49:39] Source:  NEVER_SAY_NEVER_AGAIN_00130
  - Input BD size: 43,18 GB
  - Approximate total content: [02:14:22.846]
  - Windows Version: 6.1 [7601]
  - MOVIE-ONLY/ALTERNATE OUTPUT mode enabled
  - Mode: My MP4 Container, 1920x1080, AutoGOP, AAC-256
  - Quality: High Quality (Default)
  - Decoding/Frame serving: DirectShow
  - Audio Settings: AC3=0 DTS=0 HD=0 Kbs=640
[10:49:42] PHASE ONE, Encoding
 - [10:49:42] Processing: VID_05016 (1 of 3)
 - [10:49:42] Extracting A/V streams [VID_05016]
 - [10:58:05] Reencoding video [VID_05016]
   - Source Video: MPEG-4 (AVC), 1920x1080
   - Rate/Length: 23,976fps, 266 frames
 - [10:58:05] Reencoding: VID_05016, Pass 1 of 1
 - [10:58:13] Video Encode complete
 - [10:58:13] Processing audio tracks
   - Track 4357 (deu): Reencoding audio to AAC...
 - [11:00:11] Processing: VID_05012 (2 of 3)
 - [11:00:11] Extracting A/V streams [VID_05012]
 - [11:19:23] Reencoding video [VID_05012]
   - Source Video: MPEG-4 (AVC), 1920x1080
   - Rate/Length: 23,976fps, 192.864 frames
 - [11:19:23] Reencoding: VID_05012, Pass 1 of 1
 - [15:08:31] Video Encode complete
 - [15:08:31] Processing: VID_05017 (3 of 3)
 - [15:08:31] Extracting A/V streams [VID_05017]
 - [15:08:38] Reencoding video [VID_05017]
   - Source Video: MPEG-4 (AVC), 1920x1080
   - Rate/Length: 23,976fps, 185 frames
 - [15:08:38] Reencoding: VID_05017, Pass 1 of 1
 - [15:08:44] Video Encode complete
[15:08:44]PHASE ONE complete
[15:08:44]PHASE TWO - Rebuild Started
 - [15:08:44] Building ALTERNATE OUTPUT Structure
[15:17:46] - Encode and Rebuild complete
[15:17:46] JOB: NEVER_SAY_NEVER_AGAIN finished.
Audio is DTS mono by the way.

Last edited by ggtop; 25th June 2016 at 19:13.
ggtop is offline   Reply With Quote
Old 26th June 2016, 02:35   #24370  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
When you are doing a movie-only backup the audio is extracted/assembled from all the component M2TS files and is given the name of the first component. You'll find that the single extracted audio file holds the entirety of the movie.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 26th June 2016, 05:54   #24371  |  Link
DoctorM
Registered User
 
Join Date: Sep 2005
Posts: 558
Code:
[06/26/16] BD Rebuilder v0.50.11
[00:25:05] Source:  KISS_ME_KATE_00098
  - Input BD size: 36.06 GB
  - Approximate total content: [01:50:18.612]
  - Target BD size: 35.71 GB
  - Windows Version: 6.1 [7601]
  - MOVIE-ONLY mode enabled
  - Quality: Good (Very Fast), CRF
  - Output folder: C:\Users\Dr. M\Desktop\
  - 3D conversion mode enabled
  - Decoding/Frame serving: FRIMSource
  - Audio Settings: AC3=0 DTS=0 HD=0 Kbs=640
[00:25:08] PHASE ONE, Encoding
 - [00:25:08] Processing: VID_00042 (1 of 1)
 - [00:25:08] Extracting A/V streams [VID_00042]
 - [00:39:28] Reencoding video [VID_00042]
   - Source Video: MPEG-4 (AVC), 1920x1080
   - Rate/Length: 23.976fps, 158,688 frames
   - Converting output to Side-By-Side 3D Format
 - [00:39:29] Performing CRF Prediction...
   - Analyzing 11.00 [11.00]
- Aborted...
[00:44:54]PHASE ONE aborted by user request
----------------------
[06/26/16] Checking System Settings
  - BD-Rebuilder v0.50.11
  - Windows Version: 6.1 [7601]
  - Working Path Free Space: 296.16GB
  - AVISYNTH Version: 2.5.8.0, Ok
  - LAVFILTERS:  Ok
  - AnyDVD settings check: Ok.
  - X264:  Ok
  - AFTEN:  Ok
  - FAAC:  Ok
  - MP4BOX:  Ok
  - WAVI:  Ok
  - TSMUXER:  Ok
  - FRIMEncode:  Ok
  - FRIMDecode:  Ok
[06/26/16] Systems Settings Check complete
I aborted the encode because BD RB stalled (Speed: 0.00x ETA: 00:00:00 FPS: 00 Frames: 000000/000000). The TEMP.264 generated is 0KB in size.
Opening the AVS script in Vdub tells me:
Avisynth open failure:
ERROR: Cannot initialize Intel Media SDK session.

Thoughts?
DoctorM is offline   Reply With Quote
Old 26th June 2016, 13:47   #24372  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
In order to get the AVS to display -- you may have to put a copy of libmfxsw32.dll in the same folder as the .AVS.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 27th June 2016, 00:06   #24373  |  Link
soneca
Registered User
 
Join Date: Feb 2008
Location: Brazil
Posts: 753
Quote:
Originally Posted by jdobbs View Post
That's one I've never seen before. I looked it up, and it says the that there is a DLL that is missing or hasn't been registered somehow. Have you recently done an install of a new O/S or something similar? I'd suggest you try to uninstall/reinstall DVD-RB from scratch.
Yes, Windows 7 very recent. I had problems and I have to reinstall any problem and I notice.
Thank you!
soneca is offline   Reply With Quote
Old 27th June 2016, 19:23   #24374  |  Link
DoctorM
Registered User
 
Join Date: Sep 2005
Posts: 558
Quote:
Originally Posted by jdobbs View Post
In order to get the AVS to display -- you may have to put a copy of libmfxsw32.dll in the same folder as the .AVS.
That let me load the VID_00042.AVS file, but the TEMP.AVS still reacts funny.

Comparing, testing, and exhibiting extreme patience, it's the SelectRangeEvery() that's causing the problem.

It seems seeking is crazy slow this way. 0.01x Speed with more than an hour estimated to test just the first CRF value.

FRIMSource doesn't seem capable of reasonably doing an analysis test.

Maybe this is one of those things you need an Intel processor to accelerate.
DoctorM is offline   Reply With Quote
Old 27th June 2016, 19:53   #24375  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
You're probably right. I'll probably have to disable CRF prediction for FRIMSource(). More than likely it can't seek without decoding all the frames in between.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 27th June 2016 at 19:55.
jdobbs is offline   Reply With Quote
Old 27th June 2016, 20:16   #24376  |  Link
Sharc
Registered User
 
Join Date: May 2006
Posts: 3,997
Quote:
Originally Posted by jdobbs View Post
You're probably right. I'll probably have to disable CRF prediction for FRIMSource(). More than likely it can't seek without decoding all the frames in between.
If I remember correctly FRIMSource can only decode sequentially (at least that used to be the case in the early days).
Sharc is offline   Reply With Quote
Old 27th June 2016, 20:53   #24377  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
Yeah. I'm can't remember if I've ever even tested it with CRF prediction. That's not good.
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net
jdobbs is offline   Reply With Quote
Old 28th June 2016, 15:33   #24378  |  Link
thomheinz
Registered User
 
Join Date: Apr 2013
Posts: 1
Quote:
Originally Posted by soneca View Post
Yes, Windows 7 very recent. I had problems and I have to reinstall any problem and I notice.
Thank you!
Have you tried to Run as Administrator?
thomheinz is offline   Reply With Quote
Old 28th June 2016, 22:27   #24379  |  Link
ggtop
Registered User
 
Join Date: Mar 2003
Posts: 311
Quote:
Originally Posted by jdobbs View Post
When you are doing a movie-only backup the audio is extracted/assembled from all the component M2TS files and is given the name of the first component. You'll find that the single extracted audio file holds the entirety of the movie.
Hi jdobbs,
as I don't think you have the movie "Never say never again" can I examine some files from the original BD in order to analyse where the audio delay is coming from?

While typing this I have another issue with 2 BDs from my Tarantino Box: True Romance and Death Proof. Both playlists have 2 M2TS files: Studio Logo Intro and main movie. I deselect all subtitle streams because I only want to have the forced ones hard-coded with SUPTITLE() which are extracted fine into "...track_9999.sup". Both encodes immediately fail with error
Code:
[23:21:57] CreateAVS() 00000 
[23:22:00] - Could not create AVS file
I think the errors come from the Version 0.50.15 I am using that should fix the issue with hard-coded Subs you provided me some weeks ago. If I select any subtitle stream and mark it as "Forced on" the errors disappear for both movies.

The AVS files are incomplete in both cases and look like this:
Code:
#Created by BD Rebuilder - v0.50.15
DirectshowSource("C:\USERS\xxx\VIDEOS\BD_ORIGINAL\TRUE_ROMANCE\BDMV\STREAM\00051.m2ts", fps=23.976, framecount=487, audio=false)
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\SupTitle.dll")
After selecting a subtitle stream and marking as "Forced on" they are created successfully:
Code:
#Created by BD Rebuilder - v0.50.15
DirectshowSource("C:\USERS\xxx\VIDEOS\BD_ORIGINAL\TRUE_ROMANCE\BDMV\STREAM\00051.m2ts", fps=23.976, framecount=487, audio=false)
LoadPlugin("C:\Program Files (x86)\AviSynth 2.5\plugins\SupTitle.dll")
SupTitle("C:\USERS\xxx\VIDEOS\BD_RB_WORK_3\WORKFILES\00051.track_4608.sup")
ConvertToYV12().AssumeFPS(24000,1001)
ggtop

Last edited by ggtop; 28th June 2016 at 22:39.
ggtop is offline   Reply With Quote
Old 29th June 2016, 14:20   #24380  |  Link
jdobbs
Moderator
 
Join Date: Oct 2001
Posts: 20,973
Try using v0.50.14 so we can be sure.

I'll have to fix the forced sub issue since you should never get an error that stops processing. But, on the other hand, why would you ever select "Used SupTitle() for forced subs...", and then deselect all the subs?
__________________
Help with development of new apps: Donations.
Website: www.jdobbs.net

Last edited by jdobbs; 29th June 2016 at 14:33.
jdobbs is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:32.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.