Log in

View Full Version : Avisynth + MeGUI 1080p to 720p 4:2:2 10bit


Teki
14th May 2014, 19:44
Hello :)

I have some anime series with a lot of red color in 1080p, some are 10bit. I want to re-encode them to 720p in 4:2:2 10bit. In other encodes i used dfttest() (http://forum.doom9.org/showthread.php?t=132194) and aSharp() (http://forum.doom9.org/showthread.php?t=38436). aSharp work only on YV12 luma. dfttest is very slow, but i like them both ;) (maybe you have something different, which works better)
My AviSynth script is very simple.
LoadPlugin("asharp.dll")
LoadPlugin("dfttest.dll")
<input>
dfttest(sigma=24)
ConvertToYV12()
aSharp(1,2,-1)
Lanczos4Resize(1280,720)


I searched in internet a lot, and found this
FFVideoSource(input.mkv,fpsnum=60000,fpsden=1001)

#Convert to Stack16 for processing
Dither_convert_8_to_16()

#Convert to 4:2:2 (if interlaced, SeperateFields and Weave must be used)
#SeparateFields()
w = Width()/2
h = Height()/2
u = UToY8().Dither_resize16(w, h, kernel="spline36", src_left=0, u=1, v=1)
v = VToY8().Dither_resize16(w, h, kernel="spline36", src_left=0, u=1, v=1)
YToUV(u, v, last)
#Weave()

#Convert to 10-bit and output
Dither_quantize(10,reducerange=true)
Dither_out()


#Example command to save as v210 MOV for BM Shuttle playback
#avs2yuv -raw -csp I422 output.avs - | ffmpeg -y -f rawvideo -pix_fmt yuv422p10le -s widthxheight -r framerate -i - -c:v v210 output.mov


#For testing only (8-bit output)
#DitherPost()

How to "integrate" this script with my and use in MeGUI to got what i want?

(sorry if my english is bad)

Guest
14th May 2014, 19:56
I have some anime series with a lot of red color in 1080p, some are 10bit. Where did you get these animes?

Teki
14th May 2014, 21:43
Where did you get these animes?
[link removed] ;)
Every sunrise, sunset and every red/orange/purple/pink haired character looks ugly. Edges near red are blocky.
For example TTGL pic (http://s30.postimg.org/r08lz5nqn/Rein_Force_Tengen_Toppa_Gurren_Lagann_04_BDR.png) (Kamina's eyes, Simon's glasses, Yoko's bikini)
This one looks terrible pic (http://zapodaj.net/images/0e792befcc8fc.png) and pic (http://s28.postimg.org/yfwfs9m7v/Zero_Raws_No_Game_No_Life_02_KBS_1280x720_x.png) pic (http://s28.postimg.org/4mpfjnxkr/Zero_Raws_No_Game_No_Life_02_KBS_1280x720_x.png) pic (http://s28.postimg.org/pi74h64e3/Zero_Raws_No_Game_No_Life_02_KBS_1280x720_x.png) pic (http://s28.postimg.org/5z2j7t5mj/Zero_Raws_No_Game_No_Life_02_KBS_1280x720_x.png) (720p DHTV)
HOTD this one looks ugly pic (http://s30.postimg.org/lw9kt4p67/High_School_of_the_Dead_02_BDrip_1920x1080_x264.png) but this one is from the same file and looks normal pic (http://s30.postimg.org/ujms752zz/High_School_of_the_Dead_02_BDrip_1920x1080_x264.png)

Groucho2004
14th May 2014, 21:51
nyaa.se
Have a look at the forum rules, particularly #6. :rolleyes: