[FFmpeg-user] search a DVD via the following regex - small correction

Mark Filipak (ffmpeg) markfilipak at bog.us
Sun Oct 11 20:51:07 EEST 2020


Sorry, I left out a '|', now corrected.

I need a way to search a DVD via the following regex, then display the hex of the captured bytes; 
either a Windows or a Linux method will do.

/\x00\x00\x01\xB5(\x11.|\x12.|\x13.|\x14[^\x82]|\x15.|\x16.|\x17.|\x18.|\x19.|\x1A.|\x1B.|\x1C.|\x1D.|\x1E.|\x1F.)/

The DVD barcode and returned captured bytes would be very valuable to me (and perhaps to many 
users). A script that I could run on my own would really float my boat.

Thanks so much,
Mark.

Of course you want to know why, eh?

I have yet to see a DVD that has this: 0x00 00 01 B5 1? ??, where '? ??' is other than '4 82' (i.e. 
MP at ML plus !progressive_sequence plus 4:2:0). The above regex performs such a match.

It's the 'sequence_extension' header ID metadata followed by 'profile_and_level_indication' -- the 
allowed combinations are shown in the table, below -- followed by 'progressive_sequence' followed by 
'chroma_format'.

0x00 00 01 B5 11 2 High at HighP
0x00 00 01 B5 11 4 High at High
0x00 00 01 B5 11 6 High at High1440
0x00 00 01 B5 11 8 High at Main
0x00 00 01 B5 11 A High at Low
0x00 00 01 B5 12 2 SpaciallyScalable at HighP
0x00 00 01 B5 12 4 SpaciallyScalable at High
0x00 00 01 B5 12 6 SpaciallyScalable at High1440
0x00 00 01 B5 12 8 SpaciallyScalable at Main
0x00 00 01 B5 12 A SpaciallyScalable at Low
0x00 00 01 B5 13 2 SNRScalable at HighP
0x00 00 01 B5 13 4 SNRScalable at High
0x00 00 01 B5 13 6 SNRScalable at High1440
0x00 00 01 B5 13 8 SNRScalable at Main
0x00 00 01 B5 13 A SNRScalable at Low
0x00 00 01 B5 14 2 Main at HighP
0x00 00 01 B5 14 4 Main at High
0x00 00 01 B5 14 6 Main at High1440
0x00 00 01 B5 14 8 Main at Main    <<== all DVDs?
0x00 00 01 B5 14 A Main at Low
0x00 00 01 B5 15 2 Simple at HighP
0x00 00 01 B5 15 4 Simple at High
0x00 00 01 B5 15 6 Simple at High1440
0x00 00 01 B5 15 8 Simple at Main
0x00 00 01 B5 15 A Simple at Low
0x00 00 01 B5 18 E Multi-view at Low
0x00 00 01 B5 18 D Multi-view at Main
0x00 00 01 B5 18 B Multi-view at High1440
0x00 00 01 B5 18 A Multi-view at High
0x00 00 01 B5 18 5 4:2:2 at Main
0x00 00 01 B5 18 2 4:2:2 at High

-- 
COVID-19 update:
28 Sep, U.S. deaths pass half of all U.S. dead in 4 years of WWII.
_______________________________________________
ffmpeg-user mailing list
ffmpeg-user at ffmpeg.org
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list