From c1605ca0fca121fbfef85b78bde2e5f5abb9c622 Mon Sep 17 00:00:00 2001 From: Raphael <68374617+raphaelscholle@users.noreply.github.com> Date: Wed, 12 Apr 2023 14:02:54 +0200 Subject: [PATCH] Update rpi_h264_decode.service --- systemd/rpi_h264_decode.service | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/systemd/rpi_h264_decode.service b/systemd/rpi_h264_decode.service index aa36d6d11..338969e25 100644 --- a/systemd/rpi_h264_decode.service +++ b/systemd/rpi_h264_decode.service @@ -1,11 +1,14 @@ [Unit] -Description=rpi_h264_decode_service +Description=rpi_h264_decode [Service] User=root -ExecStart=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 | hello_video.bin + +# Video decode via omx, started by QOpenHD if needed (and stopped if needed) +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_video0.bin /dev/stdin" + Restart=always -RestartSec=3 +RestartSec=1 [Install] WantedBy=multi-user.target