VideoHelp Forum

Try DVDFab and download streaming video, copy, convert or make Blu-rays,DVDs! Download free trial !
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Member
    Join Date
    Sep 2016
    Location
    Brazil
    Search PM
    Hello there, i wanted to know if there is possible to copy audio through avisynth script+ffmpeg encoding. When i load script in FFMpeg it show me audio input of "pcm_s16le" when the original source is AAC, so i dont know exactly where it's being converted from AAC to pcm_s16le and if i can avoid it and copy it directly without reeconding the audio.
    Quote Quote  
  2. avs frameserves uncompressed audio and video, so you can't "stream copy" from avs

    The solution is to use 2 inputs and -map . video with the avs, audio copied directly from the actual source

    -map 0:0 means first input, first stream . -map 1:1 means 2nd input 2nd stream (starting from zero, so track 1 is usually the audio)

    eg. it will look something like this

    Code:
    ffmpeg -i input.avs -i input.mp4 -map 0:0 -map 1:1 -c:v libx264 -c:a copy output.mp4
    Quote Quote  
  3. Member
    Join Date
    Sep 2016
    Location
    Brazil
    Search PM
    Thanks for the information. I'm using batch encoding, can this work in that way too?
    Quote Quote  
  4. Anything that can be done through CLI should be possible with the proper batch script.
    Quote Quote  



Similar Threads