Category Archives: Avisynth

So… I Started Reencoding Some Stuff From DVD…


I decided I wanted to get better at using avisynth, so what better way than reencoding DVDs?

In my humble opinion, some aspects of encoding HD can be much easier, including making things in BD or AVCHD spec.
Compressing from DVD can be a bit tricky, especially with NTSC DVDs and hard telecine (or PAL DVDs from NTSC-sourced telecine masters, with some more pull-down and field blending thrown in for good fun). Then there is the issue of Storage Aspect Ratio vs Display Aspect Ratio, and ITU and Non-ITU encoding; No sir, so square pixels here, it’s all a mess.

I have been kind of helpless at IVTC, so I decided to get better at this. I decided to just start encoding from something I was currently watching, which I knew was hard telecined: The Third: The Girl With The Blue Eye. I am using the R1 source, but the R2J is also hard telecine, it does however suffer from less compression (blocking), has more detail, better bitrate which likely looks better in motion, too. I may try to get the R2J DVDs of The Third: The Girl With The Blue Eye. I would only think of re-encoding from these if I *first* make custom ISOs with the English Dub Stereo and 5.1 added and Custom Subs, since I prefer untouched media or custom (DVD/BD) media most.


Screens (taken at SAR in MPC-HC, they will be resized by player since it is anamorphic; I don’t have vlc installed on my fresh install yet for DAR shots).
Links to galleries:


8 BIT ENCODE (23.976 fps)

image host image host image host image host image host

10 BIT ENCODE (23.976 fps)

image host image host image host image host image host

R1 DVD SOURCE (@29.97 fps hard telecine)

image host image host image host image host image host

E-D ENCODE (8 bit @29.97 fps)

image host image host image host image host image host

Any one wanting to help me on encoding tips is welcome to give suggestions. I am not shooting to make tiny files, rather get close to transparency and only fix issues like banding or aliasing or smoothing blocking without ruining other details (or cases where chroma or luma, etc is off, adjust that). I hate grain removal and detail smudging and EE and oversharpened video.
Tips on ditering and debanding would be helpful for this series.

here is the basic avs script I used:

DGDecode_mpeg2source(“C:\~\THE THIRD THE GIRL WITH BLUE EYE E04\VTS_07_1 – 0xE0 – Video – MPEG-2 – 720×480 (NTSC) – 16~9 – Letterboxed.d2v”, info=3)
ColorMatrix(hints=true, threads=0)
Crop(4, 0, -4, -0)

here is a sample of the video portion of mediainfo from the 8 bit x264 encode (settings in 10 bit are pretty much identical).
Basically it was done at crf 14 animation placebo / WS NTSC ITU
or in cli:
program –preset placebo –tune animation –crf 14 –sar 40:33 –output “output” “input” :

ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.0
Format settings, CABAC : Yes
Format settings, ReFrames : 16 frames
Muxing mode : Header stripping
Duration : 25mn 17s
Bit rate : 1 268 Kbps
Width : 712 pixels
Height : 480 pixels
Display aspect ratio : 16:9
Original display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.155
Stream size : 229 MiB (59%)
Title : 8 bit x264 encode – R1 Video Source
Writing library : x264 core 129 r2230 1cffe9f
Encoding settings : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=tesa / subme=11 / psy=1 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=16 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=14.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
Default : Yes
Forced : No