Skip to content

Commit c1605ca

Browse files
Update rpi_h264_decode.service
1 parent 67e5fda commit c1605ca

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

systemd/rpi_h264_decode.service

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
[Unit]
2-
Description=rpi_h264_decode_service
2+
Description=rpi_h264_decode
33

44
[Service]
55
User=root
6-
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
6+
7+
# Video decode via omx, started by QOpenHD if needed (and stopped if needed)
8+
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"
9+
710
Restart=always
8-
RestartSec=3
11+
RestartSec=1
912

1013
[Install]
1114
WantedBy=multi-user.target

0 commit comments

Comments
 (0)