omkar176 / xuggle

Automatically exported from code.google.com/p/xuggle
0 stars 0 forks source link

IVideoPicture.getPictureType() always returns IVideoPicture.PictType.DEFAULT_TYPE #307

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have a 3 second H264 video (which I can provide for testing purposes) which I 
decode using a stripped down version of the demo program DecodeAndPlayVideo.java

I add a test for the type of the frame once the frame is fully decoded:

if (picture.isComplete()) {
    if(picture.getPictureType() = IVideoPicture.PictType.I_TYPE)
        ++IndexFrameCount;

However, this method always returns IVideoPicture.PictType.DEFAULT_TYPE 

I'd like to help fix it if possible, but I just started on Xuggler last week, 
so I'm hoping that you folks can get it fixed faster than I can.

I believe this may have a bearing on issue 238 (seekKeyFrame fails seeking to 
first frame) as well, but I may be wrong.

Original issue reported on code.google.com by samv...@gmail.com on 11 Dec 2012 at 2:11

GoogleCodeExporter commented 8 years ago
I have used ffmpeg library to decode a video. We can do the same thing by using 
avframe. if(avframe.picture_type == I_type). It can be used for other types of 
frames too.

If you can please provide a fix it would be helpful.

Original comment by shree...@gmail.com on 30 Jul 2013 at 4:45

GoogleCodeExporter commented 8 years ago
Is there any update on the issue?

Original comment by ta...@csebuet.org on 3 Apr 2014 at 7:16

GoogleCodeExporter commented 8 years ago
Hi, I have no updates.

Regards,

Original comment by shree...@gmail.com on 3 Apr 2014 at 2:06