0

I want to add new audio stream (ONE) to some video file (which already has 1 or more audio streams):

ffmpeg.exe -y -i "C:\video.mp4" -i "C:\video Fre.mp4" -c:v copy -c:a copy -map 0:v -map 0:a -map 1:1 -map_metadata 0 -metadata:s:a:0 language=eng -metadata:s:a:1 language=fre "C:\result_1.mp4"

Now I manually set language metadata for existing stream (-metadata:s:a:0 language=eng) and also manually set number for new audio stream (metadata:s:a:1). Is there any possibility set metadata for the LAST audio stream just like:

-metadata:s:a:last language=fre

And can I to automatic copy language metadata from existing audio streams? (not to set them each time manually, just to copy from source video file).

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.