Bitstream Filter: A bitstream filter operates on the encoded stream data, and performs bitstream level modifications without performing decoding. 1. 比特流滤波器作用在编码后的数据上,而不是未压缩的数据。 2. 在不解码的基础上执行比特流级别的修改。
ffmpeg -i input.mp4 -codec copy -bsf:v h264_mp4toannexb output.ts
这个是把mp4容器格式改为ts容器格式,需要把h.264的封装格式从mp4改成annexb。
h.264编码有两种封装格式
再说下为什么另一种封装格式叫annexb,是因为这种封装格式定义在the Annex B of the ITU-T H.264 specification
。
ffmpeg -i in.264 -c copy -bsf:v trace_headers -f null - 2> NALUS.txt
支持 AV1,H.264, H.265, (M)JPEG, MPEG-2, VP9(VP8不支持)
Log trace output containing all syntax elements in the coded stream headers (everything above the level of individual coded blocks). This can be useful for debugging low-level stream issues. 可以用于底层码流调试。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。