File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -142,12 +142,12 @@ function exit_on_max_session_reach() {
142
142
143
143
function stop_ffmpeg() {
144
144
while true ; do
145
- FFMPEG_PID=$( pgrep -f ffmpeg | tr ' \n' ' ' )
145
+ FFMPEG_PID=$( pgrep -f " ffmpeg -hide_banner " | tr ' \n' ' ' )
146
146
if [ -n " $FFMPEG_PID " ]; then
147
147
kill -SIGTERM $FFMPEG_PID
148
148
wait $FFMPEG_PID
149
149
fi
150
- if ! pgrep -f ffmpeg > /dev/null; then
150
+ if ! pgrep -f " ffmpeg -hide_banner " > /dev/null; then
151
151
break
152
152
fi
153
153
sleep ${poll_interval}
@@ -169,7 +169,7 @@ function stop_recording() {
169
169
}
170
170
171
171
function check_if_ffmpeg_running() {
172
- if pgrep -f ffmpeg > /dev/null; then
172
+ if pgrep -f " ffmpeg -hide_banner " > /dev/null; then
173
173
return 0
174
174
fi
175
175
return 1
You can’t perform that action at this time.
0 commit comments