25 frames / second

This commit is contained in:
fred 2021-08-12 12:17:40 +02:00
parent 799763eb86
commit 48fab00d25
1 changed files with 10 additions and 8 deletions

View File

@ -4,6 +4,8 @@ HLS_TIME=40
M3U8_SIZE=3
IPFS_GATEWAY="http://127.0.0.1:8181"
echo "Astroport stream is playing on star_1 : https://tube.copylaradio.com/ipns/$(ipfs key list -l | grep star_1 | cut -d ' ' -f 1)"
# Load settings
# Prepare Pi Camera
@ -16,7 +18,7 @@ function startFFmpeg() {
echo 1 > /tmp/stream-reset
# Stream WebCamera
ffmpeg -f pulse -i 1 -f video4linux2 -video_size 1280x720 -framerate 30 -i /dev/video0 -hls_time "${HLS_TIME}" "${what}.m3u8" > /tmp/ffmpeg.log 2>&1
ffmpeg -f pulse -i 1 -f video4linux2 -video_size 1280x720 -framerate 25 -i /dev/video0 -hls_time "${HLS_TIME}" "${what}.m3u8" > /tmp/ffmpeg.log 2>&1
## MORE SOURCES
# http://4youngpadawans.com/stream-camera-video-and-audio-with-ffmpeg/