From d0a5fa5f91c70c81ff12f959832f6d7d2a296f82 Mon Sep 17 00:00:00 2001 From: Lab 8916100448256 Date: Fri, 4 Dec 2020 23:21:56 +0100 Subject: [PATCH] Add beeps every 10 seconds in the pattern stream, when the time elapsed overlay hits the borders, to allow checking for audio/video sync --- gen_pattern_sine.sh | 3 +-- stream_pattern_sine.sh | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/gen_pattern_sine.sh b/gen_pattern_sine.sh index 0c6bb5e..e5528d5 100755 --- a/gen_pattern_sine.sh +++ b/gen_pattern_sine.sh @@ -55,7 +55,6 @@ echo " " rm $FILENAME -#-x264opts nal-hrd=cbr:force-cfr=1:vbv-bufsize=${BUFFERSIZE}:bitrate=${VBITRATE}:vbv-maxrate=${VBITRATE} \ ffmpeg \ -loglevel level \ @@ -66,7 +65,7 @@ ffmpeg \ -ac 2 \ -i Mire_1080p.png \ -f lavfi \ --i aevalsrc="0.1*sin(2*PI*(360-2.5/2)*t)|0.1*sin(2*PI*(360+2.5/2)*t):sample_rate=48000" \ +-i aevalsrc="(1-min(1\,mod(floor(5*t)\,50)))*0.1*sin(8*PI*(360-2.5/2)*t)+0.1*sin(2*PI*(360-2.5/2)*t)|(1-min(1\,mod(floor(5*t)\,50)))*0.1*sin(8*PI*(360+2.5/2)*t)+0.1*sin(2*PI*(360+2.5/2)*t):sample_rate=48000" \ -channel_layout stereo \ -ar 48000 \ -shortest \ diff --git a/stream_pattern_sine.sh b/stream_pattern_sine.sh index 38e60de..4de0da7 100755 --- a/stream_pattern_sine.sh +++ b/stream_pattern_sine.sh @@ -69,7 +69,7 @@ ffmpeg \ -i Mire_1080p.png \ -re \ -f lavfi \ --i aevalsrc="0.1*sin(2*PI*(360-2.5/2)*t)|0.1*sin(2*PI*(360+2.5/2)*t):sample_rate=48000" \ +-i aevalsrc="(1-min(1\,mod(floor(5*t)\,50)))*0.1*sin(8*PI*(360-2.5/2)*t)+0.1*sin(2*PI*(360-2.5/2)*t)|(1-min(1\,mod(floor(5*t)\,50)))*0.1*sin(8*PI*(360+2.5/2)*t)+0.1*sin(2*PI*(360+2.5/2)*t):sample_rate=48000" \ -channel_layout stereo \ -ar 48000 \ -pixel_format yuv420p \