Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/guysoft/OctoPi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/octopi/filesystem/root/etc/systemd/system/ffmpeg_hls.service')
-rw-r--r--src/modules/octopi/filesystem/root/etc/systemd/system/ffmpeg_hls.service6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/octopi/filesystem/root/etc/systemd/system/ffmpeg_hls.service b/src/modules/octopi/filesystem/root/etc/systemd/system/ffmpeg_hls.service
index 2b15d8d..3a1f463 100644
--- a/src/modules/octopi/filesystem/root/etc/systemd/system/ffmpeg_hls.service
+++ b/src/modules/octopi/filesystem/root/etc/systemd/system/ffmpeg_hls.service
@@ -18,7 +18,7 @@ ExecStartPre=/bin/chown -R webcam:webcam /run/webcam
ExecStartPre=/bin/chmod -R 0755 /run/webcam
ExecStart=/usr/bin/sudo -u webcam \
- /usr/bin/ffmpeg \
+ /opt/ffmpeg-hls/ffmpeg \
\
-framerate 30 -video_size 640x480 \
-i /dev/video0 \
@@ -28,7 +28,7 @@ ExecStart=/usr/bin/sudo -u webcam \
-f image2 -r 1 -update 1 -atomic_writing 1 \
/run/webcam/jpeg/frame.jpg \
\
- -c:v h264_omx -profile:v high \
+ -c:v h264_v4l2m2m -level:v 4.0 \
-b:v 1264k -flags +cgop \
-g 30 -keyint_min 30 \
\
@@ -40,7 +40,7 @@ ExecStart=/usr/bin/sudo -u webcam \
\
-vf scale=-1:240 \
\
- -c:v h264_omx -profile:v high \
+ -c:v h264_v4l2m2m -level:v 4.0 \
-b:v 240k -flags +cgop \
-g 30 -keyint_min 30 \
\