digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Trim? (http://www.digitalfaq.com/archives/avisynth/11686-avisynth-trim.html)

bigggt 08-22-2004 07:57 AM

Trim?
 
Is this what i need to get rid of the first frame

Code:

Trim (1,0)
Where does it go in the script for example Phil's V4 script

BTW i RTFM but just don't quite understand :D

thanx

Prodater64 08-22-2004 09:13 AM

Re: Trim?
 
Quote:

Originally Posted by bigggt
Is this what i need to get rid of the first frame

Code:

Trim (1,0)
Where does it go in the script for example Phil's V4 script

BTW i RTFM but just don't quite understand :D

thanx

It's ok, but you need to trim video and audio also (maybe one frame makes no sense, I don't know)

I think you can use it in 2 ways:
1 -
mpeg2source()
trim(1,0)

or

2 -
trim(mpeg2source(),1,0)

BTW: What means RTFM?

bigggt 08-22-2004 09:21 AM

thanks Pro

RTFM means Read The F***ing Manual

i expected to get that from someone :D

Dialhot 08-22-2004 10:29 AM

And FYI, trim can be use in top or bottom of the script.

Prodater64 08-22-2004 10:36 AM

Quote:

Originally Posted by Dialhot
And FYI, trim can be use in top or bottom of the script.

Could somebody make a post (and some mod stick it) with all usual forum english abreviatures, in name of the netiquette rules?
What means FYI?

:?

Anerboda 08-23-2004 05:43 AM

Quote:

Originally Posted by Prodater64
Quote:

Originally Posted by Dialhot
And FYI, trim can be use in top or bottom of the script.

Could somebody make a post (and some mod stick it) with all usual forum english abreviatures, in name of the netiquette rules?
What means FYI?

:?

You can try this site if you want to know what all those acronyms/abbreviations means:

http://www.acronymfinder.com/

-Anerboda

Sorry bigggt, this is a little off topic :oops:

incredible 08-23-2004 08:03 AM

Re: Trim?
 
Quote:

Originally Posted by Prodater64
mpeg2source()
trim(1,0)

Note that mpeg2source means no audio as this only imports a d2v video-only frameserving.
So a simple Trim() will only affect the video and so afterwards audio will be out of sync when. So the only way would be to integrate the ac3 source into your avs script (which is not recommended due that a channel downmixing is better done in besweet). Or you do trim your AC3 before reencoding in besweet, but in Bewseet you deal with trimming in seconds! and not in Frames like in Avisynth. So thats more than tricky

jorel 08-23-2004 09:42 AM

Re: Trim?
 
Quote:

Originally Posted by incredible
Or you do trim your AC3 before reencoding in besweet, but in Bewseet you deal with trimming in seconds! and not in Frames like in Avisynth. So thats more than tricky

yeah.....and i have one program that my friend Michael Gornushkin- Migor(SVCDbuilder developer), build for me for that situations,is called splitter....can cut you dvd2avi files giving the time for besweet....
his words to me when send the prog:
"Its only an example for testing.
Try this with real process and check, if the time values are calculated right.
The program creates a text file.
Then, I need to know more exactly, what you need:
- the text file format. It will be better, if you will send me an example of the file, which you want to get.
- other futures, that you need. AC3 track extracting I don't know to do currently, but I'm learning. Or you may point me to the tool, that can do it. "
.....
if that little program can help you,just pm your mail to me.
i was using to do fade in and fade out in audio and video when i encode for 2 medias(2 kvcds)....is perfect for that.

:arrow: back to topic now:
if you will use fadein and fadeout in the script,use trim before that...
do something like this:

source....
filters....
trim(xxx,xxx)
fadein(yy)
fadeout(zzz)
always in the end of the script or it don't work!

Prodater64 08-23-2004 10:55 AM

I think you can encode and later cut from final movie with tmpgenc mpeg tools, even if your target is KDVD and you need your A/V streams separated, you can mux A/V, then cut, then demux.

rds_correia 08-23-2004 03:02 PM

OT
Quote:

Originally Posted by Prodater64
What means FYI?

Hi Pro,
Tough world we live in, huh? :)
I also still fight a bit to understand all the acronims that we deal with everyday here, too.
FYI stands for "for your information".
Hope the link Anerboda gave us will be usefull in the future.
Cheers
/OT

muaddib 09-03-2004 12:31 PM

Re: Trim?
 
Quote:

Originally Posted by incredible
Note that mpeg2source means no audio as this only imports a d2v video-only frameserving.
So a simple Trim() will only affect the video and so afterwards audio will be out of sync when. So the only way would be to integrate the ac3 source into your avs script (which is not recommended due that a channel downmixing is better done in besweet). Or you do trim your AC3 before reencoding in besweet, but in Bewseet you deal with trimming in seconds! and not in Frames like in Avisynth. So thats more than tricky

Hi incredible,

What about channel downmixing into a wav file with besweet and them integrate the wav source into your avs script? This way you could trim and fade with your script.
What I really want to know is if the audio editing and frame serving from AviSynth is as good as doing it outside the script. :?:

incredible 09-03-2004 02:31 PM

You can for instance load your AC3 file using Directshowsource(), in that case you can use AC3Filter.ax for decoding the AC3 and also downmixing via AC3filters settings. Im not shure if a 5.1 throughoutput would also work but anyway it would be senseless as you dont know to where each of the 5.1 will be routed to.

Prodater64 09-03-2004 03:48 PM

Quote:

Originally Posted by incredible
You can for instance load your AC3 file using Directshowsource(), in that case you can use AC3Filter.ax for decoding the AC3 and also downmixing via AC3filters settings. Im not shure if a 5.1 throughoutput would also work but anyway it would be senseless as you dont know to where each of the 5.1 will be routed to.

I don't think so. Take a look in http://ac3filter.sourceforge.net/
In fact avisynth directshowsource page, http://www.avisynth.org/DirectShowSource
recommends use of ac3filter or Channel Downmixer by Trombettworks.
It is very configurable, but in worse case, it will take ac3 and redirect channels as it receive it.
You can also to apply timestretch to a ac3 5.1 channels files, and another audio filters.
But you need configure ac3 output (2.0, 3.0, 5.1, etc.) every time if you want to change from one encoding to another.

incredible 09-04-2004 03:05 AM

FFdshow also gots an AC3 decoding/downmixing unit (IMHO).

Wel, everytime if u use DirectshowSource() ... on every input the filters have to be reconfigured. I do use everytime DirectsSource() on my captures as ffdshow comes with nice integrated filters like LogoAway chromashift and so on.

OT: Today Im getting a DVB-T PCI card and I cant wait to see how quality will rise on inputs - on the other hand some people reported a smaller bandwith per channel than DVB-S


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