I have an Open-MAX component which can decoder AVC/H264 streams. The component works fine for .MP4 clips and I am able to play without issues. Now when I switch to .ts clips (which are .h264/AVC with AAC audio (because android only support that)), I see that the input buffer size is never sufficient to push the data in to the hardware.
By default I have a buffer size of 32kb which is later increased to 64kb (by SetParameter Call). I see the failure in this case.
Then I change the buffer size to 256 kb then this size is retained and not changed by setParameter call. I see the above issue with 256kb input buffer size. Even in this case I see the failure (attached log below).
I get the following error :
I/ATSParser( 2000): resizing buffer to 262144 bytes
I/ATSParser( 2000): resizing buffer to 327680 bytes
E/OMXCodec( 2000): [OMX.BCM.Video.decoder] Codec's input buffers are too small to accomodate buffer read from source (info->mSize = 262144, srcLength = 269076)
E/MediaPlayer( 3598): error (1, -2147483648)
E/MediaPlayer( 3598): Error (1,-2147483648)
D/VideoView( 3598): Error: 1,-2147483648
Any input -