I am using FFmpeg C API to re-encode a video and to remux it (I have been following the official samples, that work after some modifications).
Since I only have to process (modify) some video frames, I was wondering if I could re-encode only some GOPs (Mp4 files) and remux the rest. The main problem I have been encountering is invalid video (alhough I set pix_fmt to correct value (YUV_420P): 
I also tried avcodec_copy_context but encoder is automatically set to libx264 and decoder to H264 so they are incompatible.
Am I missing something (can partial video re-encoding be done) ?
برچسب:
نویسنده: استخدام کار