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.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th December 2008, 23:22   #1  |  Link
trapp
Registered User
 
Join Date: Sep 2008
Posts: 7
Lay audio from .wav to a blank video via avisynth?

I have a .wav file (about 84 minutes long) with regular audio on one channel and audible ND time code on another channel. (I’m afraid I don’t know enough to say exactly WHAT channel that is – is there a Channel 2 on a .wav file? If so, I imagine that’s where the TC is.) When I listen to it in MediaPlayer, for example, the TC track is heard as an (annoying) clicking.

I’d like to create a blank video file and lay the “regular audio” against that – create a video file (with no picture, just black screen) of what was originally just audio, and, of course, without the annoying TC sound track interfering with the “regular audio.” (Uncompressed audio would be great.) Is this something I could do with avisynth?

To gild the lily, I’d like – if possible – to convert the TC info on the TC track into a visible SMPTE window on the video file. But if that’s too complex, just getting the Channel 1 audio laid against a black screen of video would be great. I could lay down an arbitrary SMPTE code against that myself and worry about working out the sync with the TC track on the .wav later.

Thanks,

John
trapp is offline   Reply With Quote
Old 19th December 2008, 23:32   #2  |  Link
Guest
Guest
 
Join Date: Jan 2002
Posts: 21,901
video = BlankClip(...) #parameters as needed
audio = WavSource("c:\file.wav")
mono = GetChannel(audio, 1) # try 1 through 6 until you find the desired channel
AudioDub(video, mono)
Guest is offline   Reply With Quote
Old 22nd December 2008, 22:24   #3  |  Link
trapp
Registered User
 
Join Date: Sep 2008
Posts: 7
Thanks for the helpful code. It worked great!

John
trapp is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:17.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.