Log in

View Full Version : Avisynth-how to choice of sound track


NAFANJA
15th September 2010, 19:02
I have video clip with two audio track, how to use Avisynth choose one of these tracks?

Sharktooth
16th September 2010, 16:20
demux the audio track first... then import the track you want to use.

NAFANJA
16th September 2010, 16:33
demux the audio track first... then import the track you want to use.

How can i do it?

Sharktooth
16th September 2010, 16:35
it depends on the videoclip format.
however, if you :search: you will know how.

NAFANJA
16th September 2010, 16:40
if you mean use not Avisythn it's not for me. I need write avs script which can choose on of audio track from video clip and then convert it.

Sharktooth
16th September 2010, 17:08
then you need an audio decoder for avisynth that supports multiple audio tracks and supports the selection of the audio track. i dont know if it exists.

Ghitulescu
16th September 2010, 17:11
Feel free to use any of these -> http://avisynth.org/mediawiki/Internal_filters#Audio_processing_filters

jmartinr
16th September 2010, 19:20
FFmpegSource

NAFANJA
16th September 2010, 19:30
Can you write example of avs script where choose audio track?

AlekseiV
17th September 2010, 04:16
Can you write example of avs script where choose audio track?audio = FFAudioSource("file.mkv", 2) # or track#3, or #4, etc
video = FFVideoSource("file.mkv")
AudioDub(video, audio)