View Full Version : converting LPCM to ac3
jarthel
13th February 2006, 16:05
I found this guide -> http://forum.doom9.org/showthread.php?t=84887&page=2.
but wasn't really sure how to make it work on the DVD that I have here.
DVD info: it's a japanese R2. It contains music videos of 21 songs. There is only 1 VTS (VTS_1_xx). And in this VTS, there are 22 PGCs. PGC1 to 21 corresponds to the 21 songs in the DVD. PGC22 is like a compilation of PGC1 to 21. I am assuming that PGC22 does not contain any data but just pointers to PGC1 to 21.
Can someone please tell me how to reauthor this DVD so I use the much smaller AC3 file instead of the default LPCM?
Thank you in advance.
jsoto
13th February 2006, 21:04
Probably you have 21 PGCs each one with a different VOBIDs... and a "play all" PGC linking in a non-seamless way all of them.
If this is true, you have to demux/remux your 21 PGCs independently.
After you have to replace the new PGCs (i.e. using VobBlanker)
But if the first PGC is the "play all" one, the replacement is not so easy using VobBlanker.... some tricks have to be done to recover the original structure..
Send me the IFOs and I'll take a look.
jesus_soto_viso at terra dot es.
jsoto
jarthel
14th February 2006, 00:16
the "play all" PGC is the last PGC, PGC 22.
And you are right, each has a different VOB ID. the 1st VOB ID, is quite short to be a music video as it only last 3 to 4 secs long. It's probably the japanese equivalent of the FBI stuff (I haven't demux it yet to know for sure). VOB ID 2 to 22 corresponds to the 21 songs in the disc.
I'll try your suggestion first and if I can't work it out, I'll send you the email. :)
Thank you for the help. :)
jsoto
14th February 2006, 00:53
the "play all" PGC is the last PGC, PGC 22. OK. Very easy in this case... (a little bored, you have to do 21 times the same...)
So last PGC (#23) should have all cells marked as reused in VobBlanker. Replacing the first 21 (2 to 22) will be enough.
jsoto
jarthel
14th February 2006, 01:40
So last PGC (#23) should have all cells marked as reused in VobBlanker.
got a bit lost there.
there is currently no pgc 23. there are only 22 PGCs in the VTS. Did you mean I need to create a new PGC?
Replacing the first 21 (2 to 22) will be enough
do you mean the VOB ID or the PGC? cause the music videos start at PGC1 and ends in PGC 21. BUT when viewed as VOB ID, PGCDemux would display that I have a 3 sec video in VOB ID 1. And from VOB ID 2 to 22, the music videos are there.
I wasn't sure if you mean replacing the VOB ID or PGC. It's my first time replacing video in vobblanker so forgive the ignorance :)
Thanks again
thanks again.
setarip_old
14th February 2006, 03:33
@jarthel
Hi!converting LPCM to ac3if the DVD already contains both LPCM and .AC3 audiostreams, simply use DVD Shrink (In "Full Disk"mode) and DEselect the LPCM audiostream - and save (As a DVD "package" of .IFOs, .BUPs, and .VOBs - NOT as .ISO image file) to your hard drive...
jarthel
14th February 2006, 06:29
the DVD only has LPCM audio. :(
setarip_old
14th February 2006, 07:04
Sorry, I misunderstood...
jsoto
14th February 2006, 07:36
got a bit lost there.
I wasn't sure if you mean replacing the VOB ID or PGC. It's my first time replacing video in vobblanker so forgive the ignorance :)
VobBlanker works by PGC. But I'm assuming your PGCs are made of one different VOBID each, except the last "play all".
No, you do not have to create a new PGC. Just replace the first 21 ones (#22 is the play all, isn't it?). First one (PGC #1) could be a FBI. Check it with VobBlanker, and blank it if it is really a FBI.
So , in VobBlanker, you have to:
- blank 1st PGC (if it is really an unwanted FBI)
- replace 2-21 PGC
jsoto
r0lZ
14th February 2006, 09:37
Just an idea. Not sure if it works.
- Demux the whole VTS, and save the celltimes.txt file.
- Replace the original WAV audio with the AC3 file.
- Remux with MuxMan. Use the celltimes.txt file to recreate the chapters at the right place.
- Overwrite the original VOB files with the new ones.
- Use PgcEdit to change the audio definition in the domain streams attributes.
- Use VobBlanker or FixVTS to refuild the tables according to the new VOB files.
Should work, no?
jsoto
14th February 2006, 09:45
No, it does not work well
Each PGC has its VOBID, and probably (this has to be checked, but seems it is) the VOBIDs are non-seamless joined in the "play all" PGC.
So , if you demux the Play all PGC (or the complete VOB file with VobEdit) the audio and the video of the different VOBIDs will be concatenated by the demuxing process
That means, if the audio and video durations are not exactly the same in each VOBID (in ac3 usually cannot be, but in LPCM, may be the difference is negligible...) you will experience a/v synch problems, higher in the last PGCs
The right way to do it is by single PGC (or by VOBID, seems it is the same in this case)
jsoto
EDIT: Forgot to mention VobBlanker will change the domain attributes automatically, and , for sure, reconsructs the IFOs in the replacing process.
r0lZ
14th February 2006, 10:01
Oh, yes, jsoto. You're right. I forgot the A/V synchro problem.
jarthel
14th February 2006, 10:44
I have demuxed the PGCs using PGCDemux.
Can you please tell me if these are the right steps?
1. reencode the LPCM to AC3
2. merge the m2v and ac3 using ifoedit?
3. replace the existing pgC with the new .vob (result of step 2)
is this correct?
Thanks
jarthel
14th February 2006, 14:54
thank you. it worked :)
jsoto
14th February 2006, 18:50
IFOEdit usually is OK, but MuxMan is a better option for step 2, mainly in NTSC.
jsoto
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.