digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   KVCD: no program wants to play my .avs files? (http://www.digitalfaq.com/archives/encode/5065-kvcd-program-wants.html)

Edlund 08-17-2003 04:08 PM

KVCD: no program wants to play my .avs files?
 
I have a problematic .avi. It plays on the computer, but when, in the beginning I played the motion adapting script the error was "Acm failed to suggest a compatible pcm format". I searched this and other forums and I encoded the audio separately. I even encoded the .avi separetely with virtualdub. At last I tried to encode just the .avi without sound but when I play the .avs in any program (windows media player, zoom player, tok, virtualdub...) there is just error that says that the program will be closed and that's it. If I try the original .avi with .avs script that reads avisource("...avi",false) there is an error again. I really don't know what else to do so I decided to post my problem here. Have you had this problem?

Dialhot 08-17-2003 04:51 PM

I guess your AVI is a Vorbis OGG container. That's a big sh*t (sorry) !!!

You can try with DirecShowSource insteed of AviSource but you can't do any prediction because Sampler() will take HOURS to procede :-(

Try to open it in VDub and save it in "direct stream copy". That will give you a avi withotu any sound, but that is openable by avs (if it's really an ogg of course).

note: do you have Gspot ? If yes, open the avi with it and tell us what are the codec used for the rendering.

Edlund 08-17-2003 10:21 PM

I was going to post the characteristics of the avi yesterday but I was a little bit drunk :oops: , so:

I saved the .avi with direct stream copy in virtualdub. This is the info for it - video format: 588 x 316, 80975 Frames, 25.000 Frames/Sec, 191 KB/Sec, Unknown Format. But this format also gives me a constant error in WMP and zoomplayer so I need a restart after 2 tries to play the .avs

The info for the original avi is: audio format - Unknown Format,48*000 Hz; Stereo; video format - 588 x 316, 80975 Frames, 25.000 Frames/Sec, 223 KB/Sec, Unknown Format

Gspot gives me these codecs: for audio -
AC3filter
->Fraunhofer audio decoder
->AC3 from AVI Xform -> Fraunhofer audio decoder

for video:
ffdshow MPEG4 video decoder
DivX decoder filter
DivX decoder filter

And at the end thank you Dialhot for the "DirecShowSource" hint, I will give it a try, hope it works beacause I don't use prediction very often :lol: :wink:

Edlund 08-17-2003 11:08 PM

Script error: there is no function named "DirectShowSource" (line 11)

this is shown in my .avs and this is my line 11:

DirecShowSource("C:\movies\dvd\Motor.avi")

Do I write this correct? Or do I need some plug-in or filter or whatever?

kwag 08-17-2003 11:10 PM

Hi Edlund,

What version of AviSynth do you have installed :?: 8O

-kwag

Edlund 08-17-2003 11:59 PM

the latest - 2.52

Krassi 08-18-2003 01:10 AM

Maybe you have installed two different versions of avisynth. Can you make an avs with the following content, open it wmp or similar and give us the result :?:
Code:

version()

Dialhot 08-18-2003 04:04 AM

Edlund, did you notice that it miss a 't' in the line you reported ?

Quote:

DirecShowSource("C:\movies\dvd\Motor.avi")
It's DirectShowSource.

Perhaps the error is simply there.

Edlund 08-18-2003 08:12 AM

Quote:

Originally Posted by Krassi
Maybe you have installed two different versions of avisynth. Can you make an avs with the following content, open it wmp or similar and give us the result :?:
Code:

version()

Avisynth 2.52, build: jun 1 2003 [23:05:51]
© 2000-2003 Ben Roudiak-Gould et al.
http://www.avisynth.org

Edlund 08-18-2003 08:19 AM

Quote:

Originally Posted by Dialhot
Edlund, did you notice that it miss a 't' in the line you reported ?

Quote:

DirecShowSource("C:\movies\dvd\Motor.avi")
It's DirectShowSource.

Perhaps the error is simply there.

Yes, I copy/pasted your hint:) Now when I try to play the .avs with direcTshowsource zoomplayer freezes and WMP opens it minutes long without success. (ToK and Tmpgenc freeze too)
I think if nothing works I will encode the video just with a KVCD template.

Dialhot 08-18-2003 08:21 AM

Do you ave a "Sampler" at the end of your avs ?

If yes, I told you that is will take HOURS to accomplish :-). So everything is normal :-)

Can you copy your script there ?

Edlund 08-18-2003 04:02 PM

It's the optimal script:

Quote:

## DLL Section ##
#
LoadPlugin("C:\Movies\Programs\TMPGEnc1\KVCD\MPEG2 Dec3.dll")
LoadPlugin("C:\Movies\Programs\TMPGEnc1\KVCD\GripF it_YV12.dll")
LoadPlugin("C:\Movies\Programs\TMPGEnc1\KVCD\STMed ianFilter.dll")
LoadPlugin("C:\Movies\Programs\TMPGEnc1\KVCD\filte rsdownloaded\asharp.dll")
LoadPlugin("C:\Movies\Programs\TMPGEnc1\KVCD\filte rsdownloaded\undot.dll")
LoadPlugin("C:\Movies\Programs\TMPGEnc1\KVCD\UnFil ter_Avisynth_2.5_Alpha\UnFilter.dll")
#
####

## Defined Variables and Constants ##
#
MaxTreshold = 1.50
nf = 0 # Current frame.
#
####

## Main section and static filters ###
#
directshowsource("C:\movies\dvd\Motor.avi")
#
undot()
Limiter()
asharp(1, 4)
GripCrop(352, 288, overscan=1, source_anamorphic=false)
GripSize(resizer="BilinearResize")
STMedianFilter(8, 32, 0, 0 )
MergeChroma(blur(MaxTreshold))
MergeLuma(blur(0.1))
#
#

## Linear Motion Adaptive Filtering ##
#
# ( Portions from AviSynth's manual ) - This will apply temporalsoften to
# very static scenes, and apply variable blur on moving scenes.
# We also assign a variable - and this is why a line break is inserted:

SwitchThreshold = (Width<=352) ? 4 : (Width<=480) ? 3 : 2
ScriptClip("nf = YDifferenceToNext()"+chr(13)+ "nf >= SwitchThreshold ? \
unfilter( -(fmin(round(nf)*2, 100)), -(fmin(round(nf)*2, 100)) ) : \
TemporalSoften( fmin( round(2/nf), 6), round(1/nf) , round(3/nf) , 1, 1) ")

#
#
#

GripBorders()
#LetterBox( Your_Values_Here ) # Depends on situation. Use MovieStacker!
Limiter()

#
#
## Functions ###

function fmin( int f1, int f2) {
return ( f1<f2 ) ? f1 : f2
}

#
####

Dialhot 08-18-2003 06:13 PM

The command "YDifferenceToNext" used in MA part of the script is equivalent to a random access into the movie (you want to access directly to a specific frame). So I'm not surprised that this is not usable with a directshowsource.

Edlund 08-19-2003 12:20 AM

Quote:

LoadPlugin("C:\MOVIES\PROGRAMS\TMPGENC1\KVCD\MPEG2 Dec3.dll")
LoadPlugin("C:\MOVIES\PROGRAMS\TMPGENC1\KVCD\GripF it_YV12.dll")

avisource("C:\movies\dvd\motor.avi")
GripCrop(352, 240, overscan=1, source_anamorphic=false)
GripSize(resizer="BilinearResize")
GripBorders()
I have problems even with this script, I think I'll give up with this file, it fucked up everything. Now I can't play a single .avs, every program says that there is a error, for examole "runtime error, the application (zoomplayer, tmpgenc) has requested the Runtime to terminate it in an unusual way." I reinstalled avisynth few times but it didn't work so I will forget about this file and hope that can handle at least the others.

Dialhot 08-19-2003 03:45 AM

There is a avisource in the last script you reported. Did you try it with DirectShowSource ???

For your second problem, it can come from gripfit. Drop it and just make a script with that :

Code:

directshowsource("C:\movies\dvd\motor.avi")
That's all you need to see if your avi can be handled by avs. After this we will see what filter can be added.

Edlund 08-19-2003 05:26 AM

no:((( the same runtime error. I receive this error for everything, for directshowsource, avisource, this .avi, other .avis, I'll commit suicide:) Do you know what it means?

Krassi 08-19-2003 05:38 AM

Just my 2 cents:
Have you tried updating or reinstalling your divx-codec :?:

Edlund 08-19-2003 06:37 AM

Thanks, Krassi, I tried this too, I'm using ACE mega codecs pack 5.91, the problem remains the same

Edlund 08-19-2003 05:15 PM

Virtualdub opens my .avs files, but tmpenc and wmp - no.
I'm really asking for help from anybody who knows what this "runtime error" mean.

"runtime error, the application (zoomplayer, tmpgenc) has requested the Runtime to terminate it in an unusual way."

kwag 08-19-2003 05:22 PM

Hi Edlund,

Did you install "ReadAVS.dll" in your TMPGEnc folder :?:
If not, here: http://www.kvcd.net/ReadAVS.zip

-kwag


All times are GMT -5. The time now is 07:39 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.