Eyevinn / mp2ts-tools

Tools for MPEG-2 TS
MIT License
14 stars 0 forks source link

Feat/support hevc #6

Closed Wkkkkk closed 8 months ago

Wkkkkk commented 8 months ago

HEVC streams are parsed into:

{"pid":256,"codec":"HEVC","type":"video"}
{"pid":257,"codec":"AAC","type":"audio"}
{"pid":256,"parameterSet":"VPS","nr":0,"hex":"40010c01ffff016000000300b00000030000030078170240","length":24}
{"pid":256,"parameterSet":"SPS","nr":0,"hex":"420101016000000300b00000030000030078a005020171f2e205ee45914bff2e7f13fa9a8080808040","length":41}
{"pid":256,"parameterSet":"PPS","nr":0,"hex":"4401c072f05324","length":7}
{"pid":256,"rai":true,"pts":1920,"nalus":[{"type":"AUD_35","len":3},{"type":"VPS_32","len":24},{"type":"SPS_33","len":41},{"type":"PPS_34","len":7},{"type":"SEI_39","len":31,"data":"SEI type 5, size=26, uuid=\"47564adc5c4c433f94efc5113cd143a8\", payload=\"\\x03\\xee\\x00\\x00\\xee\\x02\\x00\\x0fB@\""},{"type":"RAP_IDR_20","len":12860}]}
{"pid":256,"rai":false,"pts":4920,"nalus":[{"type":"AUD_35","len":3},{"type":"NonRAP_Trail_1","len":409}]}
{"pid":256,"rai":false,"pts":7920,"nalus":[{"type":"AUD_35","len":3},{"type":"NonRAP_Trail_1","len":332}]}
{"pid":256,"rai":false,"pts":10920,"nalus":[{"type":"AUD_35","len":3},{"type":"NonRAP_Trail_1","len":427}]}
{"pid":256,"rai":false,"pts":13920,"nalus":[{"type":"AUD_35","len":3},{"type":"NonRAP_Trail_1","len":4952}]}
{"pid":256,"rai":false,"pts":16920,"nalus":[{"type":"AUD_35","len":3},{"type":"NonRAP_Trail_1","len":791}]}
{"pid":256,"rai":false,"pts":19920,"nalus":[{"type":"AUD_35","len":3},{"type":"NonRAP_Trail_1","len":616}]}
{"pid":256,"rai":false,"pts":22920,"nalus":[{"type":"AUD_35","len":3},{"type":"NonRAP_Trail_1","len":2400}]}
{"pid":256,"rai":false,"pts":25920,"nalus":[{"type":"AUD_35","len":3},{"type":"NonRAP_Trail_1","len":733}]}
{"pid":256,"rai":false,"pts":28920,"nalus":[{"type":"AUD_35","len":3},{"type":"NonRAP_Trail_1","len":719}]}

Some issues are reported by golangci-lint. Need to solve them.