decoding H264 from middle of the file

本秂侑毒 提交于 2019-12-11 08:34:20

问题


I am currently using nvenc to decode a H264 file and I require random access to the file. So, what I did for test purposes was make every frame a IDR frame. Now, if I know the file offset of the frame in the H264 file. Is it enough to just seek to that position, read the amount of bytes that was written for that frame and pass that to the decoder. My understanding is that the decoder should be able to handle just a single IDR frame and be able to decode it. Is that correct?

来源:https://stackoverflow.com/questions/40096401/decoding-h264-from-middle-of-the-file

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!