Skip to content

Instantly share code, notes, and snippets.

@wolfeidau
Last active January 24, 2018 06:10
Show Gist options
  • Save wolfeidau/1f1e67cfc837a0c0e9183a6ba9e6177e to your computer and use it in GitHub Desktop.
Save wolfeidau/1f1e67cfc837a0c0e9183a6ba9e6177e to your computer and use it in GitHub Desktop.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment