[python]TS流解析

聽說TS包長度是188個字節,真的是這樣?實驗一下(原理:0x47是TS包頭的第一個字節,做爲同步字段):html file = open('test.ts', 'rb') offset = 0 start = 0 section = file.read(188) while len(section) == 188: for c in section: if ord(
相關文章
相關標籤/搜索