Hi >&& respect for cats thanks
please consider this source that have only 1 audio track (with 2 stereo channels) correctly loaded (with video) in avisynth:
https://www.dropbox.com/s/uzuqgmlykcor2o0/input1_2.mov?dl=0
[Attachment 49899 - Click to enlarge]
and all is okCode:vid=LWLibavVideoSource("C:\Users\Administrator\Desktop\Nuova cartella (7)\input1_2.mov") aud=LWLibavAudioSource("C:\Users\Administrator\Desktop\Nuova cartella (7)\input1_2.mov") left=GetChannel(aud, 1) right=GetChannel(aud, 2) both=mergechannels(left, right) audiodub(vid, both) ConvertAudioTo16Bit()
------------------------------------------------------------------------------------------------------------------------------------------
But now I have another source: is the same but with another audio track (in total are 2 audio tracks, and each one have 2 audio channels)
https://www.dropbox.com/s/h2x204v9csf7io2/input1_2_3_4.mov?dl=0
[Attachment 49900 - Click to enlarge]
How to load the second audio track in avisynth?!?
How can I do the script so avisynth expose the 2 audio tracks?
thanks
+ Reply to Thread
Results 1 to 9 of 9
-
-
[Attachment 49901 - Click to enlarge]
because I'm a cat
low level intellingent cat -
Code:
vid=LWLibavVideoSource("C:\Users\Administrator\Desktop\Nuova cartella (7)\input1_2_3_4.mov") aud=LWLibavAudioSource("C:\Users\Administrator\Desktop\Nuova cartella (7)\input1_2_3_4.mov", stream_index=0) aud2=LWLibavAudioSource("C:\Users\Administrator\Desktop\Nuova cartella (7)\input1_2_3_4.mov", stream_index=1) left=GetChannel(aud, 1) right=GetChannel(aud, 2) ch3=GetChannel(aud2, 1) ch4=GetChannel(aud2, 2) both2=mergechannels(ch3, ch4) both=mergechannels(left, right) audiodub(vid, both) ConvertAudioTo16Bit()
this script expose only 1 audio track, how I have modify the script to have the 2 audio ? -
You want to mix the two audio tracks? Use MixAudio():
Code:vid=LWLibavVideoSource("C:\Users\Administrator\Desktop\Nuova cartella (7)\input1_2_3_4.mov") aud=LWLibavAudioSource("C:\Users\Administrator\Desktop\Nuova cartella (7)\input1_2_3_4.mov", stream_index=0) aud2=LWLibavAudioSource("C:\Users\Administrator\Desktop\Nuova cartella (7)\input1_2_3_4.mov", stream_index=1) AudioDub(vid, MixAudio(aud, aud2))
-
no sorry I don't need to mix the audio tracks, simply I need to expose the 2 audio track where each track have the 2 audio stereo channels. All audio channels have to be separated
-
AviSynth doesn't support multiple audio track output. You could only mix 2 stereo inputs into a 4 channel track, then separate them again in the software you are using to access AviSynth's output (e.g. ffmpeg). Or simply use 2 different scripts.
-
You could merge the four channels into a single quad track:
Code:MergeChannels(GetChannel(aud, 1), GetChannel(aud, 2), GetChannel(aud2, 1), GetChannel(aud2, 2))
-
[Attachment 49903 - Click to enlarge]
Code:audPair1=LWLibavAudioSource("spaceForInputFileNameAudio", stream_index=0) audPair2=LWLibavAudioSource("spaceForInputFileNameAudio", stream_index=1) leftPair1=GetChannel(audPair1, 1) rightPair1=GetChannel(audPair1, 2) leftPair2=GetChannel(audPair2, 1) rightPair2=GetChannel(audPair2, 2) both=mergechannels(leftPair1, rightPair1, leftPair2, rightPair2) audiodub(vid, both) ConvertAudioTo16Bit()
yes it's true, if I don't mistake output 1 track but in this case with 4 audio channels. However Mainconcept totalcode recognize as well this audio configuration
[Attachment 49904 - Click to enlarge]
Similar Threads
-
Using avisynth to encode and merge 2 separate audio tracks??
By killerteengohan in forum RestorationReplies: 26Last Post: 12th Jul 2018, 21:36 -
VSDC ~ How to load Audio and Video Tracks, but only Edit the Video
By u2rcrazybaby in forum EditingReplies: 0Last Post: 5th Sep 2017, 18:37 -
HELP A CAT PLEASE: why I cannot load in avisynth this audio?
By marcorocchini in forum Newbie / General discussionsReplies: 2Last Post: 15th Aug 2017, 16:01 -
Avisynth: Loading images like we load subtitles
By ReubenMru in forum EditingReplies: 2Last Post: 27th Jan 2017, 16:30 -
avisynth slow to load using FFVideoSource(....) than Virtualdub
By marcorocchini in forum Newbie / General discussionsReplies: 15Last Post: 23rd Sep 2014, 16:48