wfb-ng/scripts/systemd/fpv-video.service

26 lines
1.1 KiB
SYSTEMD
Raw Normal View History

2022-10-23 07:40:32 -03:00
[Unit]
Description=FPV video
After=network-online.target
[Service]
2022-11-30 18:20:33 -04:00
# RTP legacy
ExecStart=/bin/sh -c "gst-launch-1.0 udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! 'video/x-h264,stream-format=byte-stream' ! fdsink | fpv_video"
# RTSP legacy
#ExecStart=/bin/sh -c "gst-launch-1.0 rtspsrc latency=0 location="rtsp://127.0.0.1:8554/wfb" ! rtph264depay ! 'video/x-h264,stream-format=byte-stream' ! fdsink | fpv_video"
# RTP MMAL
#ExecStart=/bin/sh -c "gst-launch-1.0 udpsrc port=5600 caps='application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264' ! rtph264depay ! h264parse disable-passthrough=true config-interval=1 ! queue ! mmalh264dec ! mmalvideosink sync=false"
# RTSP MMAL
#ExecStart=/bin/sh -c "gst-launch-1.0 rtspsrc latency=0 location="rtsp://127.0.0.1:8554/wfb" ! rtph264depay ! h264parse disable-passthrough=true config-interval=1 ! queue ! mmalh264dec ! mmalvideosink sync=false"
2022-10-23 07:40:32 -03:00
Type=simple
Restart=always
RestartSec=1s
TimeoutStopSec=10s
KillMode=control-group
[Install]
WantedBy=multi-user.target