12-10-2012 03:26 AM
Does BB10 support H264 decoder?
I am going through APIs at "http://developer.blackberry.com/native/beta/refere
I don't see the APIs to decode H264 stream. It seems H264 encoder is supported via "Camera Library" APIs.
But there is no mention of H264 decoder.
Thanks in advance.
12-10-2012 05:49 PM
The decoder is there, but there is no public API to use it aside from the file-based or URL-based URI's that mm-renderer provides (HLS, mp4 files, etc.)
We will be looking to expand support in the future.
What's your use case?
12-10-2012 09:32 PM
In our application, I receive H264 RTP stream. H264 raw frame is constructed after de-packetization.
I want pass this H264 frame data to decoder and get RGB/YUV frame as output and display it.
Now in this situation, I need H264 decoder to decode raw H264 stream. Also I need to display the decoded output (i.e. YUV/RGB depends on what decoder will provide).
Thanks in Advance
12-11-2012 11:45 AM
We support RTSP streaming... Have you tried invoking the browser with a URI like:
I am not sure whether mm-renderer can directly make use of RTSP URIs, but presumably you could do this via a webview or similar?
If that doesn't work, or using the browser component to display the video is not feasible, then we don't have any other good solutions just yet for your use case.
My suggestions in that case would be:
1. implement a lightweight http server locally around your stream and serve it up to mm-renderer using http-live-streaming.
2. you can try using a posix pipe and opening that file in mm-renderer, but be aware that this is not well tested, and that we may hit errors if the fifo is allowed to run dry.
3. use a 3rd party software-based decoder (ffmpeg?, etc.)