Captured (from TV) movie or DivX to DVD
I have a lot of movies captured from TV in the last five years. It's a good idea to backup them and to make them playable
on standalone DVD player... This simple guide explain how to do it with a FREE software.
You need:
- Avisynth 2.5.5 or newer - install in in Avisynth, NOT Avisynth 2.5 as Installer suggest... (plug-ins don't be auto loaded)
- Filters (Plugins for Avisynth): Blockbuster, Undot, Asharp, Unfilter, Avsmon25,VSfilter - unzip them in Avisynth\Plugin directory.
- VirtualDub 1.5.1 or newer
- QuEnc 0.51 or newer (Nic's great MPEG2 Avisynth to Video encoder)
- Ympeg codec from Yusuf Motiwala for audio (MP2)
- PullDownBatchFE for NTSC
- Srt2sup a4.2
- ImgClassic 0.92
- DVD decrypter 3.2.2
1. Preparing DivX source:
Open movie with VirtualDub. Set Video --> Direct stream copy, Audio to Full PProcessing mode.
In Audio set Interleaving to 0 ms Preload, Interleave audio every 500 ms.
In Audio set Compression to PCM (uncompressed), adjust Volume to 200-400% if the sound level was low (usually it is).
If you plan to burn as SVCD on CD not as DVD go to conversion and set Sample rate to 44100 Hz, Stereo, 16 bit, high quality;
for DVD set Sample Rate to 48000 Hz stereo, 16 bit, high quality.
Goto File --> Save as Avi. Save it in new folder named DivX somewhere ( let's say C:\Divx\Movie_1.avi).
If your movie was on two CD's (two parts), after VDub has finished, just File --> Close Movie_1, and open the second part.
This way you leave all settings from previous job unchanged. Save it as the Movie_2 in the same folder (directory) as part one.
-- NOTE: Your DivX movie must be error free. If it's not, you must recompress Video stream with Virtual Dub.
For Video choose Fast recompress, Compression --> Divx 5.x (newer) and Configure it to 1-pass quality based, Quantizier 4,
Max keyframe interval 250. Leave the rest unchecked.
Audio settings are same as previous. Save it.
2.Avisynth.
With Notepad write new text file (Avisynt script):
------------------------You can cut and paste from here-----------------------
AviSource("C:\DivX\movie_1.avi")
# For two movie parts
#AviSource("C:\DivX\movie_1.avi" ++ "C:\DivX\movie_2.avi")
# Most of the DivX movies have strange frame rates (23.981). Adjusting...
put 25 for PAL, 23.976 for NTSC Film
AssumeFPS(25,true)
#Change in 44100 for SVCD
ResampleAudio(48000)
# With second and fourth number you control Aspect Ratio. Safe is 4:3 letterboxed (with black bars)
AddBorders(0,96,0,96)
# Subtitles will be coded in Video, get them on www, adjust frame rate to 25 fps or 23.976, join them
# with Subtitle WorkShop. Omit this
line if you want to choose them on DVD (or you don't need them):
TextSub("C:\DivX\movie_1_2.srt")
#For NTSC instead 576 put 480 and make smaller borders before
LanczosResize(720,576)
ConvertToYV12()
Blockbuster(method="noise",detail_min=1,detail_max=10,variance=0.5,seed=5823)
undot()
asharp(1, 4)
#DivX movies are usually - pale, so
we add a little colors (with 1.4)
Tweak(1,1.4,1,1)
#To verify the picture during encoding, do not leave him show video all the time, just a peek...
MonitorFilter()
----------------------------To here-------------------------------------
Save it as Movie.avs beside the movie file(s).
--NOTE: It's much better to install new DivX (5.x Pro versions) and to eliminate heavy filtering in the script.
But you must do it manualy: ... Win98: - Open System.ini. Change the lines vidc.DIV3=divx.dll and vidc.DIV4=divx.dll
NT/2000/XP: Run --> Regedit --> Find: Drivers32. Change keys as above (Key=Value).
It's smart to ad in both cases: vidc.YV12=divx.dll to ensure compatibility with Avisynth 2.5.x
If you have new DivX, he allready decompress the movie when you watch it with media player, but thru DirectShow (® MS).
After such modification you can replace the Blockbuster and Asharp lines from the script (heavy and slow filters) with line
Unfilter(64,64).
3. Audio
Open Movie.avs with VirtualDub. Verify everything and maybe adjust something.
Go to Video --> Compression, choose YMPEG --> Settings. Only thing you need is Output Filename on the bottom right,
navigate in your DivX folder and write in the name - movie, hit save, and twice OK.
Go to Audio, mark Full processing
mode, Compression, choose YMPEG audio: 48000/stereo.
Go to File --> Save Wav. This will be so called dummy file, so name it as you wish. Your real audio file is already
named in Video (somewhat strange, but this is great and FREE!). It will be encoded as Movie.mpa in C:\DivX. Save...
4. Video.
Remove or Comment (put # on beginning) the Resample line in Movie.avs... Audio is encoded and we do not need it anymore.
Start QuEnc. Source is your Movie.avs. Check MPEG-2, VBR, Bit rate set to 4800, check High quality, Trellis, click on
Advanced... GOP Size set to 12, Max B-frames set to 2, Max Bit rate to 9800, DC precision to 8, mark Scene detection,
set Aspect Ratio to 4:3, check interlaced encoding if you need NTSC. Click Apply...
Click Encode..... ( 6 - 10 hours, unless you have newest 6.4 GHz dual-processor PC with 3.2 GHz bus...).
If you have NTSC video stream (Film) after encoding start PullDownBatchFE.exe. On options mark 4:3 aspect ratio.
Press Save, navigate to your Movie.m2v. Click on process...
5. Subtitles for integration in DVD streams:
Start Srt2sup. Open your Srt subtitle as text. If you have second part, AND if you are lucky, they are already in needed Timing
(frames per second). Append it as text, but you must write in the box exact duration of the 1. part.
If they need retiming, join them and the change fps to your needs in Subtitle Workshop BEFORE...
OK, mark All, click on Alter Subtitle Layout. Click on Global, choose Gray for background, mark transparent, choose
black for outline, white for text, Silver for AntiAlias. X1 let be 360, Y1 500 for PAL, 400 for NTSC; Target width 560, Outline 4, mark RLL
encoding, mark Auto Wrap, alignment Vertical - Bottom, Horizontal - Center, Justify Left, Markers inverse. Choose Target format, PAL or NTSC.
Click on Global Font and choose the Font Size (20) and encoding apropriate to your country and input subtitles. Hit Ok, hit Close.
ALL subtitle lines MUST be marked!!! (Did you press All button?)
Go to SUP File, Save. Choose the name, maybe movie.sup... Wait...... After Srt2sup have finished, write down the outputted Hex numbers for
text colors. IFO edit needs them...
6. DVD Authoring:
Start IFOedit. Press DVD Author --> Author new DVD. As video stream choose your Movie.m2v (or Movie_pd.m2v if you have applied Pulldown),
as audio Movie.mpa, mark the track, on left side choose the language. Subtitles... Choose the language for them too. Choose Destination
(there will be your DVD structure). Press OK. Muxing... updating... Be patient.
After that, in the upper window appears VIDEO_TS.IFO and VTS_01_0.IFO.
And now, WRITE IN font colors in the newly created VTS_01_0.IFO.
Click on + mark beside VTS_01_0.IFO. Click on + mark beside VTS_PGCITI. Click on VTS_PGC_1.
Scroll in the bottom window and find the lines Color.
Double click on Color 0. Small Hex editor opens. Instead of 00 00 00 write 7d 80 80,
10 80 80, OK, in Color 1 10 80 80, and in Color 2 eb 80 80, in Color 3 10 80 80 or other hex values that Srt2sup gives you earlier...
Click on Save, Yes, Exit.
Make two new folders beside newly created files, VIDEO_TS and AUDIO_TS (uppercase). Move all new .IFO, .BUP and .VOB files in VIDEO_TS.
AUDIO_TS stays empty.
So, now verify your DVD with your software player...
7. Image writing and burning:
Start DVD decrypter. Change Mode --> Write --> ISO.
Choose Write Speed 1. ONE. EIN. UNO. First. !!! Close program.
TIP: Do not be proud with your high speed writer if ONLY YOU can read the same
disc. And any single scratch is a disaster!
Start ImgTool. On settings find DVD decrypter and mark the burning option. OK. Navigate to your VIDEO_TS. He will make
an ISO image of our DVD and DVD decrypter in Write mode will be started after image creation.
Revision: May, 13. 2004. Back to... Guide List Home
© mailto:d_zeman@yahoo.com.br