#7744 closed enhancement (fixed)
adding format_identifier via -tag[:specifier] to MPEGTS
Reported by: | zoolog | Owned by: | |
---|---|---|---|
Priority: | wish | Component: | avformat |
Version: | git-master | Keywords: | mpegts |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | no | |
Analyzed by developer: | no |
Description (last modified by )
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
Change History (14)
comment:2 by , 6 years ago
Version: | 4.1 → unspecified |
---|
Please understand that only bug reports against current FFmpeg git head and without the -hide_banner
options are valid. The download links you provided do not work here.
The tag
option cannot work for all formats, it does not work for mpegts. What is wrong with the output file you get?
comment:3 by , 6 years ago
If it is nessesary, I can show the same bahavior on latest git and without hide_banner, but the main thing is not at that. The main question is how to specify the format identifier to mpegts. Codec tag string is possible and works on mpegts, you can see it on example file I have attached 33-06000.ts
If the download links don't work here, how can I provide it? Filesize is more than 2.5 MB and I cannot attache it here directly. Thank you for the answer
comment:4 by , 6 years ago
Description: | modified (diff) |
---|
The tag
option cannot work for all formats, it does not work for mpegts. What is wrong with the output file you get?
follow-up: 6 comment:5 by , 6 years ago
My output file cannot be opened on LG and Toshiba TVs, example file with codec_tag_string=HEVC is played without any problems.
in output file I get I have codec_tag_string=[36][0][0][0]
in example 33-06000.ts file codec_tag_string=HEVC
How can I make "codec_tag_string=HEVC" for output TS file with ffmpeg?
comment:6 by , 6 years ago
Replying to zoolog:
My output file cannot be opened on LG and Toshiba TVs, example file with codec_tag_string=HEVC is played without any problems.
Did you report this bug to the manufacturers?
Did you test using such a file as input for FFmpeg?
in output file I get I have codec_tag_string=[36][0][0][0]
in example 33-06000.ts file codec_tag_string=HEVC
How can I make "codec_tag_string=HEVC" for output TS file with ffmpeg?
You cannot.
comment:7 by , 6 years ago
Ticket #2162 is related to my topic. How can I request to add this feature?
The field name for TS track is format_identifier.
dvbsnooop output for video track:
Stream_type: 36 (0x24) [= ITU-T Rec. H.222.0 | ISO/IEC 13818-1 reserved]
Elementary_PID: 211 (0x00d3)
MPEG-DescriptorTag: 5 (0x05) [= registration_descriptor]
descriptor_length: 4 (0x04)
format_identifier: 1212503619 (0x48455643) [= see: SC29]
HEVC
comment:8 by , 6 years ago
Keywords: | format_identifier added; vtag removed |
---|---|
Status: | new → open |
Summary: | ffmpeg doesn't force vtag to MPEGTS → adding format_identifier via -tag[:specifier] to MPEGTS |
Type: | defect → task |
comment:9 by , 6 years ago
Type: | task → enhancement |
---|
comment:10 by , 6 years ago
Component: | undetermined → avformat |
---|---|
Keywords: | format_identifier removed |
Priority: | normal → wish |
Version: | unspecified → git-master |
Please test this patch and report back:
http://ffmpeg.org/pipermail/ffmpeg-devel/2019-February/240438.html
comment:12 by , 6 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
33-06000.ts: https://dropmefiles.com/FIftm
5000-000.ts: https://dropmefiles.com/3I0Yx