hello, I modified the basic example to encode a 1920x1080 29.97 interlaced video:
Params.info.interlace_type = UMC::PROGRESSIVE;
modified to:
Params.info.interlace_type = UMC::INTERLEAVED_TOP_FIELD_FIRST;
and:
Params.coding_type =1;
UMC manual states about coding_type:
0 Frame (all frames are coded as frames) 1 Fields (each frame is divided into 2 fields
when setting Params.B_frame_rate=0, all goes fine, and the output video is recognized as interlaced, but using Params.B_frame_rate=1,2, or whatever the encoder crashes encoding the first frame.
If setting Params.B_frame_rate=2 and Params.coding_type=0; it works but the output video is marked as Progressive.
is this a bug? thanks
Params.info.interlace_type = UMC::PROGRESSIVE;
modified to:
Params.info.interlace_type = UMC::INTERLEAVED_TOP_FIELD_FIRST;
and:
Params.coding_type =1;
UMC manual states about coding_type:
0 Frame (all frames are coded as frames) 1 Fields (each frame is divided into 2 fields
when setting Params.B_frame_rate=0, all goes fine, and the output video is recognized as interlaced, but using Params.B_frame_rate=1,2, or whatever the encoder crashes encoding the first frame.
If setting Params.B_frame_rate=2 and Params.coding_type=0; it works but the output video is marked as Progressive.
is this a bug? thanks
链接已复制
2 回复数
I was not able to reproduce the crashing behavior. If this is still a problem, could you give some more details about how you set this up?
While info.interlace_type is available as an H.264 parameter, it looks like coding_type determines whether the video will be encoded as progressive or interlaced for this codec. The info.interlace_type parameter is used for mpeg2.
Ive reported this to the development team so we can continue to investigate how to make this better.
Regards,
Jeff
