Log in

View Full Version : TMPGEnc 100% Working - No Choppy Audio/Video


Kenwood
30th October 2002, 18:45
Hello to everyone,

TMPGEnc does work great and I don't have any choppy audio/video.
Already had done this, but was forgotten the steps.
Also solved transcoding artifacts, witch was a stupis mistake from my side.
Gonna explain everthing in very simple steps.
Maybe to simple for most 'veteran' user overhere, but I would also like to
give to more un-experienced users a chance to try this out.
Have done with this method:

- Back to the future 1/2 and 3.

First of all what you need:

1. DVD Decrypter 3.1.3.0
2. DVD2AVI 1.77.3
3. Ifoedit 0.94
4. Bitrate Viewer (only the calculator in this proggie).
5. DVD writing program (I use Nero latest version).

Directory creation:
- Make the following directory's: Temp/Temp2 and Temp3
Make in the directory Temp3 another directory: VIDEO_TS

DVD Decrypter:
- Start DVD Decrypter and insert your DVD.
- Under the 'MODE' tab select 'IFO'
- In the screen right you will see the time of the movie.
Write this time down and round it up to above.
Example: Back To The Future 1 is 1:51:16 mins -> 1:52:00
Recalculate this to mins: 1:52:00 = 112 mins.
Did this wrong the first time, made it 111 and ended up just 45 MB over the
magic 4500 MB border.
You will need this value later with Bitrate Viewer calculator so write it down !
- Now in DVD Decrypter under the tab 'MODE' select 'FILE'.
- Make all the files in the right screen blue using 'CTRL-A'.
This effective decrypts the whole movie to your HD.
- Let DVD Decrypter do it's work and grab a beer or a cup of coffee.
- DO NOT USE 'STREAM PROCESSING'!!
- When done, close DVD Decrypter and start DVD2AVI.

DVD2AVI:
- Select 'File' and select 'Open'.
- Select the first .VOB from the main movie files in the directory were you decrypted
Back to the future to.
- A new screen will open with all the 6 .VOB files, and the last one (Nr. 6) is already
blue, don't select anything, just press the 'OK' button.
- Select the tab 'Video' and go to 'YUV -> RGB' and select 'TV Scale'.
- When done, press the 'F5' key and watch the new screen that will open next to the
main screen from DVD2AVI and let it play for about 30 seconds then press 'ESC' top stop.
In the right screen the properties are displayed - WRITE THE TOP 4 DOWN ON A NOTE.
At this point a made a big mistake in the past -> I didn't write those values down.
In case of Back to the future 1 the top 4 values are:
- Apect Ratio 16:9
- Frame Rate 25.000
- Video Type: PAL
- Frame Type: Progressive
The last one is very importand !!!
Because PAL Progressive is a NON-INTERLACED movie and the default setting in TMPGEnc
is INTERLACED !
- Go to the tab 'File' and select 'Save Project'.
Fill in BTTF1.d2v (Back to the future 1) and store this file in the Temp directory.
When done close DVD2AVI and start Ifoedit 0.94.

Ifoedit:
- Load the .IFO file from the main movie files from the directory where you decrypted
BTTF1 to.
- When done press the button 'Create Tmpg T. button.
- Select directory Temp again and save this file also under the name BTTF1.txt
- Press 'Save' and the next screen will appear where only the 'I Frames' are selected.
Don't change anything, just press 'OK'
- Ifoedit now starts to analyse all the ORIGINAL VOB's and after 2% press 'Cancel'
- A new screen will open and here you have to select a GOP key.
- DO NOT SELECT THE FIRST ONE THAT STARTS WITH 'IP', but the thrid or second with starts with
'IB'.
- Press 'OK' and now Ifoedit will create a template for you witch will be stored in your
Temp directory.
- When done, close Ifoedit and start Bitrate Viewer.

Bitrate Viewer:
- Press in top left corner the tab 'Bps calc'
- A screen will open, then press the tab: VIDEO LENGHT
- Select 'Full D1 Pal 720*576
- In Video Lenght (Red letters) click up to 112 mins (you wrote that down from DVD Decrypter).
- Leave 'Audio Bitrate' at 224
- Num of subtitles: 1
- Media Type: RVR-R/RW/RAM 4.7GB (It takes incount 4700-200 for TOC so you will have 4.5 GB
for your movie so don't change anything).
- Number of discs: 1
- In the top right corner a value in a black square will apprear: 5167
Write this down.
- After that close Bitrate Viewer and start TMPGCalc.

TMPGEnc:
- Make sure that in the right bottom corner 'Es (Video Only)' is selected.
- Press 'Browse' button for the 'Video source:' and select the BTTF1.d2v file in the Temp
directory.
- Press 'Browse' button for the 'Output file name' and save the file as BTTF1.m2v also in
the Temp Directory.
- Press in the right bottom corner 'Setting'

- Select the 'Video' tab and make the following settings:
-- Stream Type: MPEG-2 Video
-- Size: 720 x 576
-- Aspect Ratio: 16:9 Display
-- Rate Control Mode: Automatic VBR (CQ_VBR) and press the 'Setting' button to enter the Bitrate.
-- Enter here under 'Maximun Bitrate': 5167 (Value you got from Bitrate Viewer and leave
Minimum Bitrate: 0
-- Also select here Image Quality: Highest(100)
-- Press 'OK'
-- Profile & Level: Main Profile & Main Level (MP@ML)
-- Video format: PAL
-- Encode Mode: Non-Interlace (Remember the video artifacts, this is beauce the default setting is
'Interlace' so TMPGEnc will encode a movie that is Non-Interlace to Interlace and guess what will
happen -> Yep artifacts).
-- YUV format: 4:2:0
-- DC component precision: 10 bits
-- Motion search presision: Highest (Very Slow)

- Now press the 'Advanced' tab and make the following settings:
-- Video source type: Non interlace (progressive) - This you got from DVD2AVI and wrote down.
-- Field oreder: Bottom field first (field B)
-- Source aspect ratio: 16:9 625 line (PAL)
-- Video arrange Method: Full screen (keep aspect ratio)

- Now press the 'GOP Structure' tab and do the following:
-- Tick (place a black 'v' with the mouse) in 'Force picture type setting'
-- Then next to that press the button 'setting' and a new screen will open.
-- Press the 'Load' button and open the BTTF1.txt in your Temp directory and press OK.
Now is seems that your computer freezes but just let in go it will come back !'
-- Press in the right bottom corner: 'OK'

- Now press the 'Quantize matix' tab.
-- Tick: Output YUV data as Basic YCbCr not CCIR601
-- Press 'OK'

Back in the main screen, press start and go to sleep or make a very long night.
Your .m2v file will be created for re-mux later and this takes a very long time.
On my AMD Athlon XP 2000 between 10-12 Hours.
When the encoding process is done (100%) close TMPGEnc and fire up Ifoedit 0.94.

Ifoedit:
- Open the ORIGINAL .IFO file from the main movie files in the directory where you decrypted BTTF1
to.
- Select the tab 'VOB Extras' and select 'Remux .m2v'
- In the next screen tick: Rebuild PTS (needed for CCE and TmpegEnc etc)
- Un-Tick (or de-select): Autocopy Menu Files to destination
- Select the BTTF1.m2v file in you Temp directory and select as Destination directory TEMP2
Now let Ifoedit do it's thing.
When done, close Ifoedit en go to the Temp directory and delete everything, EXEPT the .VOB file.
Start Ifoedit again and press in the main screen: Create Ifo's.
Select the first .VOB in you Temp2 directory (the one you just remuxed) and let Ifoedit do it's thing.
After the creation, load the VIDEO_TS.IFO from the temp2 directory and press the button 'Get VTS Sectors'
After this you can watch you movie with Power DVD and you will see it's running ok.
NOTE: The above steps will put a lot of strain on you HD(s) and they will become quite hot.
So, the video may not be running smoothly at this point, but give the HD(s) some minutes to cool down.
But now, all the files in the temp2 are to big to fit on a single DVD-R.
Start up Ifoedit again.
Load the ORIGINAL .IFO from the movie and look at what position your audio and subtitle is and
write this down.
Because of the remux this info is gone.
After that, load the main .IFO from your TEMP directory and select the tab 'VOB EXTRA'S'
Select 'Strip Streams' and select the audio and subtile you wrote down and select as output
directory: Temp3\VIDEO_TS
Let Ifoedit do it's thing and after that, delete everything in the Temp3\VIDEO_TS directory and
again EXCEPT the .VOB files.
Recreate Ifo's for the Temp3\VIDEO_TS and after that load the new .IFO from the main movie files
and press the button 'GET VTS SECTORS'
If you now look at the total size of all the files in the Temp3\VIDEO_TS you will see that it will
just fit nicely on a single DVD-R.
What's left -> write it to a DVD-R or if you want to try first to a DVD-R/RW.

Done very, very much reading the past 4 weeks on the Internet (sometimes 8 hours a day) to figure it
out.
But a big thank to the Doom9 Basics and Guidelines and VCDHELP.COM I finaly came up with the solution
as I describeb above.
I do not exactly know, some settings for NTSC but maybe someone else can write that in a replay to this
topic.
The choppy audio/video occurs when you remux from a stream processed DVD movie !
Also already did Beverly Hills Cop 1/2 and 3 with great result.
Enoy your mini-dvd's and give you all my best regards,

Kenwood

Steff
30th October 2002, 22:09
Congrats!
You have been very very lucky. I had the same luck. Using somewhat the same steps. My first 3 Movies were fine - BUT then...
Things are much more complicated.

You will find situations, where bitrateviewer and/or DVD2AVI fool you about the interlace-mode (only 1st cell is progressive e.g.)
You will find movies that are encoded entirely progressive and (after reencoding) give horrible results (vertical jitter). Only workaround: New job with TEMPEnc with 'Source Progressiv - Output Interlaced' There is no explanation for this :mad:

You will find, that 'topfield first (B)' is wrong for most movies (but only matters for interlaced material). It's definately right for DV-material.

You will find that even with this perfect usage of the TEMPENC-Template the sound/vision may become choppy. You'll even can end up with sound-offset of minutes (from different cells) :scared:

I don't want to scare you. Just a warning, not to become too enthusiastic

Hope for the best!
Be prepared for the worst!
...and take what comes! :D

Hehe - a new version of IFOEDIT is to come and it will solve most of these problems!

Greetz
Steff

Kenwood
3rd November 2002, 14:34
Hello Steff,

Sorry for the late reply but had to be sure.
Already transcoded Basic Instinct, Ocean's Eleven, Black Hawk Down, We Where Soldiers, The Mummy Returns, U571, Deep Impact, Red Corner, Mission To Mars, First Knight, Cast Away, Speed etc. and they all work great -> NO choppy audio or video.
I used the method described above, but changed 1 option -> Very High (Slowest) to Motion Picture Search (Fast).
Very good results and fine quality and reduced transcoding to aprrox. 4 hrs.
The only thing to look out for is wheter the source is Interlaced or NON-Interlaced (Progressive) and accordingly change the encode/source mode to Interlaced or NON-Interlaced.
Still there are some movies who have artifacts even on the original and you will see them back in the transcoded version.
Needless to say: I'am as happy as a clamp !
Regarding DVD2AVI dectection Interlance/NON-Interlace: The intrologo is most of the times interlaced, but if you open (for example) VTS_01_04.VOB in DVD2AVI and press F5 you will see that it say's Pal Progressive.
This was the case with Oceans Eleven.
Best greetz and regards,

Kenwood

Jinxed
4th November 2002, 16:02
Regarding:
- Now press the 'Advanced' tab and make the following settings:
-- Video source type: Non interlace (progressive) - This you got from DVD2AVI and wrote down.
-- Field oreder: Bottom field first (field B)
-- Source aspect ratio: 16:9 625 line (PAL)
-- Video arrange Method: Full screen (keep aspect ratio)

I have found that selecting 16:9 625 line (PAL) as the source aspect ratio together with Full screen (keep aspect ratio) results usually in black bars at the right and left of the m2v file.

Also, as a result of this, the picture quality of the the output m2v is slightly less crisp than the original. I am experimenting with this but it seems that the keep aspect ratio setting may screw things up.

Doing a file Preview before encoding shows you what the final file will look like. What you want is a full screen image (assuming that the top and bottom bars were not in the original VOBs) with no bars on either side. The resultant picture quality will be better, as each pixel should in theory be matched in source and output files.

Have you had this at all?

Does anyone know what the best settings are for picture quality?

crow
4th November 2002, 18:16
-- Field order: top field first (field A)
-- Source aspect ratio: 16:9 525 line (NTSC)
-- Video arrange Method: Full screen (keep aspect ratio)

Forcing the picture type, in my case has produced terrible results.

GOP Structure (header sequencer) should be set to 1 & locked,
the rest should be standard.

The .M2V file that TMPGEnc produce can be Remuxed with the .AC3, easily using Authoring feature in IfoEdit .940............!

Kenwood
5th November 2002, 16:11
Hello Jinxed and Crow,

Thanks for the reply (both of you).
To Crow, probably you have NTSC as standard, do the options as you discribed above also apply for PAL ?
And can you give me then the settings for PAL in the following TAB's in TMPGEnc:
- Video
- Advanced
- Gop Structure
Still a bit swimming here at this moment and there are many articles how to set all the options in TMPGEnc.
So, a little help with this would be very usefull, even with the help of some screenshots if possible ???
Big thank to you both for the input to make this working 100% and I'am open for suggestions.
To bad that there is not a complete settings manual for PAL and NTSC !
I can also modify my 'manual' above by the info you guys give so that other members can profit from it !
Also read on VCDHELP forum that importing a Template in GOP Structure causes the video/audio to shake at the end.
You can read it here. (http://www.vcdhelp.com/forum/userguides/119019.php)
Give you all my best regards and greetings,

Kenwood

crow
5th November 2002, 21:59
Kenwood you can see my web site for the setting I use..!

See it HERE (http://homepage.mac.com/crow.man)

Kenwood
8th November 2002, 07:33
Hello Crow,

Found your web-site and it looks real cool.
Also found the settings you use for TMPGEnc.
Had no time to print it or write it down cause I had to go to work.
When I checked in this morning 8-11-2002 your site was gone !
Is there anyway you can put it back up again so I can print-out your settings ?
Best greetz and regards,

Kenwood

2COOL
8th November 2002, 07:59
Hi,

Have you checked out using KVCD templates when using TMPGenc? They have templates for downloads for whatever you want to do. I use to do a VCDs and SVCDs. But what I like is that they have a DVD Full D1 template that I always use on my movies. I just input the unforced film d2v or a smartripped m2v into the video source and just change the source aspect ratio and aspect ratio to what your movie is and encode.

I've done disney animations and real-life movies with very good results.

check it out at www.KVCD.net

Kenwood
8th November 2002, 08:29
Hello 2Cool,

Found it and downloaded it.
This is new for me, never done this.
Loaded the .mcf file but have a few questions for you.
After loading the output is *.mpg, do you change this to Video Only ?
Do you also use CQ (Constand Quality) when encoding or do you change this to VBR with a manual setting ?
This may sound stupid, but this is completely new to me, so I would really aprriciate it if you could give me some more info.
The movies I resize are all PAL.
Thanks for the reply and the help and hope to 'read' from you !;)
Best greetz and regards,

Kenwood

2COOL
8th November 2002, 20:18
Originally posted by Kenwood
Hello 2Cool,

Found it and downloaded it.
This is new for me, never done this.
Loaded the .mcf file but have a few questions for you.
After loading the output is *.mpg, do you change this to Video Only ?
Do you also use CQ (Constand Quality) when encoding or do you change this to VBR with a manual setting ?
This may sound stupid, but this is completely new to me, so I would really aprriciate it if you could give me some more info.
The movies I resize are all PAL.
Thanks for the reply and the help and hope to 'read' from you !;)
Best greetz and regards,

Kenwood

Kenwood,

Though I don't do PAL, the method is still the same.

This is the procedure you will perform:

1. I like to start of on a clean slate so got to File>New Project and press OK to reset.

2. Always load the video source first. Load your .d2v file.

3. Load your PAL template (KDVD-720x576-Full-D1-_PAL_.mcf). The one you downloaded from KVCD.net template page. They were kind enough to give separate template for NSTC and PAL so I hope you got the right one.

4. After the template is loaded, your output file will change to mpg. In streamtype box which is above settings button, select ES (video only). Notice the output will change to m2v.

5. Go to settings>video tab. By default, the aspect ratio is 4:3.

If you movie source is...
...16:9 then set it to 16:9.
...4:3 then set it to 4:3

Select was is best for you. Personally, I don't really need to change the rate control mode to VBR. I leave it the way it is. If I did play with it, I would just click on rate control setting and increase the quality only. These guys at KVCD.net put alot of tweaking hours to get the combination.

6. Go to advanced tab. Select your source aspect ratio. This is what your source d2v file was set at. You should have gotten the info from DVD2AVI.

7. Get out of settings. I leave everything untouched besides what I told you above.

8. Select where your output file will go to. Personally, I output the new m2v to another drive as read and writing on the same drive will take encoding longer.

8. Preview it for confidence.

9. Like what you see. Press start. If you done past TMPGenc encoding, you know how long it takes but at the end its worth it.

If you need to know more about KVCD templates and guides, www.KVCD.net has also has a forum for more advance questions or simple questions.

I hope this wasn't too technical for you. Oh by the way, I'm use DVD2AVI ver 1.76 as the newer version is not that great and still in beta. I use TMPGenc Plus 2.58.

Kenwood
9th November 2002, 18:06
Yo 2Cool,

Big thanks for the explanation !
Not to technical at all.
I also set the picture quality to 100% and only change:
- Diasplay 16:9
- Source: NON-Interlaced
- Output: Pal NON-Interlaced (Profgressive).
Just downloaded DVD2AVI 1.76 bevause I was using 1.77.3 and according to you that's not the best one.
But had no time to do a real test.
First one of my HD (in raid0 - Striping for preformance) died.
New, install XP-Prof etc etc...........
Then yesterday (9-11-200) my Ahtlon XP 2000+ died.
Talking about bad luck, just bought a Athlon 2100+ because the price between 2100+ and 2200+ was to big for my taste.
So, everything is working again......
Gonna test the KDV template with Back To The Future 1 and will let you know the results.
Also got a e-mail from Derrow and he told me that VOBedit is prepared for Multiplexing Multiple titles but Ifoedit not yet.
So can't wait when the next version is released, but still gonna give it a try with the KDV Template.
Best greetz and regards,

Kenwood

P.s. Below the e-mail I received from Derrow (hope he doesn't mind that I post it here):

That's why there will be the possability to multiplex
multiple titles!
This should solve the Warner Bros. productions!
VobEdit is already ready for this. It has the feature
the demux streams by splitting it by Vob-ID.

So with the next IfoEdit release, you will be able to
multiplex this back together as multiple titles :-)

Derrow

crow
9th November 2002, 18:37
@Kenwood

It should be back up now. Sorry about that....!

I really havn't had much time to work on my one stuff lately,
but I'll try to update at least once a week?