Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8013

Graphics, sound and multimedia • Re: Running ffmpeg as a systemd process

$
0
0
hi

simply start the script

nano .config/systemd/user/home-stream.service

[Unit]
Description=stream
#Requires=multi-user.target
After=network.target

[Service]
ExecStartPre=/bin/sleep 50

ExecStart=/path/to/script.sh

Restart=always
ExecStop=killall ffmpeg
#KillMode=process
[Install]
WantedBy=network.target

Statistics: Posted by mediauser — Thu Jun 26, 2025 8:27 am



Viewing all articles
Browse latest Browse all 8013

Trending Articles