How to copy other frame buffer with ffmpeg?
I have a question for frame copy with other position. I got a 1280640 decoded frame (YUV420) from h264/mp4 and I wanna merge 4 frame to 25601280 frame buffer . as below. The code is like this but does not working. /* pCodecCtx and pFrame for decoded frame information */ int Encoding2JPEG( AVCodecContext *pCodecCtx, AVFrame *pFrame, int FrameNo, int Quality) { int gotFrame; /* New Context for JPEG encoding */ AVCodec *jpeg_codec = NULL; AVCodecContext *jpeg_ctx =NULL; int ret; AVPacket *packet; packet = av_packet_alloc(); if(!packet) { printf("alloc fail!\n"); return -1; } if(frame) printf("rec
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.