Hi, but sorry I'ma a C*T
Please I have a input.avi and a input.wav source files:
the audio file (input.wav) is a stereo L+R file. I like have a output.mp4 (using FFMPEG) that have:
channel audio 1 and 2 the same input.wav but with panpot audio, and in channel audio 3 the R part of the input.wav meanwhile in channel audio 4 the L part of the input.wav
so that:
CH1=(the same of CH2) panpot L/R audio of the source
CH2=(the same of CH1) panpot L/L audio of the source
CH3=R of the source
CH4=L of the source
the video part is the same of the input.avi
How can I do? thanks
+ Reply to Thread
Results 1 to 16 of 16
-
-
Why are you lying about being a cat? I know cats. They have much better hearing than humans, even dogs.
Cats would not want to ruin the sound. What you are asking to do would ruin the sound for no good reason.
Hence, you must not be a cat!
Scott -
Provide more details :
CH1=(the same of CH2) panpot L/R audio of the source
CH2=(the same of CH1) panpot L/L audio of the source
CH3=R of the source
CH4=L of the source
It is not so clear... -
MMMM I don't know exactly: I attach the video file (input.avi) and audio file (input.wav):
the audio file have in the channel
L= Italian Rondo veneziano
R= Britnety Spears
maybe video output should have single audio track with two channels as the original source Input.wav but panpotted + another audio track in the "channels" 3 and 4 with exactly the same input.wav.
So that the file output should have:
1) the video part (using -vcodec copy)
2) a couple of audio channels L+R as the source but panpotted (so that in the "main" L and R I hear britney and rondo veneziano "fused", and another couple of audio channels (3 and 4) with exactly the same L+R of the original input.wav (for example britney in 3 and rondo veneziano in 4, however they are separated) -
Once again...
single audio with 4 channels i.e. 1x 4.0
two audio with two channels i.e. 2x 2.0
4 audios single channel i.e. 4x 1.0
? -
[Attachment 39999 - Click to enlarge]
mmmmmm I think is two audio with two channel i.e. 2x 2.0 -
Tested - it works - you need adjust multiplying coefficient side to channel (0.0 mean no audio - full mute to 1.0 unmodified i.e. original level, FR< will do auto level adjust to avoid clipping). Feel free to change audio codec and container.
Code:@ffmpeg -y -hide_banner -loglevel 32 -stats -i "%1" -map 0:v:0 -c:v copy -filter_complex "[0:a:0]asplit=2[aout0][aout1];[aout0]pan=stereo|FL<0.0FL+0.0FR|FR<0.0FR+0.0FL[a20c];[aout1]pan=stereo|FL<0.0FL+0.0FR|FR<0.0FR+0.0FL[a21c]" -map [a20c]:a:0 -c:a:0 aac -b:a:0 128k -map [a21c]:a:1 -c:a:1 aac -b:a:1 128k -f matroska "%~n1_.mkv"
Last edited by pandy; 22nd Dec 2016 at 09:23.
-
Thanks Pandy but as source I have a input.avi and input.wav separated A/V files: in your coomandline there is only a -i "%1" as input source and don't compare any other input to take my input.wav audio file. How can be modified the commandline to accept separated input source? thanks
-
Code:
@ffmpeg -y -hide_banner -loglevel 32 -stats -i "%1" -i "%2" -map 0:v:0 -c:v copy -filter_complex "[1:a:0]asplit=2[aout0][aout1];[aout0]pan=stereo|FL<0.5FL+0.5FR|FR<0.5FR+0.5FL[a20c];[aout1]pan=stereo|FL<FL+0.0FR|FR<FR+0.0FL[a21c]" -map [a20c]:a:0 -c:a:0 aac -b:a:0 128k -map [a21c]:a:1 -c:a:1 aac -b:a:1 128k -f matroska "%~n1_%~n2.mkv"
-
Similar Threads
-
Premiere: Duplicate left audio channel to the right channel?
By ash_melb in forum EditingReplies: 7Last Post: 21st Oct 2015, 11:32 -
How to re-edit a single channel on DTS audio 6 channel
By maisawka in forum EditingReplies: 7Last Post: 26th Jun 2014, 10:55 -
converting 6 channel audio to 2 channel & putting 2 streams in a container
By qorda in forum AudioReplies: 3Last Post: 14th Jan 2014, 02:43 -
Converting 6 channel audio to 2 channel stereo- Help needed
By drashkum in forum AudioReplies: 2Last Post: 7th Sep 2013, 22:33 -
Is it possible to get 6 channel audio from this file type?
By 54321blastoff in forum AudioReplies: 3Last Post: 13th Apr 2012, 13:07