Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 6th September 2012, 15:44   #1  |  Link
DevilMind
Registered User
 
Join Date: Aug 2012
Posts: 1
Driving me Crazy! AviSource: Could not decompress frame 0 (c:\source.avs,line 1)

AviSource: Could not decompress frame 0 (c:\source.avs,line 1)

this error is driving me crazy on StaxRip, i'm gonna jump out of window because of frustration this is causing me
before StaxRip worked perfectely and now not even one video is encoding,

i get this error on each & every video Format i try.

i am Encoding
HDV (Vegas Pro 11)
to
Lagarith Lossless AVI then
StaxRip to MP4 (x264 2000kbpx CBR 2pass + Nero aac 128kbps CBR LC)
my log file:

Code:
------------------------------------------------------------
                        Environment
------------------------------------------------------------

StaxRip version: 1.1.7.2
OS Name        : Windows 7 Ultimate
OS Version     : 6.1.7600.0
OS Type        : 64-bit
OS Culture     : English (United States)

------------------------------------------------------------
                            .NET
------------------------------------------------------------

v2.0.50727 : 2.0.50727.4927
v3.0       : 3.0.30729.4926
v3.5       : 3.5.30729.4926
v4\Client  : 4.0.30319
v4\Full    : 4.0.30319

------------------------------------------------------------
                   Source file MediaInfo
------------------------------------------------------------

D:\00 UK AFA upload clips\pal66.avi

General
Complete name                            : D:\00 UK AFA upload clips\pal66.avi
Format                                   : AVI
Format/Info                              : Audio Video Interleave
Format profile                           : OpenDML
File size                                : 2.15 GiB
Duration                                 : 49s 840ms
Overall bit rate                         : 370 Mbps
TCOD                                     : 149200000
TCDO                                     : 647600000

Video
ID                                       : 0
Format                                   : YUV
Codec ID                                 : UYVY
Codec ID/Info                            : Uncompressed 16bpp. YUV 4:2:2 (Y sample at every pixel, U and V sampled at every second pixel horizontally on each line). A macropixel contains 2 pixels in 1 u_int32.
Duration                                 : 49s 840ms
Bit rate                                 : 369 Mbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Compression mode                         : Lossless
Bits/(Pixel*Frame)                       : 16.000
Stream size                              : 2.14 GiB (100%)

Audio
ID                                       : 1
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : 1
Duration                                 : 49s 840ms
Bit rate mode                            : Constant
Bit rate                                 : 1 536 Kbps
Channel(s)                               : 2 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Stream size                              : 9.13 MiB (0%)
Interleave, duration                     : 249 ms (6.23 video frames)
Interleave, preload duration             : 250 ms


------------------------------------------------------------
               Demux AVI using VirtualDubMod
------------------------------------------------------------

Demuxer: Demux AVI
"H:\0 DOWNLOAD MANAGER\00 Audio n Video Converters n codecs\Video Converters -2012 Aug\StaxRip_1.1.7.2\Applications\VirtualDubMod\VirtualDubMod.exe" /s"D:\00 UK AFA upload clips\pal66 temp files\pal66_Demux.vcf" /x

------------------------------------------------------------
        DirectShow filters used to render the source
------------------------------------------------------------

DirectSound Audio Renderer
Video Mixing Renderer
Color Space Converter
AVI Decompressor
AVI Splitter
File Source (Async.)

------------------------------------------------------------
                    Error opening source
------------------------------------------------------------

DirectShowSource : Timeout waiting for graph to start.
(D:\00 UK AFA upload clips\pal66 temp files\pal66_Source.avs, line 1)

DirectShowSource("%source_file%", audio=false, convertfps=true, fps=%source_framerate_mediainfo%)
Crop(0,0, -Width % 8,-Height % 8)
ConvertToYV12()

------------------------------------------------------------
                    Index with ffmsindex
------------------------------------------------------------

D:\00 UK AFA upload clips\pal66.avi
"H:\0 DOWNLOAD MANAGER\00 Audio n Video Converters n codecs\Video Converters -2012 Aug\StaxRip_1.1.7.2\Applications\AviSynth plugins\ffms2\ffmsindex.exe" "D:\00 UK AFA upload clips\pal66.avi" "D:\00 UK AFA upload clips\pal66 temp files\pal66.ffindex"

Writing index... done.


Start:    6:46:14 PM
End:      6:56:33 PM
Duration: 00:10:19


------------------------------------------------------------
                       Source Macros
------------------------------------------------------------

Source Directory:   D:\00 UK AFA upload clips\
Source Directory Name: 00 UK AFA upload clips
Source Directory Parent: D:\
Source File Path:   D:\00 UK AFA upload clips\pal66.avi
Source Files Blank: "D:\00 UK AFA upload clips\pal66.avi"
Source Files Comma: "D:\00 UK AFA upload clips\pal66.avi"
Source Framerate:   25.00
Source Framerate MediaInfo: 25.000
Source Frames:      1246
Source Image Height: 720
Source File Name:   pal66
Source Seconds:     50
Source Image Width: 1280

waiting for your response
DevilMind is offline   Reply With Quote
Old 6th September 2012, 16:28   #2  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,340
Looks like you forgot to choose lagarith

Quote:
.
.
to
Lagarith Lossless AVI then
.
.
Quote:
Codec ID : UYVY

Another option is debugmode frameserver (but you have to be careful with the way vegas handles levels)
poisondeathray is offline   Reply With Quote
Old 6th September 2012, 23:20   #3  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
For an .avi file with fourcc "UYVY", AviSource will first ask windows for a codec to decode UYVY to YV12. And if none are available next a codec to decode UYVY to YUY2, then RGB32 and RGB24. If they all fail you get the cannot find a codec message. You did not get that message so some codec put it's hand up and said "Yes I can do that." but after it was loaded and initialised and Avisynth asked for frame 0 to be decoded it reneged on the deal and said oops I cannot do that after all.

Quite a few codecs have this evil behaviour, the Panasonic DV codec is one example of being notorious for doing this for DV sources, it can actually only do RGB24 decoding. The solution there is to add Pixel_Type="RGB24". A better solution is to use a correctly working codec like Cedocide.

For your problem you can try adding AviSource(.... , Pixel_Type="YUY2") to your script, your installed bad UYVY decoder may actually be able to do that. If that fails you need to uninstall the broken codec and install a working UYVY codec. Or you could fix your work flow as above.
IanB is offline   Reply With Quote
Old 7th September 2012, 09:32   #4  |  Link
Emulgator
Big Bit Savings Now !
 
Emulgator's Avatar
 
Join Date: Feb 2007
Location: close to the wall
Posts: 1,531
Quote:
For an .avi file with fourcc "UYVY", AviSource will first ask windows for a codec to decode UYVY to YV12.
And if none are available next a codec to decode UYVY to YUY2, then RGB32 and RGB24.
Many thank for this explanation !
This now saves me lots of headaches, because my UYVY intermediates
(which I only made to get off the faulty WinXP's DirectShow quartz.dll decodes from plain DV-AVI
were obviously decoded improperly again using AviSource which indeed seemed to have called WinXP's DirectShow quartz.dll again.
Booho.
__________________
"To bypass shortcuts and find suffering...is called QUALity" (Die toten Augen von Friedrichshain)
"Data reduction ? Yep, Sir. We're that issue working on. Synce invntoin uf lingöage..."
Emulgator is offline   Reply With Quote
Reply

Tags
avi, avisynth script, error, mp4, x264

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:27.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.