View Full Version : Convolution3D results in yv12 or yuy2 error
appelmoes
6th November 2003, 00:54
I have a *.avi type-2 from my miniDV.
I have installed the Panasonic DV codec from the links from "bb"
I use this script
AviSource("c:\example.avi")
SeparateFields()
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
DoubleWeave.SelectOdd()
I use AviSynth v2.52 and use
convolution3d.dll for AviSynth 2.5 (http://www.avisynth.org/users/warpenterprises/files/convolution3d_25_dll_20030422.zip) I put this in de plugins dir and when I try to open the script in MediaPlayer I get this error:
convolution3d supports YUY12 color formats only
So, I try somethin else. I use convolution3dyv12 for AviSynth 2.5 (http://www.avisynth.org/users/warpenterprises/files/convolution3dyv12_25_dll_20030329.zip)
I put this is de plugins dir and when I try to open the script in MediaPlayer I get this error:
convolution3d supports YV12 color formats only
when I put both dll files in the plugin-dir I get this error
convolution3d supports YV12 color formats only
What can be the problem? When I use DirectShowSource everythings is fine!
Angelus
6th November 2003, 01:34
Your captured avi isn't in YV12 format...To get convolution3d to work try:
AviSource("c:\example.avi").ConvertToYV12
in your avisynth script.
Angelus
stickboy
6th November 2003, 02:18
Originally posted by appelmoes
convolution3d.dll for AviSynth 2.5 (http://www.avisynth.org/users/warpenterprises/files/convolution3d_25_dll_20030422.zip) I put this in de plugins dir and when I try to open the script in MediaPlayer I get this error:
convolution3d supports YUY12 color formats onlyI think you meant YUY2.
For DV, you want to use the YUY2 version, not the YV12 version. Try using:AviSource("c:\example.avi", pixel_type="yuy2")
appelmoes
6th November 2003, 09:54
Originally posted by stickboy
I think you meant YUY2.
No, I'm really sure and tested it again.
With only convolution3d.dll for avisynth 2.5 installed I get the "YUY2" error :confused:
Jeffster
6th November 2003, 10:05
Originally posted by appelmoes
I have a *.avi type-2 from my miniDV.
I have installed the Panasonic DV codec from the links from "bb"
....
What can be the problem? When I use DirectShowSource everythings is fine!
The problem is the PanasonicDV codec only outputs in RGB colorspace.
To take advantage of Fast recompress mode in VDub, perhaps you could try another DV codec like Canopus or MainConcept that does output in YUY2.
Jeff
appelmoes
6th November 2003, 10:11
Originally posted by Jeffster
To take advantage of Fast recompress mode in VDub, perhaps you could try another DV codec like Canopus or MainConcept that does output in YUY2.
OK! I'm gonna try that! thanks all!
tempetai
6th November 2003, 10:30
Nothing to do with Panasonic DV Codec. If you use Convolution3d.dll, just insert converttoyuy2() one line before your convolution3d script. If you use convolution3dyv12, then just install ffvfw light and insert converttoyv12() one line before your first convolution3d script.
You don't have to change to any other codec. Panasonic DV codec will do. I have exactly the same setup.
appelmoes
6th November 2003, 13:30
Originally posted by tempetai
Nothing to do with Panasonic DV Codec. If you use Convolution3d.dll, just insert converttoyuy2() one line before your convolution3d script. If you use convolution3dyv12, then just install ffvfw light and insert converttoyv12() one line before your first convolution3d script. You don't have to change to any other codec. Panasonic DV codec will do. I have exactly the same setup.
hmmm correct me if I'm wrong, but if you DO use the Panasonic codec, you have to do a convert to either yuy2 or yv12.
If you use another codec, like Canopus or MainConcept, then you do not have to use a convert in your script.
I tested it with MainConcept, and the script above is working now in mediaplayer!
tempetai
6th November 2003, 18:37
Originally posted by appelmoes
hmmm correct me if I'm wrong, but if you DO use the Panasonic codec, you have to do a convert to either yuy2 or yv12.
If you use another codec, like Canopus or MainConcept, then you do not have to use a convert in your script.
I tested it with MainConcept, and the script above is working now in mediaplayer!
hmmm... Great... new lesson... something for me to try...
bb
7th November 2003, 20:14
Be aware of the fact that there are three versions of Convolution3D:
1. Convolution3D for AviSynth 2.0.x, supports YUV2 only
2. Convolution3D for AviSynth 2.5.x, supports YUV2 only
3. Convolution3DYV12 for AviSynth 2.5.x, supports YV12 only
No. 3 has not been finished; the "temporal influence" parameter is not being used, and there are issues at scene changes, thus I wouldn't recommend it. Better use one of the YUV2 versions, depending on the AviSynth version you use (preferrably 2.5.x).
bb
Boulder
8th November 2003, 10:42
@bb:
Do you know whether number 3 uses temporal filtering or not? Disabled temporal influence is very confusing, for me disabled means the same as -1 which then means spatial-only filtering. Or is the temporal influence value related _only_ to detecting scene changes?
I did a small test with the YUY2 and YV12 versions, 2500 frames of a DivX source, conversion to YUY2 if needed.
YV12, time 1:29, size 10 662 659, temporal influence disabled
YUY2, time 1:37, size 10 609 956, temporal influence disabled
YUY2, time 2:11, size 10 300 208, temporal influence 3
When I look at those figures, I get a feeling that YV12 does spatial work only. The small differences between the encoding time and file size can be explained by the conversion to YUY2 and using different versions of the filter.
I tried doubling the temporal thresholds with the YV12 version and surprisingly I got a larger file, 10 868 414 bytes:confused:
Conclusion: could anyone check the sources and see what the filter actually does? :D
bb
11th November 2003, 18:54
Boulder,
read this:
http://forum.doom9.org/showthread.php?s=&threadid=38281&perpage=20&pagenumber=2
and this:
http://forum.doom9.org/showthread.php?s=&threadid=55832&perpage=20&pagenumber=2
bb
Boulder
11th November 2003, 19:02
Gotcha.
(by Vlad59)
You're right, I could have been clearer : When I say that TemporalInfluence is disabled, that means that I will apply a 3D convolution to all pixels of the frame (so the compressibility gain will still be there).
With TemporalInfluence enabled, I'll only apply the 3D convolution to pixel where temporal information are usefull (no motion) and only a 2D convolution to pixels where temporal information is not usefull (fade, scenechange).
I have added this parameter to handle a little better fade in or fade out and it was also a good way to gain a little speed.
So to sum up : all threshold are handled as usual, but there is no special process for fade in/out.
Thanks, bb:)
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.