I have a problem with the H264 decoder. I have a mpeg transmission stream with audio and video from dvb-t. Video is mpeg4. I have used MediaCodec to play frames of the video file. However on display it looks like each frame is doubled. I do not know why it happens, any help will be appreciated. The file plays fine in the VLC or other PC/MAC video application. However the version for Android decodes it exactly the same (with video glitch / ghostly image). The video size is 720 x 576 and it does not matter what the surface view size is. Do you have any idea how to resolve this or why it is happening? Do I have to remove some data from the video before reading?
The image badly decoded: http://i59.tinypic.com/240xe69.png
On the other side, the native MediaPlayer plays it correctly but very laggy, the MediaCodec approach is not lagging but contains this issue. Maybe there is a way to force native MediaPlayer to use supplied codec?
0 comments:
Post a Comment