How to encode
Home › Forums › Home Theater Computers › How to encode
- This topic has 0 replies, 1 voice, and was last updated 17 years, 2 months ago by Jeremy Duncan.
-
AuthorPosts
-
October 2, 2007 at 9:42 am #23041
How to get NTSC Telecine (a.k.a. 3:2 Pulldown) dvd to 23.976 fps movie.
What is 3:2 pulldown? [url=http://neuron2.net/LVG/telecining1.html]http://neuron2.net/LVG/telecining1.html[/url]Software used:
[url=http://www.dvdfab.com/mlink/download.php?g=DVDFAB5]dvd fab free[/url]
[url=http://neuron2.net/dgmpgdec/dgmpgdec154.zip]dgmpgdec[/url]
[url=http://www.bitburners.com/software/hc-encoder-v023/4036/]hc enc[/url]
[url=http://www.videohelp.com/download/tsMuxeR_1.8.35b.zip]tsmuxer[/url]
[url=http://downloads.sourceforge.net/avisynth2/Avisynth_258.exe?use_mirror=voxel]Avisynth[/url]
[url=http://nicaudio.codeplex.com/]NicAudio[/url]
[url=http://downloads.sourceforge.net/guliverkli/vsfilter_20051125.7z?use_mirror=hivelocity]vsfilter[/url][url=http://www.megaupload.com/?d=SBQ1ARN7]sw package[/url]
Step 1.) Rip movie.
I use dvdfabdecrypter.Step 2.) Make d2v file.
I use DGIndex.Step 3.) Make AVS file.
I use Notepad.Step 4.) Encode.
I use HCEnc.Step 5.) Mux Audio.
I use ImagoMPEG-Muxer.[url=http://www.imagebam.com/image/08edbb33387478][img width=180 height=58]http://thumbnails18.imagebam.com/3339/08edbb33387478.gif[/img][/url]
[url=http://www.imagebam.com/image/a1d16f33387479][img width=180 height=45]http://thumbnails16.imagebam.com/3339/a1d16f33387479.gif[/img][/url]
[url=http://www.imagebam.com/image/c64fbc33387480][img width=180 height=50]http://thumbnails16.imagebam.com/3339/c64fbc33387480.gif[/img][/url]
[url=http://www.imagebam.com/image/1f0af433387481][img width=180 height=45]http://thumbnails3.imagebam.com/3339/1f0af433387481.gif[/img][/url]
[url=http://www.imagebam.com/image/10de6333536849][img width=178 height=180]http://thumbnails6.imagebam.com/3354/10de6333536849.gif[/img][/url]
[b]_______________________________________________________________[/b]
1.) Rip your movie using dvd fab free. Here is how:
a.) Put your movie in the pc disk tray and close it, then open dvd fab free.
Press the tab called “Start dvdfab hd decrypter”.b.) On the list to the left select the one called “Main Movie”.
Uncheck all the languages but 1. I choose ac3 english.
I uncheck the subpicture also.
Press the next buttonc.) The quality is one dvd9 100% quality.
Press start and it rips it for you.[b]_______________________________________________________________[/b]
2.) Now using dgmpgdec
It is different software than dvd fab free.
With it we will make the movie 23.976 fps. Here is how:a.) From the unzipped dgmpgdec folder there is a dgdecode.dll folder.
Put this dll in the avisynth plugins folder with seesaw and lsf and the other plugins.b.) Double click the dgindex icon to open dgindex.
c.) File tab, open, dvdfab folder, Main movie, video ts.
Click number 1, then press add and get 2 and so on in numerical order till you got them all then press ok.d.) DGIndex
Videotab, idct algorithm, sse2
videotab, field operation, force film. This is what makes the film 23.976 :D.
videotab, yuv->rgb, tv scalee.) click the file tab, Save project and demux video, Name the save “encode project” (no quotes).
Save it to desktop.If you did it right the information tab will say this. Not exactly though. it varies movie to movie:
Stream type: mpeg2
profile: main@main
Frame size: 720×480
Display size: 720×480
Aspect ratio: 16:9 [3]
Frame Rate: 23.976024 fps
Video type: Film 100.00%
Sequence: Field/Frame
Frame Struc: Frame
Frame type: Progressive
Coding type: I
Colorimetry: smpte 170m
coded: 165902
Playback#: 2
Frame rpts: 0
Field rpts: 0
Vob cell ID: 2, 1[b]_______________________________________________________________[/b]
3.) Encode the d2v to mpeg2 at 23.976 fps
For this we will use hc enc gui.
First, we will need to make a .avs file for hc enc to work with.a.) make the avs file.
First you need to open notepad and copy and paste this into it:LoadPlugin(“C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll”)
mpeg2Source(“C:\Documents and Settings\Home\Desktop\encode project.d2v”)
LanczosResize(848,480)
converttoyv12()
b.) Save the notepad file to desktop and name it encode project.
c.) Change the file extension on the file you just made from txt to avs.
Start, control panel, folder options, view, uncheck “Hide extensions”.
On the notepad file you saved to desktop it will say “encode project.txt”
Delete “txt” and replace it with “avs”.The avs file is directing to the d2v and ac3 on my pc. You will need to right click the d2v on your desktop and find your location and replace my location with your location.
d.) Open hc enc
Input: Open the d2v you made with dgindex
Output: where you will save the file
Log: where you will save the log
Average bitrate: Average 9000, Maximum 9000
Profile: best
Aspect ratio: 16:9, or 4:3 depending on what your movie is.
smp checked
scene change checked
autogop not checked
dc prec 10settings 1 tab
Progressive
gop length, b frame: 12, 2settings 2 tab
vbr bias 100
vbv checked
write seq endcode checkedClick the Encode tab and wait for it to encode you movie to 23.976 fps mpeg2.
[b]_______________________________________________________________[/b]
4.) Add the audio into the file hc enc made using tsmuxer
a.) select add: This would be the m2v you made with hc enc
b.) select add again: This would be the ac3 made with dgindex.
c.) Click the ac3 audio and set the delay shown in the ac3 file name. Example -255
d.) Select output path. Where you will save the file
e.) I save as ts muxing
f.) Click start muxing and it is made and you are done.
Now you have a 23.976 fps video.[b]_______________________________________________________________[/b]
ffdshow: framerate doubler (ntsc 60hz monitor compatible).
Codecs tab
Set Mpeg2 to Libmpeg2, and check “DVD decoding”.
Set Avisynth to Avisynth, Raw video to All supportedSubtitles tab, Unchecked
Uncheck “Decode closed captions”
Uncheck “Accept embedded subs”
Uncheck “Accept SSA, ASS, ASS2 Subtitle (experimental)
Vobsub subpage, uncheck Vobsub Enable.Avisynth tab checked
YV12 checked,
Add FFdshow Video source checked,
3:2 Pulldown box: Ignore Pulldown checked,
check Buffer back/Ahead: 10, 10super = MSuper(pel=2,hpad=8,vpad=8)
backward_vec = MAnalyse(super,chroma=false, blksize=16, overlap=4, isb = true, search=5, searchparam=1)
forward_vec = MAnalyse(super, chroma=false, blksize=16, overlap=4, isb = false, search=5, searchparam=1)
MFlowFps(super, backward_vec, forward_vec, num=5994, den=125, mask=0, ml=49)Resize & aspect tab checked
Multiply by:
1.844 (for 1280×720 16:9 aspect ratio)
2.729 (for 1920×1080 16:9 aspect ratio)
Process Pixel aspect ratio internally checked
No aspect ratio correction checked
spline
Luma Sharpen: 0.00
Accurate rounding checkedQueue & Output tab
Queue output samples unchecked
Very unstable. May cause player to crash.
No box is checked.Output tab
rgb32 checked
high quality yv12 to rgb conversion checkedrgb conversion tab
ycbcr: itu-bt 601
contrast: standard
Output levels: Tv/Projector[b]_______________________________________________________________[/b]
Subtitles
a.) Starting from step 3(b) from above.
You add this as your avs file instead of the other one:LoadPlugin(“C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll”)
LoadPlugin(“C:\Program Files\AviSynth 2.5\plugins\VSFilter.dll”)
LoadPlugin(“C:\Program Files\AviSynth 2.5\plugins\nicaudio.dll”)video=mpeg2Source(“C:\Documents and Settings\Home\Desktop\3.d2v”)
audio=NicAC3Source(“C:\Documents and Settings\Home\Desktop\3 T80 3_2ch 448Kbps DELAY 0ms.ac3”)
AudioDub(video,audio)
textsub(“C:\Documents and Settings\Home\Desktop\srt file.srt”)LanczosResize(848,480)
converttoyv12()
b.) Now you need to make a .srt file. You will use the program called “SubRip”.
Open subrip, if you already saved the previous character matrix then open that from the character matrix tab.
click file, open vobs, open ifo. Go to the folder you ripped the movie too and open the VTS_01_0.BUP file. Click start.
You will see a blue colored letter. The subrip program does not know what letter this is and needs you to type what letter it is.
Once you have typed what letter it is press the ok button and the next letter.
This is why it’s important to save the character matrix, so it’s easier each time and less blue letters to fix.When you are done, click the subtiles file tab and click save as. Save the srt where you want.
In the subrip window, click character matrix and save character matrix file.Put the vsfilter.dll, nicaudio.dll into the avisynth plugins folder.
Now from the guide carry on to step 3 (d).
[b]_______________________________________________________________[/b]
Notes.
For pal everything is the same but the ffdshow avisynth den and num parameters.
For pal den is 1, num is 50.If you add subtitles you can’t turn them off. They’re burned in.
The final project size with audio is a bit over 4 GB.
You will get tearing with the frame doubler, but it is not bad as realtime. very good quality, very little tearing.
To get rid of the tearing you will need to delete the mt from the ffdshow avisynth code: mt(“”” “””,2)Reclock will tell you you need to set your monitor refresh rate to a multiple of 23.976, 48Hz or 72 Hz.
If you have a 60Hz monitor the reclock will stay yellow with the 23.976 video.There is no chapters. it’s all one big file that can be skipped through by clicking the skip bar with your mouse.
Even though it’s 23.976 fps and my monitor is 60hz there is really no skipping or jerkiness. 48Hz is ok as well.
Of course the video is meant for 48Hz monitor not 60Hz, so 48Hz would be better quality.To play the video just double click it. Pause is the same as from a dvd.
The video even at 23.976 looks a lot better than it does at 29.97 fps. I dunno why, but that’s ok with me. 🙂
The file plays ok with powerdvd ultra 7.3 and windows media player 10.
media player classic has “Touch window from inside”.
Right click the movie and choose “video frame”, then “Touch window from inside”.[b]_______________________________________________________________[/b]
Avs files for differnt file types
Entirely 4:3 Sources.
[b]NTSC.)[/b]
LoadPlugin(“C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll”)
mpeg2Source(“C:\Documents and Settings\Home\Desktop\encode project.d2v”)
Crop(8,0,-8,-0)
LanczosResize(640,480)converttoyv12()
[b]PAL.)[/b]
LoadPlugin(“C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll”)
mpeg2Source(“C:\Documents and Settings\Home\Desktop\encode project.d2v”)
Crop(8,0,-8,-0)
LanczosResize(768,576)converttoyv12()
Entirely 16:9 Anamorphic Sources
[b]NTSC.)[/b]
LoadPlugin(“C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll”)
mpeg2Source(“C:\Documents and Settings\Home\Desktop\encode project.d2v”)
LanczosResize(848,480)
converttoyv12()
[b]PAL.)[/b]
LoadPlugin(“C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll”)
mpeg2Source(“C:\Documents and Settings\Home\Desktop\encode project.d2v”)
LanczosResize(1024,576)
converttoyv12()
-
AuthorPosts
- You must be logged in to reply to this topic.