Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
New Developer
sachinhambar
Posts: 14
Registered: ‎12-06-2012
My Device: BB10

H264 decode Support

Hi All.

 

Does BB10 support H264 decoder?

 

 

I am going through APIs at "http://developer.blackberry.com/native/beta/reference/"

 

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.

Developer
Innovatology
Posts: 1,280
Registered: ‎03-03-2011
My Device: Playbook, Z10, Q10, Z30 with Files & Folders and Orbit of course

Re: H264 decode Support

It's certainly supported via the MediaPlayer API's.

 

Files & Folders, the unified file & cloud manager for PlayBook and BB10 with SkyDrive, SugarSync, Box, Dropbox, Google Drive, Google Docs. Free 3-day trial! - Jon Webb - Innovatology - Utrecht, Netherlands
BlackBerry Development Advisor
smcveigh
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: H264 decode Support

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?

 

Cheers,
Sean

New Developer
sachinhambar
Posts: 14
Registered: ‎12-06-2012
My Device: BB10

Re: H264 decode Support

Hi

 

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

 

BlackBerry Development Advisor
smcveigh
Posts: 668
Registered: ‎11-29-2011
My Device: developer

Re: H264 decode Support

We support RTSP streaming... Have you tried invoking the browser with a URI like:

rtsp://1.2.3.4/path/to/file.mp4

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.)

 

Cheers,

Sean