Quantcast
Channel: Media Foundation Development for Windows Desktop forum
Viewing all articles
Browse latest Browse all 1079

decode h264 frames encoded by Android MediaCode H264 encoder.

$
0
0

I am trying to decode  H264 encoded frames I receive from an android device.

The frames are encoded using the MediaCodec APIs on the android device and the output of the encoder is  streamed to a windows pc.

However, I keep getting "More input samples are required to produce output" error when I try to get output by calling the ProcessOutput function.

I was wondering if there is some format inconsistency between the what i get from the android device and what i feed the Media Foundation H264 decoder.

I have verified that every sample that i feed to the MF decoder is a valid NAL unit(starts with 0x00 0x00 0x00 0x01.

I am able to play the streamed data with VLC after saving it to a file.

I can also upload the streamed data as a file if required.


Viewing all articles
Browse latest Browse all 1079

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>