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. |
12th May 2007, 11:47 | #1 | Link |
Registered User
Join Date: Dec 2005
Posts: 250
|
audio cutting
Trim() refuses to cut audio-only clips.
Is there a plugin, which can cut audio, either sample based or frame based, if given fps? (Or preferably both? ) -- Greets, I. Last edited by Ignus2; 12th May 2007 at 11:53. |
12th May 2007, 12:42 | #3 | Link |
Formerly davidh*****
Join Date: Jan 2004
Posts: 2,493
|
Couldn't you just use blankclip and audiodub to attach video to the clips, and then trim them? You can then use audiodub again to attach the audio to a different video, or getchannels to return an audio-only clip, I think.
David |
12th May 2007, 22:40 | #6 | Link |
Errant Knight
Join Date: Oct 2004
Location: St Louis, M0 US
Posts: 364
|
Hello,
At 41000 or 48000 samples per secound we have a whole lot of video frames being made. Not that there is anything wrong with that. Too many video frames will just be that, should not cause anything more than confusion.http://avsfilmcutter.com |
12th May 2007, 23:32 | #8 | Link |
Avisynth Developer
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,167
|
Code:
Function AudioTrim(clip aclip, int start, int end, float "fps") { rate = Default(fps, 25.0) # or 23.976, 29.97 end = (end != 0) ? end : Round(AudioLengthF(aclip) * rate / Audiorate(aclip)) BlankClip(length=end, fps=rate) AudioDub(aclip) Trim(start, end) KillVideo() # 2.5.7 feature return last } Last edited by IanB; 14th May 2007 at 10:28. Reason: AudioLenghtF -> AudioLengthF |
20th May 2007, 23:19 | #11 | Link |
Registered User
Join Date: Dec 2005
Posts: 250
|
Good, it seems the only thing, that made this thread surface was the fact, that I didn't know about the existence of AudioLength(), AudioRate() and the like
(For others seeking this information, like me, it's documented here: http://avisynth.org/mediawiki/Clip_properties) Thanks. -- Greets, I. |
1st August 2007, 21:14 | #12 | Link | |
Registered User
Join Date: Mar 2002
Location: Denmark
Posts: 42
|
Quote:
|
|
Tags |
audiotrim |
Thread Tools | Search this Thread |
Display Modes | |
|
|