阅读背景:

用avcodec_decode_video2解码原始缓冲区。

来源:互联网 

I am receiving a h264 stream where I at least know the size of one frame. The stream is coming in right as I can store it in a file and playback with vlc. Playing back a file is no problem for me as I include the libavformat. But libavformat gives me back an AVPacket which I can directly give to avcodec_decode_video2. In this case I got a bytestream. How can I give the raw h264 stream to the avcodec_decode_video2? How can I wrap my data into a AVPacket. VLC does not need to guess any data.I am receiving a h264 stream where I at least k




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: