How to correctly set "-audio_service_type hi"?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

How to correctly set "-audio_service_type hi"?

André Weidemann
Hi,

I'd like to transcode a TS file containing several streams. There is one
video, 3 audio and one subtitle stream.

I'm using ffmpeg version 3.4.6-0ubuntu0.18.04.1

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.

Thanks in advance
  André


This is my commandline:

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

ffmpeg prints the following for input and output:

Input #0, mpegts, from '00001.ts':
   Duration: 01:29:44.02, start: 37145.012544, bitrate: 11153 kb/s
   Program 132
     Stream #0:0[0x13ed]: Video: h264 (High) ([27][0][0][0] / 0x001B),
yuv420p(progressive), 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k
tbn, 100 tbc
     Stream #0:1[0x13ee](deu): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
Hz, stereo, s16p, 256 kb/s
     Stream #0:2[0x13ef](mis): Audio: mp2 ([3][0][0][0] / 0x0003), 48000
Hz, stereo, s16p, 256 kb/s
     Stream #0:3[0x13f2](deu): Audio: ac3 ([6][0][0][0] / 0x0006), 48000
Hz, 5.1(side), fltp, 448 kb/s
     Stream #0:4[0x13f1](deu): Subtitle: dvb_subtitle ([6][0][0][0] /
0x0006) (hearing impaired)
Stream mapping:
   Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
   Stream #0:1 -> #0:1 (copy)
   Stream #0:2 -> #0:2 (copy)
   Stream #0:3 -> #0:3 (copy)
   Stream #0:4 -> #0:4 (dvb_subtitle (dvbsub) -> dvd_subtitle (dvdsub))
Press [q] to stop, [?] for help

Output #0, matroska, to '1.mkv':
   Metadata:
     title           : SomeDescription
     encoder         : Lavf57.83.100
     Stream #0:0: Video: h264 (h264_nvenc) (Main) (H264 / 0x34363248),
yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 2000 kb/s, 50 fps, 1k
tbn, 50 tbc
     Metadata:
       encoder         : Lavc57.107.100 h264_nvenc
     Side data:
       cpb: bitrate max/min/avg: 0/0/2000000 buffer size: 4000000
vbv_delay: -1
     Stream #0:1(deu): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz,
stereo, s16p, 256 kb/s
     Stream #0:2(deu): Audio: mp2 (P[0][0][0] / 0x0050), 48000 Hz,
stereo, s16p, 256 kb/s
     Stream #0:3(deu): Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz,
5.1(side), fltp, 448 kb/s
     Stream #0:4(deu): Subtitle: dvd_subtitle (dvdsub) (hearing impaired)
     Metadata:
       encoder         : Lavc57.107.100 dvdsub


_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".

smime.p7s (6K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: How to correctly set "-audio_service_type hi"?

Mark Filipak
On 11/22/2019 06:05 AM, André Weidemann wrote:

> Hi,
>
> I'd like to transcode a TS file containing several streams. There is one
> video, 3 audio and one subtitle stream.
>
> I'm using ffmpeg version 3.4.6-0ubuntu0.18.04.1
>
> 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.

Hi André,

Not an ff solution, but I've successfully changed the names of '.mkv'
audio & subtitle streams with a tool named MKVToolNix.

HTH,
Mark Filipak.
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to correctly set "-audio_service_type hi"?

Peter van den Houten
On 11/22/2019 06:05 AM, André Weidemann wrote:

> Hi,
>
> I'd like to transcode a TS file containing several streams. There is one
> video, 3 audio and one subtitle stream.
>
> I'm using ffmpeg version 3.4.6-0ubuntu0.18.04.1
>
> 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.

These are a few of the metadata tags you can use. Several have sample
data that I've used. You'll want to change the disposition tag to suite
your use:

-metadata description=""
-metadata title=""
-metadata year=""
-metadata category=""
-metadata podcast=""
-metadata genre=""
-metadata artist=""
-metadata date=""
-metadata album=""
-metadata comment=""
-metadata media_type=""

-metadata:s:v:0 title="10Mbps 1080p AVC"
-metadata:s:v:0 language=eng
-disposition:v:0 default

-metadata:s:a:0 title="1509Kbps 5.1 channel DTS"
-metadata:s:a:0 language=eng
-disposition:a:0 default

-metadata:s:s:0 title="English UTF"
-metadata:s:s:0 language=eng
-disposition:s:0 none

-metadata:s:s:1 title="French UTF"
-metadata:s:s:1 language=fre
-disposition:s:1 none

-metadata:s:s:2 title="French UTF FORCED"
-metadata:s:s:2 language=fre
-disposition:s:2 none

-metadata:s:s:3 title="German SRT"
-metadata:s:s:3 language=ger
-disposition:s:3 none

-metadata:s:s:4 title="Spanish SRT"
-metadata:s:s:4 language=spa
-disposition:s:4 none

-metadata:s:s:5 title="Dutch SRT"
-metadata:s:s:5 language=dut
-disposition:s:5 default

-metadata:s:s:6 title="Italian SRT"
-metadata:s:s:6 language=ita
-disposition:s:6 none
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: How to correctly set "-audio_service_type hi"?

Moritz Barsnick
In reply to this post by André Weidemann
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
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".