[FFmpeg-trac] #7744(undetermined:new): ffmpeg doesn't force vtag to MPEGTS

FFmpeg trac at avcodec.org
Tue Feb 19 21:44:47 EET 2019


#7744: ffmpeg doesn't force vtag to MPEGTS
-------------------------------------+-------------------------------------
             Reporter:  zoolog       |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  unspecified  |               Resolution:
             Keywords:  vtag mpegts  |               Blocked By:
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Old description:

> Summary of the bug:
> I have the TS file, where I can see codec_tag_string setted to HEVC. This
> file is played by LG, Toshiba etc. tv's. When I'm trying to force this
> media format identifier to my file with ffmpeg with -vtag param, I can
> see codec_tag_string in FFmpeg output but the output file stays without
> changes.
>
> Example file 33-06000.ts with codec_tag_string=HEVC attached.
> Input file 5000-000.ts for test attached as well.
>
> ffmpeg version 4.1.1
>
> How to reproduce:
>
> {{{/usr/bin/ffmpeg -hide_banner -i /5000-000.ts -vtag HEVC -vcodec copy
> -acodec copy -sn -f mpegts 50.ts}}}
> Input #0, mpegts, from '/5000-000.ts':
>   Duration: 00:00:05.31, start: 1.400000, bitrate: 13307 kb/s
>   Program 1
>     Metadata:
>       service_name    : Service01
>       service_provider: FFmpeg
>     Stream #0:0[0x100]: Video: hevc (Main 10) ([36][0][0][0] / 0x0024),
> yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k
> tbn, 50 tbc
>     Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F),
> 48000 Hz, stereo, fltp, 126 kb/s
> Output #0, mpegts, to '50.ts':
>   Metadata:
>     encoder         : Lavf58.20.100
>     Stream #0:0: Video: hevc (Main 10) (HEVC / 0x43564548),
> yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50
> tbr, 90k tbn, 90k tbc
>     Stream #0:1(eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
> stereo, fltp, 126 kb/s
> Stream mapping:
>   Stream #0:0 -> #0:0 (copy)
>   Stream #0:1 -> #0:1 (copy)
> Press [q] to stop, [?] for help
> frame=  192 fps=0.0 q=-1.0 Lsize=    9101kB time=00:00:05.26
> bitrate=14149.7kbits/s speed= 304x
> video:8334kB audio:84kB subtitle:0kB other streams:0kB global headers:0kB
> muxing overhead: 8.112041%
>

> {{{ffprobe -hide_banner 50.ts}}}
> Input #0, mpegts, from '50.ts':
>   Duration: 00:00:05.31, start: 1.400000, bitrate: 14038 kb/s
>   Program 1
>     Metadata:
>       service_name    : Service01
>       service_provider: FFmpeg
>     Stream #0:0[0x100]: Video: hevc (Main 10) ([36][0][0][0] / 0x0024),
> yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k
> tbn, 50 tbc
>     Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F),
> 48000 Hz, stereo, fltp, 126 kb/s

New description:

 Summary of the bug:
 I have the TS file, where I can see codec_tag_string setted to HEVC. This
 file is played by LG, Toshiba etc. tv's. When I'm trying to force this
 media format identifier to my file with ffmpeg with -vtag param, I can see
 codec_tag_string in FFmpeg output but the output file stays without
 changes.

 Example file 33-06000.ts with codec_tag_string=HEVC attached.
 Input file 5000-000.ts for test attached as well.

 ffmpeg version 4.1.1

 How to reproduce:

 {{{
 /usr/bin/ffmpeg -hide_banner -i /5000-000.ts -vtag HEVC -vcodec copy
 -acodec copy -sn -f mpegts 50.ts
 Input #0, mpegts, from '/5000-000.ts':
   Duration: 00:00:05.31, start: 1.400000, bitrate: 13307 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: hevc (Main 10) ([36][0][0][0] / 0x0024),
 yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k
 tbn, 50 tbc
     Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F),
 48000 Hz, stereo, fltp, 126 kb/s
 Output #0, mpegts, to '50.ts':
   Metadata:
     encoder         : Lavf58.20.100
     Stream #0:0: Video: hevc (Main 10) (HEVC / 0x43564548),
 yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 50 fps, 50
 tbr, 90k tbn, 90k tbc
     Stream #0:1(eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
 stereo, fltp, 126 kb/s
 Stream mapping:
   Stream #0:0 -> #0:0 (copy)
   Stream #0:1 -> #0:1 (copy)
 Press [q] to stop, [?] for help
 frame=  192 fps=0.0 q=-1.0 Lsize=    9101kB time=00:00:05.26
 bitrate=14149.7kbits/s speed= 304x
 video:8334kB audio:84kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 8.112041%
 }}}

 {{{
 ffprobe -hide_banner 50.ts
 Input #0, mpegts, from '50.ts':
   Duration: 00:00:05.31, start: 1.400000, bitrate: 14038 kb/s
   Program 1
     Metadata:
       service_name    : Service01
       service_provider: FFmpeg
     Stream #0:0[0x100]: Video: hevc (Main 10) ([36][0][0][0] / 0x0024),
 yuv420p10le(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k
 tbn, 50 tbc
     Stream #0:1[0x101](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F),
 48000 Hz, stereo, fltp, 126 kb/s
 }}}

--

Comment (by cehoyos):

 The `tag` option cannot work for all formats, it does not work for mpegts.
 What is wrong with the output file you get?

--
Ticket URL: <https://trac.ffmpeg.org/ticket/7744#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list