Quantcast AVIsource: Could Not Decompress Frame 0 - Page 2 - digitalFAQ.com Forums [Archives]
  #21  
09-16-2004, 08:36 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by the viking
Correct me if im wrong
Inc told you to go to 544 jsut for the blindPP command. But the gripcrop must have a valid resolution, taht means 720*576 (or an other one, but 720*544 is not authorized there).
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #22  
09-16-2004, 09:14 AM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
ok,get that.running a test right now with TMPGEnc.
Final 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")
DirectShowSource("G:\Captured Video\Video 1.avi",fps=25)
AddBorders(0,0,0,4)
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()


I left out the interlace code to increase speed,only for testing
----------------
Finn
Reply With Quote
  #23  
09-16-2004, 09:25 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
The script is okay. But the result will be awfull due to interlacing
Reply With Quote
  #24  
09-16-2004, 09:34 AM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Yes,your right,the result wasnt very good.so I'll run a new test with this 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")
LoadPlugin("C:\programfiler\AviSynth 2.5\plugins\kerneldeint.dll")
DirectShowSource("G:\Captured Video\Video 1.avi",fps=25)
AddBorders(0,0,0,4)
ConvertToYV12()
BlindPP(cpu=4)
KernelBob(order=0,sharp=true,threshold=7)
AssumeFrameBased()
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)
SeparateFields()
SelectEvery(4,1,3)
Weave()
GripBorders()

I'll think this will do,interlace,top field first,fieldA video

-----------------------
Finn
Reply With Quote
  #25  
09-16-2004, 10:15 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Viking,

"Optimal Scripts" are NOT purposed for interlaced outputs!
(well, not in that kind of state!)

Try that one one IF source is "combed" (interlaced)

Code:
DirectShowSource("G:\Captured Video\Video 1.avi",fps=25) 
AddBorders(0,0,0,4) 
ConvertToYV12(interlaced=true) 
BlindPP(cpu=4, ipp=true)
Separatefields()
even=selecteven().\
     Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1).\
     Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
odd =selectodd().\
     Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1).\
     Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
interleave(even,odd)
weave()
GripCrop(720, 576, overscan=1, source_anamorphic=false,dest_anamorphic=false) 
GripSize(resizer="LanczosResize")
Separatefields().undot()
even=selecteven().\
     TemporalSoften(2,7,7,3,2) 
odd =selectodd().\
     TemporalSoften(2,7,7,3,2) 
interleave(even,odd)
weave()
DCTFilter(1,1,1,1,1,1,0.5,0)
GripBorders()
a) ONLY use that type of optimalScript in case of a "combed" source! AND IF YOu WANt TO KEEP THE "Combed" means interlaced state!
b) Im not shure if DCTfilter works properly on interlaced sources
c) it "could" be that Gripfit "looses" internally the reference to its cropped image state after GripCrop due seperating the fields afterwards, if yes, then use the classic resizing way via FitCD.
c) That script above is written out "of head" as actually Im at work.
d) It keeps the source interlaced



e) If you simply want to deinterlace then use the optimalscript as its in the original!!! state but use BlindPP(CPU=4,ipp).Fieldeinterlace(full=false, blend=false) or blend=true as you like it.


In HQ case try that one (caution: SLOW!)

Code:
DirectShowSource("G:\Captured Video\Video 1.avi",fps=25) 
AddBorders(0,0,0,4) 
ConvertToYV12(interlaced=true) 
BlindPP(cpu=4, ipp=true)
assumetff() 
Bob() # ------ or Kernelbob() with threshold=0! --- NO smart bobbing! -------
Blockbuster(method="noise",detail_min=1,detail_max=3,variance=0.1,seed=1)
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
assumefps(25) # as it seems Gripfit detects the source format out of its fps
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)
GripBorders()
assumefps(50)
separatefields().selectevery(4,1,2).weave() # Inverse Bobbing & Reinterlacing
If source is BOTTOM Field first then change

.... assumeTFF() .... to .... AssumeBFF()

and

... selectevery(4,1,2) .... to .... Selectevery(4,0,3)
Reply With Quote
  #26  
09-16-2004, 12:18 PM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Inc,tried your script(the first one) in WMP,the picture
has changed to 16:9 or something quite like that.

Yes,my sources are Interlaced and I want to keep them that way,best
for TV-viewing I guess.

Inc wrote:
c) it "could" be that Gripfit "looses" internally the reference to its cropped image state after GripCrop due seperating the fields afterwards, if yes, then use the classic resizing way via FitCD.

So I loaded FitCD,got the following lines:
LanczosResize(704,576,0,1,720,53
AddBorders(8,0,8,0)
#Trim(0,15551).FadeOut(150)

So the stupid question:just replace

GripCrop(720, 576, overscan=1, source_anamorphic=false,dest_anamorphic=false)
GripSize(resizer="LanczosResize")

with the code I got from FitCD or do I have to modyfi it any way?

-------------
Finn
--------------------
Reply With Quote
  #27  
09-16-2004, 03:19 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by the viking
So the stupid question:just replace

GripCrop(720, 576, overscan=1, source_anamorphic=false,dest_anamorphic=false)
GripSize(resizer="LanczosResize")

with the code I got from FitCD or do I have to modyfi it any way?
Not stupid at all!

Just replace the gripcrop(....) and the GripSize(....) lines with ONLY the Lanczosresize(.....) line.
And the Gripborders(...) one with the Addborders(....) line


PS:

I see in the lanczos line FITCD calculated beside the other values a "1", that means your source will be cropped at one of the side by "1"px.
Very bad! Do set in FitCD at "Crop"... round to 2 and at "resize" round to 16!
Also do encode at 704 and not 720 as thats not worth as the 16px above the 704 up to 720 will go out of overscan area on tv
Reply With Quote
  #28  
09-16-2004, 04:43 PM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Inc,

I set Crop in FitCD to round to 2,cropping mode accurate,got this line:
LanczosResize(704,576,0,1,720,53

changed cropping mode to max.height and got this line:
LanczosResize(704,576,0,0,720,540)

Changed also destiation format to 704x576.
Resize was sat to round to 16

Script like this:

DirectShowSource("G:\Captured Video\Video 1.avi",fps=25)
AddBorders(0,0,0,4)
ConvertToYV12(interlaced=true)
BlindPP(cpu=4, ipp=true)
Separatefields()
even=selecteven().\
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1).\
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
#### EDIT by INC
odd =selectodd().\
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1).\
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
interleave(even,odd)
weave()
LanczosResize(704,576,0,0,720,540)
Separatefields().undot()
even=selecteven().\
TemporalSoften(2,7,7,3,2)
#### EDIT by INC
odd =selectodd().\
TemporalSoften(2,7,7,3,2)
interleave(even,odd)
weave()
DCTFilter(1,1,1,1,1,1,0.5,0)

Still it gives me only half screen in WMP,
the lower part is black for some reason.

When I changed cropping mode In FitCD(to max height),
the addborders line
"was gone"so I removed it from the script to.

----------------
Finn[/IMG]
Reply With Quote
  #29  
09-17-2004, 01:00 AM
Peter1234 Peter1234 is offline
Free Member
 
Join Date: Feb 2003
Posts: 237
Thanks: 0
Thanked 0 Times in 0 Posts
the viking,
Try changing from odd =selecteven().\ to odd =selectodd().\ in both places.
Reply With Quote
  #30  
09-17-2004, 02:23 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Yep!

Thats the result of a copy/paste syndrom
Thanks for your hint peter.

Viking, I updated the script above to the correct even/odd syntax
Reply With Quote
  #31  
09-17-2004, 03:33 AM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
hello Peter & Inc,

tried with the edited script,but still only half screen in WMP,

take a look here(screenshots)
Reply With Quote
  #32  
09-17-2004, 04:52 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Viking,

Ill try that this evening as told, its written out of my head, but every seperatefield routine is followed by a weave which should restore the full frame height/content.

That above is a script where the position of the resizer is in the middle like in OptimalScript4. Maybe for interlaced sources we should do a total different approach.
Reply With Quote
  #33  
09-17-2004, 05:37 AM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Yeah,I know.
I'll try other scripts and see if I can
get some proper results.

anyway thanks a lot

-------------
Finn
Reply With Quote
  #34  
09-17-2004, 05:52 PM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Yep strange as the seperated fields are still recognised by avisynth as FRAMES!

SO I fixed it by adding an assumefieldbased before the weave commands.

DirectShowSource("G:\Captured Video\Video 1.avi",fps=25)
AddBorders(0,0,0,4)
ConvertToYV12(interlaced=true)
BlindPP(cpu=4, ipp=true)
Separatefields()
even=selecteven().\
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1).\
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
odd =selectodd().\
Blockbuster(method="noise",detail_min=1,detail_max =3,variance=0.1,seed=1).\
Convolution3D(1, 6, 12, 6, 8, 2.8, 0)
interleave(even,odd)
assumefieldbased()
weave()
LanczosResize(704,576,0,0,720,540)
Separatefields().undot()
even=selecteven().\
TemporalSoften(2,7,7,3,2)
odd =selectodd().\
TemporalSoften(2,7,7,3,2)
interleave(even,odd)
assumefieldbased()
weave()
DCTFilter(1,1,1,1,1,1,0.5,0)
Reply With Quote
  #35  
09-19-2004, 02:25 PM
the viking the viking is offline
Free Member
 
Join Date: Sep 2004
Location: Norway
Posts: 174
Thanks: 0
Thanked 0 Times in 0 Posts
Hello,
Inc I tried your latest modified script,but for some strange reason
it gives me resolution 704x288 50fps when I load it into TMPGEnc,have a look here.
Any idea whats wrong?

Thanks

EDIT:I tried this script from Boulder's guide to deal with interlaced sources,and it seems to work fine:

DirectShowSource("G:\Captured Video\Video 1.avi",fps=25)
KernelBob(order=1,sharp=true,threshold=7)
AssumeFrameBased()
ConvertToYV12
Asharp(1,4)
Deen()
LanczosResize(704,576,0,0,720,540)
SeparateFields()
SelectEvery(4,1,2) # SelectEvery(4,0,3) for bottom field first video
Weave()

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

EDIT 2:
No,I was wrong,the script above does NOT work fine for
my Interlaced SVHS-captures,when I view the result on my tv,
I see a horizontal lines over the whole screen,and a jerky motion,
so I have to try something else I guess
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avi Source: Could not decompress frame 0 FrAnKiM Conversão e Codificação de Vídeo (Português) 3 05-24-2004 01:34 PM
Avi Source: Could not decompress frame 0 daemon Conversão e Codificação de Vídeo (Português) 2 05-22-2004 03:34 PM
AviSource : Could not decompress frame 0 Dialhot Video Encoding and Conversion 0 11-30-2003 06:23 AM
AviSource: Could not decompress frame 0 Dialhot Video Encoding and Conversion 0 11-30-2003 06:20 AM
Could not decompress frame 0 the_ray Video Encoding and Conversion 6 11-30-2003 05:12 AM

Thread Tools



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