The following command is used to stream data from an Odroid 720p Webcam on an Odroid XU4 SBC.
This USB2 camera is located at /dev/video6
.
The samsung CPU has a device which can do h264 encoding this is located at /dev/video10
and /dev/video11
, I am currently using v4l2video11h264enc
gstreamer plugin to use it.
ip_addr=192.168.1.1
gst-launch-1.0 v4l2src device=/dev/video6 ! \
videoconvert ! \
timeoverlay ! \
v4l2video11h264enc extra-controls="encode,h264_level=9,h264_profile=9,frame_level_rate_control_enable=1" ! \
rtph264pay config-interval=1 pt=96 ! \
udpsink host=$ip_addr port=5000 sync=false
Add -vv -m
for verbose and message information.
To get the parameters for extra-controls are referenced from v4l2-controls.h in the linux kernel sources.