Opened 2 years ago

Closed 10 months ago

#9540 closed defect (fixed)

time_id3 metadata is not properly copied

Reported by: Carlos Salazar Owned by:
Priority: normal Component: ffmpeg
Version: unspecified Keywords: timed_id3
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Carlos Salazar)

When trying to map and copy time_id3 metadata from a .ts file to a .ts file, the time_id3 metadata is copied (e.g PRIV tags) but the ID3 header is not inserted (0x49 0x44 0x33).

ID3v2 header

The first part of the ID3v2 tag is the 10 byte tag header, laid out
as follows:

ID3v2/file identifier "ID3"
ID3v2 version $04 00
ID3v2 flags %abcd0000
ID3v2 size 4 * %0xxxxxxx

https://id3.org/id3v2.4.0-structure

% ffmpeg -i 3.ts -map 0:a -c:a copy -map 0:v -c:v copy -map 0:d -c:d copy  -f mpegts  3b.ts
ffmpeg version N-104633-g0e22d2e59b
built with Apple clang version 12.0.0

Attachments (3)

source-correctID3Header.png (221.0 KB ) - added by Carlos Salazar 2 years ago.
output-missingID3Header.png (217.0 KB ) - added by Carlos Salazar 2 years ago.
3.ts (394.4 KB ) - added by Carlos Salazar 2 years ago.
Source TS file

Download all attachments as: .zip

Change History (6)

by Carlos Salazar, 2 years ago

Attachment: source-correctID3Header.png added

by Carlos Salazar, 2 years ago

Attachment: output-missingID3Header.png added

by Carlos Salazar, 2 years ago

Attachment: 3.ts added

Source TS file

comment:1 by Carlos Salazar, 2 years ago

Description: modified (diff)

comment:2 by toots, 10 months ago

I can confirm that. This is linked to this: http://ffmpeg.org/pipermail/ffmpeg-user/2023-June/056532.html

You can also reproduce it using the remux example, adapted to allow remuxing AVMEDIA_TYPE_DATA streams. Each time the streams are remuxed, the timed_id3 packets loose exactly 5 bytes..

comment:3 by toots, 10 months ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.