In the past I have successfully used Avisynth with the MVTools plugin to interpolate frames for my old 8mm-derived videos with low frame rate. Those were regular DV-encoded AVIs with 24bit color. Just for reference, here is the code for that .avs file.
My problem is that now I am trying to process some black and white footage that I saved as "Y8" (Luminance only) AVIs from VirtualDub and now I can't use them in the above code. (I saved that way to not waste hard drive space, since I only need 8bits per pixel for b&w).Code:AVISource("c:\test.avi") # or MPEG2Source, DirectShowSource, some previous filter, etc # assume progressive PAL 25 fps or NTSC Film 23.976 source super = MSuper(pel=2) backward_vec = MAnalyse(super, overlap=4, isb = true, search=3) # Use block overlap, halfpixel accuracy and Exhaustive search forward_vec = MAnalyse(super, overlap=4, isb = false, search=3) MFlowFps(super, backward_vec, forward_vec, num=2*FramerateNumerator(last), \ den=FramerateDenominator(last))
So, if I try pulling the above .avs with Y8 AVI into VirtualDub, I get:
---------------------------
VirtualDub Error
---------------------------
Avisynth open failure:
AVISource: couldn't locate a decompressor for fourcc DIB
(C:\PRODUCTS\test.avs, line 1)
---------------------------
OK
---------------------------
If I change AVISource function to DirectShowSource, I get this error:
I did read up on MVTools and found out that those frame interp functions require "YV12" or "YUY2" as input. I honestly don't know what that stuff means - obviously, something to do with how the video data is encoded.---------------------------
VirtualDub Error
---------------------------
Avisynth open failure:
DirectShowSource: RenderFile, the filter graph manager won't talk to me
(C:\PRODUCTS\test.avs, line 1)
---------------------------
OK
---------------------------
I am wondering if I can somehow convert my Y8 videos to YV12 or YUY2 on the fly to get those functions to work, because I really don't want to re-save those files as 24-bit - 3 times the size that gives me no new color information.
Appreciate any help from AviSynth masters
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 7 of 7
Thread
-
-
Try using the 2.6.0 alpha version of Avisynth, which supports Y8.
http://forum.doom9.org/showthread.php?t=149113
You can then use ConvertToYV12() in your script before calling MVTools functions.
However, you might still not be able to open the source file unless you have an appropriate codec (VfW for AviSource, DirectShow for DirectShowSource) installed. -
-
Gavino:
I went to the link you suggested and installed
AviSynth_090927.exe
(looks like last years version?)
It installed itself into my Avisynth 2.5 program files folder.
I then added ConvertoToYV12 call as you said and tried pulling that avs file into VirtualDub.
This is the error - not sure what it means:
---------------------------
VirtualDub Error
---------------------------
Avisynth open failure:
Evaluate: System exception - Access Violation
(C:\PRODUCTS\test.avs, line 2)
---------------------------
OK
---------------------------
Pandy:
I am not sure what you mean - also, I am not very well-versed in AviSynth scripting.
I don't have ffmpeg and haven't used it in the past. FFDshow I do have and I wasn't clear what I should change - something its video encoder configuration window (Decoder Tab)? I don't know what DS is. (If I choose VfW in the STart/Program menu, I get the above-mentioned video encoder config.)
So, how do I convert Y8 to YV12?
Can you please give me exact code to put inside my code above?
Thanks for your suggestions. -
http://forum.doom9.org/showthread.php?t=127037
To convert Y8 in ffdshow to the YV12 simply force YV12 at the output of the ffdshow, DS means Direct Show, ffdshow consist form 4 part Audio decoder, Video decoder (Direct Show), VfW decoder additionally there is also DXVA decoder but not very usefull for You now.
FFDShow, VfW configuration, Decoder Tab (there is also Encoder Tab), Codecs, last position on list Raw Video -> All YUV -
Thanks, I'll try that too. Luckily, I seem to have at least one solution to this already.
Similar Threads
-
Motion Interpolation (VidFIRE) Software?
By goodiesguy in forum Video ConversionReplies: 41Last Post: 5th Mar 2016, 18:43 -
MVtools/MVtools 2 frame doubling problem
By Gnodab03 in forum Software PlayingReplies: 2Last Post: 3rd May 2011, 05:14 -
Videos Play In FF when trying to do motion interpolation
By ndawg101 in forum Software PlayingReplies: 5Last Post: 10th Apr 2011, 05:28 -
MVTools & AVISynth script question with FFDShow
By Gnodab03 in forum Software PlayingReplies: 7Last Post: 8th Jan 2010, 20:05 -
Motion Blur/Bad Quality when capturing uncompressed
By Ezekiel 4:12 in forum CapturingReplies: 4Last Post: 15th Jul 2007, 02:44