Hello all, I am using the release 6.1 of ffmpeg, running on Windows 11 Family OS. I executed the following command : ffmpeg -i "source movie" -y -loglevel error -sn ^ -map 0:m:language:fre -acodec aac -ar 48k -b:a 192k ^ -map 0:m:language:eng -acodec aac -ar 48k -b:a 128k -ac 6 -channel_layout 5.1 -mapping_family:a 255 ^ -map 0:v:0 -vcodec libsvtav1 "destination movie" in order to encode differently the selected audio tracks. I noticed in the destination movie, is that the french audio track has effectively a 192k bitrate ; but the english audio track kept the same bitrate as the english audio track of the source movie, which is not 128k. So, is there a way to have the wished audios bitrates, with different bitrates among the selected audio tracks ? If there is a way, how is it possible to do that ? Thank you in advance for your replies and advices. Regards, HA
Hervé ANSELME via ffmpeg-user (HE12025-10-29):
ffmpeg -i "source movie" -y -loglevel error -sn ^ -map 0:m:language:fre -acodec aac -ar 48k -b:a 192k ^ -map 0:m:language:eng -acodec aac -ar 48k -b:a 128k -ac 6 -channel_layout 5.1 -mapping_family:a 255 ^ -map 0:v:0 -vcodec libsvtav1 "destination movie"
in order to encode differently the selected audio tracks.
You seem to be working under the assumption that the order of the parameters is what matters. It is not. The options you think apply to one stream but not the other actually apply either to both or to none. You need to use stream specifiers. Regards, -- Nicolas George
Hello Nicolas, What do you mean by stream specifier ? Does it mean I have to select audio streams by numbers (examples : -map 0:a:0 ; or -map 0:a:1) instead of selecting by language ? Or something else ? Thanks for your precisions and advices. Regards, HA ________________________________ From: Nicolas George via ffmpeg-user <ffmpeg-user@ffmpeg.org> Sent: Wednesday, October 29, 2025 13:41 To: FFmpeg user questions <ffmpeg-user@ffmpeg.org> Cc: Nicolas George <george@nsup.org> Subject: [FFmpeg-user] Re: ISSUE ABOUT AUDIO PARAMETERS Hervé ANSELME via ffmpeg-user (HE12025-10-29):
ffmpeg -i "source movie" -y -loglevel error -sn ^ -map 0:m:language:fre -acodec aac -ar 48k -b:a 192k ^ -map 0:m:language:eng -acodec aac -ar 48k -b:a 128k -ac 6 -channel_layout 5.1 -mapping_family:a 255 ^ -map 0:v:0 -vcodec libsvtav1 "destination movie"
in order to encode differently the selected audio tracks.
You seem to be working under the assumption that the order of the parameters is what matters. It is not. The options you think apply to one stream but not the other actually apply either to both or to none. You need to use stream specifiers. Regards, -- Nicolas George _______________________________________________ ffmpeg-user mailing list -- ffmpeg-user@ffmpeg.org To unsubscribe send an email to ffmpeg-user-leave@ffmpeg.org
Hervé ANSELME (HE12025-10-29):
Hello Nicolas,
Please do not write directly, especially when the mail tells you not to.
What do you mean by stream specifier ? Does it mean I have to select audio streams by numbers (examples : -map 0:a:0 ; or -map 0:a:1) instead of selecting by language ? Or something else ?
I mean you have to tell ffmpeg which stream you want to apply which option, which is done with stream specifiers as explained in the documentation. Your next step is to read the documentation.
________________________________ From: Nicolas George via ffmpeg-user <ffmpeg-user@ffmpeg.org> Sent: Wednesday, October 29, 2025 13:41 To: FFmpeg user questions <ffmpeg-user@ffmpeg.org> Cc: Nicolas George <george@nsup.org> Subject: [FFmpeg-user] Re: ISSUE ABOUT AUDIO PARAMETERS
Top-posting is forbidden on this mailing-list. If you do not know what it means look it up. Regards, -- Nicolas George
Am 29.10.25 um 14:34 schrieb Nicolas George via ffmpeg-user:
Hervé ANSELME (HE12025-10-29):
Hello Nicolas, Please do not write directly, especially when the mail tells you not to.
What do you mean by stream specifier ? Does it mean I have to select audio streams by numbers (examples : -map 0:a:0 ; or -map 0:a:1) instead of selecting by language ? Or something else ? I mean you have to tell ffmpeg which stream you want to apply which option, which is done with stream specifiers as explained in the documentation. Your next step is to read the documentation.
________________________________ From: Nicolas George via ffmpeg-user<ffmpeg-user@ffmpeg.org> Sent: Wednesday, October 29, 2025 13:41 To: FFmpeg user questions<ffmpeg-user@ffmpeg.org> Cc: Nicolas George<george@nsup.org> Subject: [FFmpeg-user] Re: ISSUE ABOUT AUDIO PARAMETERS Top-posting is forbidden on this mailing-list. If you do not know what it means look it up.
Regards,
If the ffmpeg documentation *would be as complete as possible, with as examples as possible*, no further questions would be necessary. Therefore the first step should be an detailed answer the next step a reference where it is to find with further hints, examples. I only can give a reference, worth to have a look : https://trac.ffmpeg.org/wiki/Map Regards Richard
Richard Bartczak via ffmpeg-user (HE12025-10-29):
If the ffmpeg documentation *would be as complete as possible, with as examples as possible*, no further questions would be necessary.
Therefore the first step should be an detailed answer the next step a reference where it is to find with further hints, examples.
I am sorry, are you under the impression that you are owed anything?
I only can give a reference, worth to have a look : https://trac.ffmpeg.org/wiki/Map
Not relevant in this case. -- Nicolas George
Am 29.10.25 um 15:49 schrieb Nicolas George via ffmpeg-user:
Richard Bartczak via ffmpeg-user (HE12025-10-29):
If the ffmpeg documentation *would be as complete as possible, with as examples as possible*, no further questions would be necessary.
Therefore the first step should be an detailed answer the next step a reference where it is to find with further hints, examples. I am sorry, are you under the impression that you are owed anything?
I only can give a reference, worth to have a look : https://trac.ffmpeg.org/wiki/Map Not relevant in this case.
I am sorry, but read and try to understand : "If the ffmpeg documentation would be as complete as possible, with as much examples as possible, no further questions would be necessary." From my side of view this is logic. Regards Richard
Am 29.10.2025 um 11:10 schrieb Hervé ANSELME via ffmpeg-user:
Hello all,
I am using the release 6.1 of ffmpeg, running on Windows 11 Family OS.
I executed the following command :
ffmpeg -i "source movie" -y -loglevel error -sn ^ -map 0:m:language:fre -acodec aac -ar 48k -b:a 192k ^ -map 0:m:language:eng -acodec aac -ar 48k -b:a 128k -ac 6 -channel_layout 5.1 -mapping_family:a 255 ^ -map 0:v:0 -vcodec libsvtav1 "destination movie"
in order to encode differently the selected audio tracks.
I noticed in the destination movie, is that the french audio track has effectively a 192k bitrate ; but the english audio track kept the same bitrate as the english audio track of the source movie, which is not 128k.
So, is there a way to have the wished audios bitrates, with different bitrates among the selected audio tracks ?
If there is a way, how is it possible to do that ?
I'm sorry, I cannot answer the exact question but I believe I can give you a hint. You need to specify the attribute for the bitrate for every stream. If you use numbers for the streams it would be -map 0:a -c:a:0 aac -b:a:0 96k -ar:0 44100 You use map for the languag. This may still result in stream 0 and -b:a:0 might be the solution Best, Bernhard
participants (4)
-
Bernhard Döbler -
Hervé ANSELME -
Nicolas George -
Richard Bartczak