Need AVS Codes

This forum is for questions and discussion of all the aspects of handling your footage. If you have questions about capturing/ripping footage, AviSynth, or compression/encoding/converting, look here.

Need AVS Codes

Postby ForeverZeroo » Sat Aug 01, 2009 5:38 pm

Hello. My apartment was robbed and my computer was stolen (for a 2nd time within a year....JOY)

May I have some basic AVS codes. Also ones which would make MKV files work.

or anything else that might be useful down the road.

SOrry for the bothering but i basicly lost everything (Including about 3 or 4 projects i was working on T_T)
Image
Image
User avatar
ForeverZeroo
 
Joined: 03 Aug 2003
Location: Philadelphia, Pa

Re: Need AVS Codes

Postby LantisEscudo » Sat Aug 01, 2009 10:59 pm

ffmpegsource is probably your best bet for working with MKVs.

Quick usage example:
Code: Select all
v=ffvideosource("path\to\file.mkv", vtrack=-1)
a=ffaudiosource("path\to\file.mkv", atrack=-1)
AudioDub(v,a)

This example is if you need both audio and video, if you just need video, omit the last two lines and the "v=" of the first line.
User avatar
LantisEscudo
 
Joined: 08 Mar 2001
Location: Vermont

Re: Need AVS Codes

Postby ForeverZeroo » Sat Aug 01, 2009 11:50 pm

LantisEscudo wrote:ffmpegsource is probably your best bet for working with MKVs.

Quick usage example:
Code: Select all
v=ffvideosource("path\to\file.mkv", vtrack=-1)
a=ffaudiosource("path\to\file.mkv", atrack=-1)
AudioDub(v,a)

This example is if you need both audio and video, if you just need video, omit the last two lines and the "v=" of the first line.


Which beta do you suggest is best for me to download....number 10?
do i need to put it in a certain place for it to work?
Sorry. The techy stuff isnt my stength. ^^;;
Image
Image
User avatar
ForeverZeroo
 
Joined: 03 Aug 2003
Location: Philadelphia, Pa

Re: Need AVS Codes

Postby LantisEscudo » Sun Aug 02, 2009 12:17 am

If you get the latest AMVApp, it includes the needed files in the AVSPluginPack.exe. If you're downloading it on your own, get the most recent 2.00 beta (currently 10, IIRC) and extract all the files in the archive to your AviSynth plugins directory (typically C:\Program Files\AviSynth 2.5\plugins\).
User avatar
LantisEscudo
 
Joined: 08 Mar 2001
Location: Vermont

Re: Need AVS Codes

Postby ForeverZeroo » Sun Aug 02, 2009 10:51 am

LantisEscudo wrote:If you get the latest AMVApp, it includes the needed files in the AVSPluginPack.exe. If you're downloading it on your own, get the most recent 2.00 beta (currently 10, IIRC) and extract all the files in the archive to your AviSynth plugins directory (typically C:\Program Files\AviSynth 2.5\plugins\).


OK i dunno why my amvapp didnt have that. but i downloaded the current 2.00 beta, 10. Put the extraxted files into the file you said.
restarted and it seems to have made a change. now the error says this:

Avisynth Open Failure:
Script Error: ffvideosource does not have a named argument "vtracK"

I went back in and tried entering the v= was well..but that didnt work either.

here is my script:
#ASYNTHER Default (ffvideosource)
v=ffvideosource("C:\Program Files\BitLord\Downloads\[EG-BSS]_Tengen_Toppa_Gurren-Lagann_[DVD]\[BSS]Gurren_Lagann_20_DVD[EE095A1D].avs", vtrack=-1)


Thanks for any help pointing out what i did wrong. I really wanna get started on this
Image
Image
User avatar
ForeverZeroo
 
Joined: 03 Aug 2003
Location: Philadelphia, Pa

Re: Need AVS Codes

Postby LantisEscudo » Sun Aug 02, 2009 11:05 am

Ah, that was my mistake. It's just "track" in 2.00, not "vtrack" like it was in 1.21. I was remembering the name from the old versions.
User avatar
LantisEscudo
 
Joined: 08 Mar 2001
Location: Vermont

Re: Need AVS Codes

Postby ForeverZeroo » Sun Aug 02, 2009 11:12 am

LantisEscudo wrote:Ah, that was my mistake. It's just "track" in 2.00, not "vtrack" like it was in 1.21. I was remembering the name from the old versions.


BAH!
changed it annnnnd:
Avisynth open Failure:
FFVideoSource: Can't Open "ffvideosource("C:\Program Files\BitLord\Downloads\[EG-BSS]_Tengen_Toppa_Gurren-Lagann_[DVD]\[BSS]Gurren_Lagann_20_DVD[EE095A1D].avs", track=-1)" line 2

here is my full script i used. i also tried opening with "open using avisynth" and i also tried adding v= in the front of my script's 2nd line. and a combination of both. none of that worked either.

Sorry. it seems to be a theme i run into every problem known to man. Next it'll say: "Avisynth Open Failure: First make peace on earth." -.-
Image
Image
User avatar
ForeverZeroo
 
Joined: 03 Aug 2003
Location: Philadelphia, Pa

Re: Need AVS Codes

Postby LantisEscudo » Sun Aug 02, 2009 11:20 am

Try just using the "Open..." command and opening the AVS that way. "Open via AviSynth..." is to make a NEW script pointing to an existing video file.
User avatar
LantisEscudo
 
Joined: 08 Mar 2001
Location: Vermont

Re: Need AVS Codes

Postby ForeverZeroo » Sun Aug 02, 2009 11:28 am

LantisEscudo wrote:Try just using the "Open..." command and opening the AVS that way. "Open via AviSynth..." is to make a NEW script pointing to an existing video file.


Yeah i Did. and thats the error it gave me.
I opened with avisynth afterwards for the hell of it..but i guess that wouldnt have done any good ^^;
Image
Image
User avatar
ForeverZeroo
 
Joined: 03 Aug 2003
Location: Philadelphia, Pa

Re: Need AVS Codes

Postby mirkosp » Sun Aug 02, 2009 11:35 am

ffvideosource("C:\Program Files\BitLord\Downloads\[EG-BSS]_Tengen_Toppa_Gurren-Lagann_[DVD]\[BSS]Gurren_Lagann_20_DVD[EE095A1D].avs", track=-1)

You'll want your file's extension instead of avs in there (I believe it's an mkv?) and the audio should be loaded separately and added with audiodub (v2 is buggy and beta for a reason).

EDIT: Actually, let's make the things easier. Do you have the CCCP installed? If so, go to "C:\Program Files\Combined Community Codec Pack\Filters\Haali", copy the avss.dll, and paste it into "C:\Program Files\AviSynth 2.5\plugins".
Then, call your mkv like
Code: Select all
dss2("C:\Program Files\BitLord\Downloads\[EG-BSS]_Tengen_Toppa_Gurren-Lagann_[DVD]\[BSS]Gurren_Lagann_20_DVD[EE095A1D].mkv")

Again, since I believe it is an mkv, I put mkv in there, but just use the actual extension if it's different.
dss2 will be able to load any file that directshow can open on your pc. Basically, it's like directshowsource, except that it is frame accurate, which is why ffmpegsource/ffvideousource/ffmpegsource2 get suggested - the basic directshowsource isn't frame accurate so that's why it should be used only for transcoding purposes. dss2, however, is completely fine. Also, it will audio audio by default and it won't need to create index files, but in my experience, it is faster than any other loader.
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Need AVS Codes

Postby ForeverZeroo » Sun Aug 02, 2009 11:40 am

mirkosp wrote:ffvideosource("C:\Program Files\BitLord\Downloads\[EG-BSS]_Tengen_Toppa_Gurren-Lagann_[DVD]\[BSS]Gurren_Lagann_20_DVD[EE095A1D].avs", track=-1)

You'll want your file's extension instead of avs in there (I believe it's an mkv?) and the audio should be loaded as atrack=-1, not just track.


AH! I didnt spot that! Thanks...i added it. annnnnd....

AND IT WORKS!

Thanks!

Im sorry such a stupid thing caused more problems then it needed to!
Im very thankful for both of your help! Thanks a ton!
Image
Image
User avatar
ForeverZeroo
 
Joined: 03 Aug 2003
Location: Philadelphia, Pa

Re: Need AVS Codes

Postby mirkosp » Sun Aug 02, 2009 11:47 am

Oh, seems like you solved the other way. :P
Heh, I should try to think if there is anything else I want to add or change before sending anything, instead of just editing the post after I do. >_>
Image
User avatar
mirkosp
MODkip
 
Joined: 24 Apr 2006
Location: Gallarate (VA), Italy
Status: (」・ワ・)」(⊃・ワ・)⊃

Re: Need AVS Codes

Postby Qyot27 » Sun Aug 02, 2009 3:33 pm

LantisEscudo wrote:Ah, that was my mistake. It's just "track" in 2.00, not "vtrack" like it was in 1.21. I was remembering the name from the old versions.

If you prefer to use the old syntax, it does recognize vtrack if you use FFmpegSource2 as the name of the function due to the AVSI compatibility wrapper included since beta...6, I think? Calling vtrack is almost never necessary anyway, unless you're working with multiple angles. vtrack=-1 is assumed by default, even if atrack=-1 is not.

Also, 1.21 and the 2.00 beta versions don't conflict with each other, so it's completely fine to have both just to cover all your bases.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs

Re: Need AVS Codes

Postby LantisEscudo » Tue Aug 04, 2009 12:56 pm

I think beta 7 introduced the wrapper. I always explicitly set the tracks, just to be on the safe side, since I've found that defaults can sometimes be really odd (vtrack=-1, atrack=-2 is my usual set).
User avatar
LantisEscudo
 
Joined: 08 Mar 2001
Location: Vermont

Re: Need AVS Codes

Postby Qyot27 » Tue Aug 04, 2009 3:33 pm

LantisEscudo wrote:I think beta 7 introduced the wrapper. I always explicitly set the tracks, just to be on the safe side, since I've found that defaults can sometimes be really odd (vtrack=-1, atrack=-2 is my usual set).

Ah. I do that to a degree as well, sometimes. For AssumeFPS and SSRC, I always use the full sync_audio=true and fast=false parameters and not just use the boolean functions.

Perhaps what I remember was just grabbing the function from TheFluff's post instead, which was posted a couple versions before it was included in the official release. It was somewhere around 6 or 7 that it finally started being distributed with the dll, though.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog
User avatar
Qyot27
Surreptitious fluffy bunny
 
Joined: 30 Aug 2002
Location: St. Pete, FL
Status: Creepin' between the bullfrogs


Return to Footage Help

Who is online

Users browsing this forum: No registered users and 1 guest