Skip to content

Commit

Permalink
Update rpi_h264_decode.service
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelscholle authored Apr 12, 2023
1 parent 67e5fda commit c1605ca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions systemd/rpi_h264_decode.service
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c1605ca

Please sign in to comment.