Hi,
This is continuation of thread regarding DV from Sony Cam, https://forum.videohelp.com/threads/385652-Capturing-from-Sony-TRV6-best-means-to-retain-quality, but resurfacing here as I have decided to try some conversions with AviSynth.
I have VirtualDub and AviSynth running and have done a trial deinterlace. I have tried 2 scripts;
Script 1
Script 2Code:AviSource("Z:\Video\Captured Video\House.avi") ConvertToYV12(interlaced=true) QTGMC( Preset="Slow" ) SelectEven()
Script 1 throws error "no decompressor"Code:DirectShowSource("Z:\Video\Captured Video\House.avi") ConvertToYV12(interlaced=true) QTGMC( Preset="Slow" ) SelectEven()
Script 2 runs, but not sure if it compromises anything using "DirectShowSource" for AVI files.
DV File
[Attachment 43640 - Click to enlarge]
Result of Script 2
[Attachment 43641 - Click to enlarge]
The file created is nearly 10x size the original DV file, GSpot says 7.4GB is unneeded and is differing aspect ratio.
Any comments on making improvements?
cheers
Geoff
+ Reply to Thread
Results 1 to 30 of 44
-
-
AviSource() requires a VFW decoder for the video compression. So you don't have a VFW DV decoder installed. Try Cedocida.
DirectShowSource() uses direct show decoders. Windows usually comes with a DS DV decoder. The problem with DirectShowSource() is that it may or may not work correctly depending on what reader/splitter, codecs, and other DirectShow filters you may have installed. And it's not guaranteed to be frame accurate. It's probably ok with DV AVI though.
To get smaller files use a compression codec. And either resize the video to a 4:3 frame size. Or use aspect ratio flags in the codec (not all support aspect ratio flags). -
AviSynth always decodes to uncompressed RGB or YUV video (and PCM audio if present). DV is a compressed video format already.
The original purpose of this frameserver was providing access to different video source formats for applications which could only read AVI via VfW. But the scriptable filtering and plugin support increased its versatility.
GSpot is quite outdated in these days; MediaInfo is more flexible and supports more different media formats. But for AVI and quite usual content formats, it's still good enough. -
-
-
I just compared the output from the QTGMC script above to using YADIF and double frame rate in VirtualDub. The resulting 50fps clip from the later process looks better. Am I not comparing apples/apples, does QTGMC path allow the double frame rate option and even better output?
-
QTGMC usually outputs bobbed results (double rate), and uses superior filters to compensate for the field shift and motion related artifacts.
Unfortunately, it is quite an effort to keep all related plugins up to date in versions which fit together (one outdated plugin may result in a lack of quality, depending which features are used). Follow the versions listed in the AviSynth Wiki page about QTGMC. -
Either this, or VirtualDub-FilterMod (with integrated AviSynth source text editor).
AvsPmod even offers an interface for displaying some controls to change function parameters intuitively; but it requires Python. -
WOW a new version of VirtualDub with great additions just released
-
Just as a matter of interest, if there were additional lines after the QTMC and 'Select even' lines that did additional processing, should you have a line telling the script that it's now dealing with progressive video? Or would the deinterlacing usually be the last thing in a script? (Pretty much all my avisynth work is interlaced standard def. and is usually encoded as interlaced DVD compliant mpeg2, so I haven't had much experience deinterlacing.)
-
Some filters support interlaced video but most work better with progressive video. So you usually want to deinterlace early in your script. In general, most filters assume progressive video so there's no special handling required after QTGMC (or another deinterlacer).
-
AviSynth does not know whether a clip is interlaced or not. There is no "IsInterlaced" property of a clip variable. You are responsible for chaining filters in a sequence so that you don't ruin the content of fields, in case they contain material of different timestamps.
One example of important attention is upsampling chrominance from 4:2:0 to 4:2:2 or 4:4:4, where the conversion needs to know if chrominance values of line pairs are shared vertically with the next frame line or the next field line (here the conversion functions have an "interlaced" parameter). Another issue is vertical resizing, where you have to know whether you first separate the fields (resample functions do not offer an "interlaced" parameter). Any filter comparing pixels in vertical direction may have undesired side effects when processing a combed frame, in contrast to separate fields; even more so when there is also a temporal filter component; noise filters are one more prominent class of filters which may work better with separated fields when you are sure that the material is regularly interlaced. -
Of course! For some reason I've always just assumed that the 'interlaced=true' part of the 'ConvertToYV12(interlaced=true)' command was a flag for the rest of the script rather than just for that conversion . . . D'OH! Thanks for the info and my rather embarrassing 'light bulb' moment.
-
I think I am still not successfully using QTGMC.
Current Script
Code:AviSource("Z:\Video\Captured Video\HouseSmall.avi") AssumeBFF QTGMC( Preset="Slower")
Attached same frames exported to 100% JPG from VDub
First image from QTGMC trial, second is DI filter built into VDub
I have checked my plugins as suggested and they all appear to be latest version.
Any suggestions what to check/try next? -
Upload a sample of your source (not reencoded) and a QTGMC deinterlaced video from that source.
-
And most of all, select a scene with a pan, not a still. The quality of a motion compensating deinterlacer is revealed best when there is motion at all.
The second shot shows more crispness, but I am suspicious about the reason, the brightness needs to be compared with the original. Also you can see at the airplane wings that some aliasing is left. -
OK
Cut very short clip from source DV, then applied the QTGMC process, see attached.
cheers
Geoff -
Just as a comparison this is frame 20 from the QTGMC clip and the VirtualDub Yadif double frame rate process.
Last edited by GeoffWA; 10th Nov 2017 at 05:31.
-
You're Yadif image is pretty much the same as I get, showing it's typical bad pixels here and there. But there's definitely something wrong with your QTGMC image. Here's what I get for frame 20:
Results of AviSource() may vary depending on which VFW DV decoder you have installed. VirtualDub may not be using the same DV decoder. Try replacing QTGMC in your script with Bob(). Do you get this at frame 20?
-
Notice: jagabo is using PNGs to reference, not JPEGs.
Scott -
Yeah, but the difference between JPG at Q100 and PNG is not large. Much smaller than the difference between his Yadif and QTGMC images.
-
And besides, for most accurate analysis of an original frame, PNG is lossless and avoids any lossy compression artifacts of JPG, even at JPG 100.
- My sister Ann's brother -
There is compression in png from 0-9. On picture 1600x1200 180ppi it varies from 5,50 MB to 3,21 MB. There is also other option in png. Actually default compression i saw is 6. But there is not reason do not use max 9.
And first picture has 96ppi your only 72ppi
Bernix -
I forgot to turn on compression when I saved the image. Your image is very similar to mine. So AVI decompression isn't the problem, it's something in QTGMC. That makes it hard to track down. About all I can recommend is trying different versions of the different filters it uses.
-
Ill try a clean install, I should stay with 32bit(x86) right?
Similar Threads
-
Some Queries about M Disc & BD Structure
By Gurd99 in forum MediaReplies: 4Last Post: 25th Aug 2015, 16:03 -
Queries on HEVC encoding and decoding errors
By ironurn in forum Video ConversionReplies: 1Last Post: 16th Jul 2015, 02:34 -
avisynth - How to write avisynth script for rgba overlay
By moelover in forum EditingReplies: 3Last Post: 13th Apr 2014, 12:24 -
HDMI connection and output resolution queries
By Johnbhideo in forum Newbie / General discussionsReplies: 5Last Post: 18th Apr 2013, 07:23 -
NOOB: Need help!
By surferadi96 in forum Blu-ray RippingReplies: 3Last Post: 12th Jan 2013, 03:57