On Tue, 7 May 2013 14:57:18 +0200, Lerchenmüller Maximilian 
<[email protected]> wrote:
> Hi guys,
> 
> if have got another problem. I'm splitting my source file into different 
> blocks. Where one Blocks begins with an I-Frame and ends just before the next 
> I-Frame.
> 
> Then I decode this blocks encode them and write them back to a file. But the 
> problem is, that when encoding a block the first frame isn't always an 
> I-Frame. The Codec of  the source file is the same as the one of the 
> destination file (source is .m4v and destination is .ts). 
> 
> Now my question:
> 
> How to ensure, that the first frame of a block is always an I-Frame?
> 
>  
> 
> Hope someone could help me out.
> 

Setting AVFrame.pict_type = AV_PICTURE_TYPE_I on the frames which you want to
force as I-frames should work.

-- 
Anton Khirnov
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to