Decode h264 stream from WiFi video camera for Android

By Windranger ·
I want to decode the streaming captured from a WiFi digital video camera received on Android, on a UDP port (4**99).
I know that it is encoded h264, but it seems there are more details needed, but camera maker won't disclose.
Streaming can be displayed fine using their own software, but that doesn't help.

VLC cannot play the stream correctly. Although timer is moving, VLC displays just a black screen; there's also a delay.

I have the streaming array of a packet; each packet starts with 0xFF 0XD8 and so on.
One example of such an array is in the "Stream_packet.txt" file, in this zip file:

Is there any way I could decode the frames... to know the codec algorithm, whatever..?
I also tried with ffmpeg... maybe not well enough, but anyway I'd appreciate some advice.

This conversation is currently closed to new comments.

Thread display: Collapse - | Expand +

All Answers

Collapse -

Have you tried the RTSP protocol?

by jose_smith In reply to Decode h264 stream from W ...

Have you tried the RTSP protocol? Additionally, you may refer to the ONVIF standard. The most majority WiFi cameras are using the ONVIF or RTSP protocol to video stream on both computer and Smartphone.

Once the Android smartphone can receive the video stream, it can decode the stream by using its H.264/AVC codec.
I have a Yoosee camera ( ), its RTSP url address is:
Main stream rtsp://IPadr:554/onvif1
Sub-stream rtsp://IPadr:554/onvif2

IPadr = your IP camera's IP address, there are many ONVIF compliant software/App, lastly you even can play the RTSP stream on QuickTime/VLC media players.

Related Discussions

Related Forums