[FFmpeg-user] How to correctly set "-audio_service_type hi"?
Moritz Barsnick
barsnick at gmx.net
Sat Nov 23 21:50:31 EET 2019
On Fri, Nov 22, 2019 at 12:05:59 +0100, André Weidemann wrote:
> I'm using ffmpeg version 3.4.6-0ubuntu0.18.04.1
If you have issues with ffmpeg, espeically potential bugs, kindly try a
recent version first.
In this case, it's likely a usage info, so old version forgiven, as far
as I am concerned. ;-)
> One of the audio streams is descriptive audio for the hearing impaired.
> Now I'd like to mark it as such in the newly created mkv file. ffmpeg
> only flags the subtitle stream as hearing impaired, but this was marked
> in the input file already...
>
> Does anyone know how to specifiy the stream that should be marked?
> I'd like to mark stream 0:2.
[...]
> ffmpeg -y -vsync 0 -hwaccel cuvid -i 00001.ts -ss 00:00:00.435
> -metadata title="SomeDescription" -metadata:s:a:1 language=deu
> -metadata:s:a:2 language=deu -metadata:s:a:3 language=deu
> -metadata:s:s:4 language=deu -map 0:0 -map 0:1 -map 0:3 -map 0:4 -map
> 0:2 -b:v 2M -c:v h264_nvenc -c:s dvdsub -c:a copy -audio_service_type
> hi -preset slow 1.mkv
As far as I can tell, "-audio_service_type" is a codec option, and
won't do you much good.
As Peter hinted, the "-disposition" option may be the correct one for
you. If I use
$ ffmpeg [...] -disposition:a:2 hearing_impaired [...]
ffmpeg marks the third output audio stream as such. Do give that a try.
(At least ffmpeg says it applies this to the output. I can't find any
indication in the actual output file though.)
Moritz
More information about the ffmpeg-user
mailing list