View Full Version : "Not a clip"?
Forteen88
3rd December 2009, 02:05
I get "Not a clip" in AvsP when I try this AVS:
a=Directshowsource("E:\video.mkv")
it's a x264-video.
What's can be the problem?
poisondeathray
3rd December 2009, 02:06
You've got to return "a"
a=Directshowsource("E:\video.mkv")
a
Forteen88
3rd December 2009, 02:15
You've got to return "a"
a=Directshowsource("E:\video.mkv")
aThanks. I got another problem, "Interleave: video formats don't match", when I try to compare source vs encode like this:
a=import("E:\video.avs")
b=Directshowsource("E:\video.mkv")
interleave(a,b)
poisondeathray
3rd December 2009, 02:23
What formats are they? Use mediainfo. If they differ (e.g. resolution, fps etc...), you have to change one to match the other in order to use interleave
Forteen88
3rd December 2009, 02:33
What formats are they? Use mediainfo. If they differ (e.g. resolution, fps etc...), you have to change one to match the other in order to use interleaveBoth source and encode are 1280x720 and 23.976 fps, Resolution: 24 bits, Colorimetry: 4:2:0
what more is "etc"?
I'm changing the resolution of the source (in the AVS), to the same as the encode.
Source.avs:
AVCSource("E:\00001.dga")
AssumeFPS(24000,1001)
dull = last
sharp = dull.LimitedSharpenFaster( ss_x=1.4, ss_y=1.4, strength=100, overshoot=1)
Soothe( sharp, dull, 20 )
Spline64Resize(1280,720, 8,2,-2,-2)
thanks
poisondeathray
3rd December 2009, 04:55
Still an error message? What is it?
Use AssumeFPS(24000,1001) for the other clip as well. 23.976 is an approximation
Forteen88
3rd December 2009, 06:02
Still an error message? What is it?
Use AssumeFPS(24000,1001) for the other clip as well. 23.976 is an approximationYeah, still "Interleave: video formats don't match". I did AssumeFPS(24000,1001) on the source but the encode should have that FPS also then, although it might not be as precise, so maybe it's better to write "AssumeFPS(23.976)"?
Keiyakusha
3rd December 2009, 06:15
FPS has nothing to do with this. This error appears when colorspaces did not match. Make sure that Directshowsource("E:\video.mkv") outputs YV12. Most likely its not.
Gavino
3rd December 2009, 09:57
FPS has nothing to do with this. This error appears when colorspaces did not match.
That's right. Interleave does not require matching frame rates.
Forteen88
3rd December 2009, 19:18
FPS has nothing to do with this. This error appears when colorspaces did not match. Make sure that Directshowsource("E:\video.mkv") outputs YV12. Most likely its not.How do I make sure that Directshowsource("E:\video.mkv") outputs YV12? I noticed that my Windows 7 Pro 64-bit uses Microsoft's h264-decoder by default (maybe it causes the problem?), even though I installed ffdshow 64-bit. I used clsid's "Preferred Filter Tweaker for Windows 7", and set that it uses ffdshow 64-bit h264-decoder instead of M$ 64-bit h264-decoder, but noticed that M$ 32-bit h264-decoder is still on (because there's no alternative). Should I also install ffdshow 32-bit and set it as a prefered 32-bit h264-decoder?
Thanks
poisondeathray
3rd December 2009, 19:23
ConvertToYV12()
If you use Info() it will tell you what colorspace , and also other information
Are both h.264? Why don't you use AVCSource for both, and avoid directshow filter issues?
Forteen88
3rd December 2009, 19:45
ConvertToYV12()
If you use Info() it will tell you what colorspace , and also other information
Are both h.264? Why don't you use AVCSource for both, and avoid directshow filter issues?Ok, thanks, I'll use AVCSource for both instead (although it's annoying that DGAVCDec seems to want a clean h264, not a MKV, otherwise it mentions some errors :P), then there should be no issue. Yeah, both the source and the encode is h264.
I tried using these lines in the screenshot-AVS before, but it didn't help:
a.ConvertToYV12()
b.ConvertToYV12()
EDIT: Ok, thanks Gavino.
Gavino
3rd December 2009, 20:00
I tried using these lines in the screenshot-AVS before, but it didn't help:
a.ConvertToYV12()
b.ConvertToYV12()
You need to say
a = a.ConvertToYV12()
b = b.ConvertToYV12()
or write the whole script as
a=import("E:\video.avs").ConvertToYV12()
b=Directshowsource("E:\video.mkv").ConvertToYV12()
interleave(a,b)
Keiyakusha
3rd December 2009, 20:20
But you better resolve the problem with your decoding chain, because otherwise colorspace will be converted twice (YV12 -> something -> YV12), which is not so good for quality comparison.
How do I make sure that Directshowsource("E:\video.mkv") outputs YV12? I noticed that my Windows 7 Pro 64-bit uses Microsoft's h264-decoder by default (maybe it causes the problem?), even though I installed ffdshow 64-bit. I used clsid's "Preferred Filter Tweaker for Windows 7", and set that it uses ffdshow 64-bit h264-decoder instead of M$ 64-bit h264-decoder, but noticed that M$ 32-bit h264-decoder is still on (because there's no alternative). Should I also install ffdshow 32-bit and set it as a prefered 32-bit h264-decoder?
Thanks
Sorry I can't help you with 64bit version.
EDIT: well since avisynth is 32 bit then most likely it uses 32bit filters so yes, try 32bit ffdshow.
Forteen88
3rd December 2009, 22:09
But you better resolve the problem with your decoding chain, because otherwise colorspace will be converted twice (YV12 -> something -> YV12), which is not so good for quality comparison.
Sorry I can't help you with 64bit version.
EDIT: well since avisynth is 32 bit then most likely it uses 32bit filters so yes, try 32bit ffdshow.Ok, thanks. I used the same decoder (DGAVCDec) for the encode as well, so it turned out well (although it's a bit timeconsuming making a project in that decoder-program). I didn't have to use ConvertToYV12() then. I'll try installing ffdshow 32-bit also then (for cases when the source is VC-1 or other).
I hope Avisynth 64-bit is released soon :)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.