Quantcast Avisynth: Trim? - digitalFAQ.com Forums [Archives]
  #1  
08-22-2004, 07:57 AM
bigggt bigggt is offline
Free Member
 
Join Date: Mar 2003
Location: IamCanadian
Posts: 848
Thanks: 0
Thanked 0 Times in 0 Posts
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

thanx
__________________
Bigggt
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
  #2  
08-22-2004, 09:13 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
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

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?
Reply With Quote
  #3  
08-22-2004, 09:21 AM
bigggt bigggt is offline
Free Member
 
Join Date: Mar 2003
Location: IamCanadian
Posts: 848
Thanks: 0
Thanked 0 Times in 0 Posts
thanks Pro

RTFM means Read The F***ing Manual

i expected to get that from someone
__________________
Bigggt
Reply With Quote
  #4  
08-22-2004, 10:29 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
And FYI, trim can be use in top or bottom of the script.
Reply With Quote
  #5  
08-22-2004, 10:36 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
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?

Reply With Quote
  #6  
08-23-2004, 05:43 AM
Anerboda Anerboda is offline
Free Member
 
Join Date: Mar 2003
Location: Denmark
Posts: 132
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #7  
08-23-2004, 08:03 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
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
Reply With Quote
  #8  
08-23-2004, 09:42 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
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.

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!
Reply With Quote
  #9  
08-23-2004, 10:55 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #10  
08-23-2004, 03:02 PM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
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
__________________
Rui
Reply With Quote
  #11  
09-03-2004, 12:31 PM
muaddib muaddib is offline
Free Member
 
Join Date: Jun 2002
Location: São Paulo - Brasil
Posts: 879
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #12  
09-03-2004, 02:31 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
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.
Reply With Quote
  #13  
09-03-2004, 03:48 PM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #14  
09-04-2004, 03:05 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
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
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
KVCD: Can't trim file? FFCcottage Video Encoding and Conversion 3 05-04-2007 09:22 AM
Avisynth: Is is possible to use the trim() function with audio supermule Avisynth Scripting 3 09-10-2005 03:05 AM
How can you trim kvcd without screwing it up? phuquehair Video Encoding and Conversion 5 02-01-2005 10:03 AM
Avisynth: Trim and ConditionalFilter? Mental Avisynth Scripting 23 11-01-2004 06:19 PM
Avisynth: Trim and FadeIn/FadeOut2 J-Wo Avisynth Scripting 3 06-29-2003 10:55 PM

Thread Tools



 
All times are GMT -5. The time now is 06:06 PM  —  vBulletin © Jelsoft Enterprises Ltd