digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   AviSource: Could not Decompress Frame 0 (http://www.digitalfaq.com/archives/avisynth/12140-avisource-decompress-frame.html)

the viking 09-15-2004 02:03 PM

AviSource: Could not Decompress Frame 0
 
Hi,
I tried to convert my SVHS captures today,but got the following message
when I load the script into WMP:

"AviSource:Could not Decompress Frame 0"

Tried several scripts,also one generated by FitCD,but the same message appears every time.
When I change source to DV file or D2V file the same scrips works
just fine. :?

Anyone have a idea what im doing wrong :?:

----------------
Finn.


:!: When I load the script into TMPGnc I got a res. 888x56 :!:

jorel 09-15-2004 03:38 PM

res. 888x56 ?

seems that you need the mpeg2dec3.dll

download it and all filters that you need in: http://www.avisynth.org/warpenterprises/

unzip the .dll inside the avisynth filter folder and try again.

if don't work we need to see your scrip, post it here please!
:wink:

the viking 09-15-2004 04:07 PM

All the plugins are present,here is my script:

LoadPlugin("C:\Programfiler\AviSynth 2.5\plugins\MPEG2Dec3.dll")
LoadPlugin("C:\Programfiler\AviSynth 2.5\plugins\deen.dll")
LoadPlugin("C:\Programfiler\AviSynth 2.5\plugins\grip.dll")
LoadPlugin("C:\Programfiler\AviSynth 2.5\plugins\UnDot.dll")
LoadPlugin("C:\Programfiler\AviSynth 2.5\plugins\Convolution3DYV12.dll")
LoadPlugin("C:\Programfiler\AviSynth 2.5\plugins\Blockbuster.dll")
LoadPlugin("C:\Programfiler\AviSynth 2.5\plugins\DctFilter.dll")
AviSource("G:\Captured Video\Video 1.avi",false)
ConvertToYV12()
BlindPP(cpu=4)
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
GripCrop(720, 576, overscan=1, source_anamorphic=false,dest_anamorphic=false)
GripSize(resizer="LanczosResize")
Undot()
TemporalSoften(2,7,7,3,2)
DCTFilter(1,1,1,1,1,1,0.5,0)
#Blockbuster(method="noise",detail_min=1,detail_ma x=10,variance=0.3,seed=5623)
GripBorders()

Ive also tried to change the resolution but still got the same message.

The captured avi file have resolution 720x540(4:3),
can that cause the error???

jorel 09-15-2004 04:56 PM

Quote:

The captured avi file have resolution 720x540(4:3),
can that cause the error???
maybe can be the source the viking, we need to do more little tests to find the problem!

that script works only with avisynth2.5x
the filters(plugins) are present but check if his versions are correct to use in avisynth2.5x

download and install XviD : http://www.codec-download.com/article.php?sid=203

load the script in vdubmpeg2 and see if have any message showing errors
download vdubmpeg2 if needed: http://www.free-codecs.com/download/...lDub-MPEG2.htm

post the result and the message error if any! :wink:


@ all
the whole forum knows that i don't encode .avis .
can anyone help too ?

thanks. :wink:

jorel 09-15-2004 05:03 PM

i remember now that you get help in this thread:
http://www.kvcd.net/forum/viewtopic.php?t=14018

choose where you want help but in my opinion, there is really better cos Peter1234 knows about .avis and i only encode from dvds sources!
:wink:

the viking 09-15-2004 05:37 PM

downloaded and installed Xvid codec,
opened script in VdubMpeg2,get the same message "could not decompress
frame 0"

also tried to load the avi file without the script in Vdub,
got the following message:"Video Source AVI error:The source image format is not acceptable.(error code -2)"

yeah,I'm maybe on the wrong place posting :oops:
the strange thing about this error
is that it works well with DV-avi and also with DVD sources(even if this is a AVI to KDVD/KVCD script),so ive been reading (maybe too much 8O )
articles and threads today trying to find a solution to the problem :idea:

Thanks for the answers anyway :!:

jorel 09-15-2004 06:49 PM

ok the vicking, no problems! :wink:

seems that your source is corrupt in the begining! :(

like i wrote,i don't encode avis and someone else will help you more than me. i don't want to post wrong informations of things that i don't have knowledge.

if nobody came, just pm for me and i call the help for you, right? :)

back to that thread where Peter1234 is helping you....
he knows about .avis encodes and will help you a lot and more friends will go there too!

best regards! :wink:

Peter1234 09-15-2004 09:48 PM

the viking,
It would seem like that source video has a problem. Have you tried a different avi source? Does that video open and play in any palyers or encoders (TMPGEnc for example)? What codec is the AVI in?

the viking 09-16-2004 03:28 AM

1.When I open the avi in Gspot,It says MJPEG codec.(Motion Jpeg including Huffman Tables).Codec are installed.

2.The file plays just fine in WMP and WinDVD4

3.No problem opening the file in TMPGEnc(without Script)

-Noticed one thing,when I opened the file in Gspot it says 25FPS,
opened the same file in TMPGEnc it says 30FPS.(All my Avi's are PAL).

-I have tried different avi sources,dv-avi works perfect.

-The SVHS Avi-files were captured with Pinnacle DC10Plus capture card/software.

Dialhot 09-16-2004 03:44 AM

Try to open it with a directshowSource command insteed of avisource.

the viking 09-16-2004 04:25 AM

Changed from avi-source to directshowsource like this:

DirectShowSource("G:\Captured Video\Video 1.avi",false)

and it gave this message in WMP:
"Script error:invalid arguments to function "DirectShowSource"" :?

Checked the capture settings in Pinnacle,the crop funtion was activated,
that give res.720x540,I will try to capture without crop to res 768x576.
But it should work with a script anyway I suppose.(crop or not) :?:

----------------
Finn

Dialhot 09-16-2004 04:40 AM

Quote:

Originally Posted by the viking
Changed from avi-source to directshowsource like this:

DirectShowSource("G:\Captured Video\Video 1.avi",false)

and it gave this message in WMP:
"Script error:invalid arguments to function "DirectShowSource"" :?

There is something known as avisynth manual. It is on your disc, in the avisnth directory. Try to read it ;-)

Encoder Master 09-16-2004 05:24 AM

You have to delete ", false" in your script.

the viking 09-16-2004 05:31 AM

Quite a good thing that AviSynth manual :lol:

Well,inserted this line in the script
DirectShowSource("G:\Captured Video\Video 1.avi", fps=25)

and it works just fine :idea:

But I got one error: "BlindPP:Need mod16 Height"

Didnt find the solution to that in the manual,but it works fine when I remove the line from the script.

Anyway,thanks a lot

------------------
Finn.

incredible 09-16-2004 05:42 AM

Quoting DialHot from his Optimal Scripts Post as the line below is related to BlindPP!

Quote:

BlindPP needs a source with both dimensions divisible by 16. If your source is not in this case, you can use "Addborders(0,0,right,bottom)" to adjust the size (the idea is to reach the next value that is divisible by 16. See example just after). Don't worry, this border will be removed by the gripcrop command.

Example : source is 636 * 477, you need to change it to 640 * 480 (640/16 = 40; 480/16 = 30). So just add this after the line Avisource :
Code:

AddBorders(0,0,4,3)

According to the issue with "no opening in VdubMod etc.":
Quote:

-The SVHS Avi-files were captured with Pinnacle DC10Plus capture card/software.
To me the situation is clear as you system comes only with a directshow mjpeg videodecoder installed by your pinnacle software. VirtualDub uses vfw and also avisource() in your avisynth script.

Do get the PicVideo mjpeg codec as it comes with dshow and vfw drivers.
I also got a Pinnacle DC card and its streams work great with picvideo.

Another choice would be installing FFdshwo and setting its ffvfw compount/decoder to decode mjpeg.

What was the setting when capturing?? Means how many MB/sec? 3mb, 4mb, 6mb ??? As usually mjpeg is count in mb/s.

the viking 09-16-2004 06:12 AM

Of course,read about "add borders" a few days ago :oops:

So when my source is 720x540 and I want it to be 720x576 the line
will be like this:(I think):AddBorders(0,0,0,36) :idea:

About the setting in Pinnacle:

It was preset best(S-VHS video),full horizontal resolution,both vertical fields,crop 720x540,kbytes/sec. 3000 (data rate)

I will try PicVideo mjpeg codec next time.

Another theoretical question,is it a good idea to convert 720x540 to 720x576,or should I go for some lower resolution?

--------------
Finn.

Dialhot 09-16-2004 06:31 AM

Quote:

Originally Posted by the viking
So when my source is 720x540 and I want it to be 720x576 the line
will be like this:(I think):AddBorders(0,0,0,36) :idea:

The best is to add balanced top/bottom borders like this :
Code:

Addborders(0,18,0,18)
Quote:

Another theoretical question,is it a good idea to convert 720x540 to 720x576,or should I go for some lower resolution?
If you plan to do a 1CD, it is better to use lower resolution.

incredible 09-16-2004 06:41 AM

Vicing,
you only need 720x544! As the next higher! value for MOD16 from 540 is 544

So

Avisource("720x540_Input.avi")
Addborders(0,0,0,4)

And the result will be a proper 720x544 output where you can add BlindPP(..) afterwards.

The addedborder will be deleted by Gripcrop afterwards and the upcoming filters wont have too much senseless pixels to process which would slower the rendering ;-)

Quote:

Code:

Addborders(0,18,0,18)

Never do add borders at top! OR left! side as the dct detection of blind pp needs the ORIG! top and left side placement of the image. And 18 is not MOD16 ;-)


In this case here the diff. between 544 and 576 is tiny and does not matter, but I do explain that to you vicing that you understand the basic of this procedure ... like in case of cropped PAR 1:1 2.35:1 Sources ;-)

Dialhot 09-16-2004 07:11 AM

Quote:

Originally Posted by incredible
Never do add borders at top! OR left! side as the dct detection of blind pp needs the ORIG! top and left side placement of the image. And 18 is not MOD16 ;-)

I know I know ! I was referencing to the 720*576 res that can let him to not do any resizing at all, but did not remember his first problem was with blindPP :-D

the viking 09-16-2004 08:30 AM

Then I'll make a test with 720x544,using this code:Addborders(0,0,0,4).

My plans is to encode all my SVHS tapes to DVD.

And as far as I can see,after reading yesterday and today,several places about aspect ratio/4:3/16:9/anamorph etc.,I'll keep the correct A/R using
the following code:
GripCrop(720, 544, overscan=1, source_anamorphic=false,dest_anamorphic=false)
GripSize(resizer="LanczosResize")


I'll see Inc. talking about 2.35:1 sources,yesterday I did a backup of
disney's"Brother Bear",using this script from FitCD:

BicubicResize(496,416,1/3,1/3,8,0,704,576)
AddBorders(16,80,16,80)
#Trim(0,122442).FadeOut(150)

The source was DVD,resized to 528x576,anamorp input-
nonanamorph output.
the result was very good with correct A/R.

And,Gentlemen, If I have understand anything at all,I'll get the same results using this code:(with correct A/R):
GripCrop(528, 576, overscan=1, source_anamorphic=true,dest_anamorphic=false)
GripSize(resizer="BicubicResize")

Correct me if im wrong :!:

------------------------------

Finn.(learning every day) 8O


All times are GMT -5. The time now is 01:10 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.