[FFmpeg-user] timed_id3 packet demuxing

Romain Beauxis romain.beauxis at gmail.com
Tue Jun 20 02:09:55 EEST 2023


Hi there!

I'm trying to demux a timed_id3 stream inside a mpegts container. I'm
getting packet data all right but the content is the ID3 tag data without
the ID3<version> header, which is pretty unfortunate since metadata frames
length have a different spec in each version (2/3/4)..

To repro you can use this file:
https://www.dropbox.com/s/jy8sih3pe8qskxb/bla.ts?dl=0
and this call:
ffprobe -show_streams -select_streams 0 -show_packets -show_private_data
-show_data /tmp/bla.ts

Output:
[PACKET]
codec_type=data
stream_index=0
pts=494195068
pts_time=5491.056311
dts=494195068
dts_time=5491.056311
duration=N/A
duration_time=N/A
size=21
pos=195708
flags=K__
data=
00000000: 0000 0000 1054 4954 3200 0000 0600 0003  .....TIT2.......
00000010: 7465 7374 00                             test.

I've looked at the AVStream and AVCodecParameter level to see a trace of
the header or version but couldn't find any.

Also can't find anything in the code that points at where/how those initial
5 bytes are removed.

Any ideas/suggestions?
-- Romain


More information about the ffmpeg-user mailing list