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() {
142142
143143function stop_ffmpeg() {
144144 while true ; do
145- FFMPEG_PID=$( pgrep -f ffmpeg | tr ' \n' ' ' )
145+ FFMPEG_PID=$( pgrep -f " ffmpeg -hide_banner " | tr ' \n' ' ' )
146146 if [ -n " $FFMPEG_PID " ]; then
147147 kill -SIGTERM $FFMPEG_PID
148148 wait $FFMPEG_PID
149149 fi
150- if ! pgrep -f ffmpeg > /dev/null; then
150+ if ! pgrep -f " ffmpeg -hide_banner " > /dev/null; then
151151 break
152152 fi
153153 sleep ${poll_interval}
@@ -169,7 +169,7 @@ function stop_recording() {
169169}
170170
171171function check_if_ffmpeg_running() {
172- if pgrep -f ffmpeg > /dev/null; then
172+ if pgrep -f " ffmpeg -hide_banner " > /dev/null; then
173173 return 0
174174 fi
175175 return 1
You can’t perform that action at this time.
0 commit comments