Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
4 Views

Can UMC::MPEG2VideoEncoder generate Closed GOP?

Hi,

I'm using the UMC::MPEG2VideoEncoder and it always generates an "Open GOP" mpeg2 video elementary stream. I checked the UMC::MPEG2EncoderParams properties, but I don't see a way to specify if the output will be Open GOP or Closed GOP.

Can UMC::MPEG2VideoEncoder generate a Closed GOP mpeg2 video elementary stream with B frames?

Thanks
0 Kudos
1 Reply
Highlighted
Employee
4 Views

Hi,
There is no parameter to control Closed GOP, but application can call Reset() to start new closed GOP. Don't forget to pull (encode) buffered B frames before providing starting I frame, calling GetFrame(0, ouput);
For example as a result instead of (in display order)
IBBP BBIBBP BBIBBP BB...
you would have
IBBPBP IBBPBP IBBPBP ...

Regards
0 Kudos