VideoHelp Forum




+ Reply to Thread
Results 1 to 16 of 16
  1. 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
    Quote Quote  
  2. Use an NLE that supports 5.1 sound. I use Sony Vegas Pro, and it handles this sort of thing easily. I'm sure others can suggest cheaper alternatives.
    Quote Quote  
  3. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    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
    Quote Quote  
  4. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    See this page for examples of audio channel manipulation with FFmpeg.
    Quote Quote  
  5. please can someone help a family of cats?
    Quote Quote  
  6. 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
    Video has 2 single audio tracks or single audio track with two channels?
    It is not so clear...
    Quote Quote  
  7. Originally Posted by pandy View Post
    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
    Video has 2 single audio tracks or single audio track with two channels?
    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)
    Image Attached Files
    Quote Quote  
  8. 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

    ?
    Quote Quote  
  9. Image
    [Attachment 39999 - Click to enlarge]



    mmmmmm I think is two audio with two channel i.e. 2x 2.0
    Quote Quote  
  10. 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.
    Quote Quote  
  11. Originally Posted by pandy View Post
    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"
    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
    Quote Quote  
  12. Originally Posted by marcorocchini View Post
    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"
    Quote Quote  
  13. Originally Posted by pandy View Post
    Originally Posted by marcorocchini View Post
    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"
    it works!!
    Image Attached Thumbnails Click image for larger version

Name:	tahnkyoucat.jpg
Views:	103
Size:	27.2 KB
ID:	40030  

    Quote Quote  
  14. Originally Posted by marcorocchini View Post
    it works!!
    Great, glad to help.
    Quote Quote  
  15. Originally Posted by pandy View Post
    Originally Posted by marcorocchini View Post
    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"
    Pandy a little kindness: and if I want control the audio volume on all the 4 audio track how can I do?

    for example in my old commandline I used -
    Code:
    af volume=1.5
    but in this case how can it be do? thanks
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!