[FFmpeg-user] dvdsubs
Mark Filipak
markfilipak.imdb at gmail.com
Fri Jun 27 02:45:36 EEST 2025
On 26/06/2025 17.49, Carl Zwanzig wrote:
> Please read that and the zoy.com article in references in a later email.
>
> z!
The zoy.com article is not correct. at least regarding MPEG2TS subtitles. They have left out the PES
flags, PES extension byte count, PES stream id and the PES extension.
My parse of an actual MPEG2TS, subtitle packet:
00000000 00 00 01 BA 44 0A 37 F1 C4 01 01 89 C3 F8 packet start & header
0000000E 00 00 01 BD private stream 1 start
00000012 03 D4 980 bytes follow
00000014 81 80 PES flags
00000016 05 PES extension byte count
00000017 21 PES stream id
00000018 02 8D FC 71 20 PES extension
0000001D 03 CB their 'S0'
0000001F 03 AD 0D ... their 'data'
...
000003CB 00 03 C5 03 00 ... their 'control'
...
000003E8 00 00 01 BE 04 12 padding start & header
000003EE FF FF FF ... padding bytes
...
00000800 next packet
But the zoy.com article did -- kinda -- show me where to look for the palette.
Thanks--Mark.
More information about the ffmpeg-user
mailing list