Streaming Arm cortex A8 board to an android app

Cyrille cyrille.andre232 at gmail.com
Fri Feb 28 04:25:23 PST 2014


Hi,

We are trying to stream a video from an analog camera connected on an Arm
cortex A8 board to an android tab.
A poky distribution is installed on the Arm cortex A8.

We managed to send the video from the Arm cortex A8 board with the following
pipeline :

gst-launch-0.10 v4l2src device=/dev/video4 queue-size=1 !
video/x-raw-yuv,format=\(fourcc\)UYVY,width=720,height=576,framerate=\(fraction\)25/1
! ffmpegcolorspace ! TIVidenc1 codecName=h264enc engineName=codecServer !
rtph264pay ! udpsink host=192.168.11.12 port=1234



But the following pipeline on the android app did not display anything :

gst-launch-0.10  udpsrc port=1234 ! "application/x-rtp, media=video,
clock-rate=90000, encoding-name=H264,
sprop-parameter-sets=\\\"Z0KAH4toC0EkQA\\\\=\\\\=\\\\,aM4BqHcg\\\ !
gstrtpjitterbuffer ! rtph264depay ! ffdec_h264 ! ffdeinterlace ! eglglessink
sync=false



Although, we managed to receive it on a PC with :

gst-launch-0.10 udpsrc port=1234 ! "application/x-rtp, payload=127" !
rtph264depay ! ffdec_h264 ! xvimagesink sync=false




The most surprising is that if we put the PC as a relay between the Arm
cortex A8 and the android app, it works well : the PC receives the video and
send it to the android device, and the android device displays it :
On the PC :

gst-launch-0.10 udpsrc port=1234 ! "application/x-rtp, payload=127" !
rtph264depay ! ffdec_h264 ! 'video/x-raw-yuv,width=720,height=576' ! 
x264enc pass=qual quantizer=20 tune=zerolatency ! rtph264pay ! udpsink
host=192.168.11.12 port=1234



In the same way, the android device manage with the same pipeline to display
the PC's webcam video :
on the PC :

gst-launch-0.10 v4l2src device=/dev/video0 !
'video/x-raw-yuv,width=640,height=480' !  x264enc pass=qual quantizer=20
tune=zerolatency ! rtph264pay ! udpsink host=192.168.11.12 port=1234



It is just as if the android device was not able to decode the video encoded
with the TIVidenc.
Any idea on how we can solve this issue ?

Cyrille



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Streaming-Arm-cortex-A8-board-to-an-android-app-tp4665598.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list