hardware:raspi-vc

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
hardware:raspi-vc [2020/05/18 10:51] derpeterhardware:raspi-vc [2020/07/15 10:13] – [read encoded video with gst and provide output via srt server] derpeter
Line 6: Line 6:
 * https://www.raspberrypi.org/documentation/raspbian/applications/camera.md * https://www.raspberrypi.org/documentation/raspbian/applications/camera.md
 * https://github.com/thaytan/gst-rpicamsrc * https://github.com/thaytan/gst-rpicamsrc
 +* https://github.com/waveform80/picamera
 +* https://stamm-wilbrandt.de/en/Raspberry_camera.html
  
 == gstreamer pipe gen srt mit kaputtem alsasrc-audio vom usb: == gstreamer pipe gen srt mit kaputtem alsasrc-audio vom usb:
Line 31: Line 33:
  
 == Capture from UVC capture device and stream rtmp == Capture from UVC capture device and stream rtmp
 +
 +=== video4linux
 gst-launch-1.0  v4l2src device=/dev/video0 do-timestamp=true ! videoscale !  videorate  ! videoconvert ! video/x-raw,width=1920,height=1080,framerate=25/ ! omxh264enc control-rate=variable target-bitrate=5000000  !  h264parse ! flvmux ! rtmpsink location='rtmp://<host>/stream/picam live=1' gst-launch-1.0  v4l2src device=/dev/video0 do-timestamp=true ! videoscale !  videorate  ! videoconvert ! video/x-raw,width=1920,height=1080,framerate=25/ ! omxh264enc control-rate=variable target-bitrate=5000000  !  h264parse ! flvmux ! rtmpsink location='rtmp://<host>/stream/picam live=1'
 +
 +=== raspivid wrapper
 +gst-launch-1.0 rpicamsrc bitrate=5000000  do-timestamp=true ! h264parse ! flvmux ! rtmpsink location='rtmp://<host>/stream/picam'
 +
 += read encoded video with ffmpeg from the cam
 +ffmpeg -f video4linux2 -input_format h264 -video_size 1920x1080 -framerate 30 -i /dev/video0 -vcodec copy -an test.h264
 +
 += read encoded video with gst and provide output via srt server
 +gst-launch-1.0 rpicamsrc bitrate=8000000 ! video/x-h264, framerate=25/1, profile=high ! h264parse config-interval=1 !  mpegtsmux ! queue ! srtserversink uri=srt://:10000/
  • hardware/raspi-vc.txt
  • Last modified: 2020/12/14 02:20
  • by andi