版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/u201011221/article/details/101759594
Bitstream Filter: A bitstream filter operates on the encoded stream data, and performs bitstream level modifications without performing decoding.
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. 可以用于底层码流调试。