Using Python to extract the first 188-byte packet from MPEG Transport Stream but do not see the sync byte
问题 I have the following code in Python: with open("my_transport_stream_file.ts", "rb") as f: data = f.read(188) print(data) In my mind, I believe I am extracting the first 188 bytes from the file i.e the first transport stream packet. Here's what I get: b'G@\x00\x10\x00\x00\xb0\r\x00\x01\xc1\x00\x00\x00\n\xe0e\x8d,\xa3\xec\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff