Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 14th May 2014, 20:44   #1  |  Link
Teki
Registered User
 
Join Date: Aug 2013
Posts: 2
Avisynth + MeGUI 1080p to 720p 4:2:2 10bit

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() and aSharp(). 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.
Code:
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
Code:
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)
Teki is offline  
Old 14th May 2014, 20:56   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,923
Quote:
Originally Posted by Teki View Post
I have some anime series with a lot of red color in 1080p, some are 10bit.
Where did you get these animes?
Guest is offline  
Old 14th May 2014, 22:43   #3  |  Link
Teki
Registered User
 
Join Date: Aug 2013
Posts: 2
Quote:
Originally Posted by neuron2 View Post
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 (Kamina's eyes, Simon's glasses, Yoko's bikini)
This one looks terrible pic and pic pic pic pic (720p DHTV)
HOTD this one looks ugly pic but this one is from the same file and looks normal pic

Last edited by Guest; 15th May 2014 at 02:17.
Teki is offline  
Old 14th May 2014, 22:51   #4  |  Link
Groucho2004
Fossil
 
Groucho2004's Avatar
 
Join Date: Mar 2006
Location: A wretched hive of scum and villainy
Posts: 4,507
Quote:
Originally Posted by Teki View Post
nyaa.se
Have a look at the forum rules, particularly #6.
Groucho2004 is offline  
Closed Thread

Tags
avisynth, megui, x264, yuy2, yv12

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:10.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2020, vBulletin Solutions Inc.