VideoDecoder update format info to wrong size

Sebastian Dröge slomo at circular-chaos.org
Thu Sep 26 01:41:58 PDT 2013


On Do, 2013-09-26 at 16:08 +0800, Bruce Tsai wrote:
> On Tue, Sep 17, 2013 at 9:26 AM, Bruce Tsai <wagamama.tsai at gmail.com>
> wrote:
> 
>         Hi all,
>         
>         
>         Has anyone encountered "OMX_GetExtensionIndex failed" problem?
>         I cross-compiled gstreamer-sdk to android_x86 version and
>         tried playing mp4 video on an Android_x86 device.
>         The screen is green and some stripes flashing at the bottom
>         half of the video frame while playing.
>         I then compared the log [1] with a normal one and found some
>         never seen errors.
>         
>         
> I found something interesting in the log [1]:
> 
> 
> 09-26 16:02:24.740: I/VideoDecoder(135): maxDPBSize = 6, num_ref_frame
> = 5
> 09-26 16:02:24.740: I/VideoDecoder(135): updateFormatInfo: current
> size: 854 x 480, new size: 864 x 480
> 09-26 16:02:24.740: I/VideoDecoder(135): Video size is changed.
> 09-26 16:02:24.740: I/VideoDecoder(135): New sequence is received.
> Assuming video size is changed.
> 09-26 16:02:24.740: I/VideoDecoder(135): Cropping: left = 0, top = 0,
> right = 10, bottom = 0
> 
> 
> The VideoDecoder update the format info from size 854x480 to size
> 864x480 where the content size is actually 854x480.
> I also tested other content that size 1920x1080 is changed to size
> 1920x1088.
> Only the content with size 1280x720 remains the size and is played
> properly.
> I'm pretty sure setting the correct size while creating video format.
> I wonder, in what situation and how, the video decoder will update the
> format info.

Probably whenever the actual display size has not a width/height that is
a multiple of 8. In that case it will output something larger and set
the crop values to whatever cropping is necessary to output the actual
display size.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-android/attachments/20130926/0581e5bb/attachment.pgp>


More information about the gstreamer-android mailing list