I have a video that first audio stream is aac and the second is DTS. I want to copy the first one but re-encode the second one to aac. The code I use usually is:

ffmpeg -hide_banner -stats -i "Movie.mkv" -c:v libx265 -x265-params crf=20 -map 0 -c:a copy "MovieOut.mkv"

How to do this?



ffmpeg -i "Movie.mkv" -map 0 -c:v libx265 -x265-params crf=20 -c:a:0 copy -c:a:1 aac "MovieOut.mkv"

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.