Answer the question
In order to leave comments, you need to log in
Why does bash change a variable?
Help to deal with the script:
There is a condition where a name is assigned to the variable view1
# Check MY-SERVER
if ffmpeg -f libndi_newtek -find_sources 1 -i dummy 2>&1 | grep 'MY-SERVER (1)'
then
view1=" -f libndi_newtek -thread_queue_size 1024 -i 'MY-SERVER (1)'"
echo "MY-SERVER (1) is running! Everything is fine..."
# Run FFMPEG
ffmpeg -hwaccel cuvid $view1 $view2 $view3
...
...
...
-f libndi_newtek -thread_queue_size 1024 -i ''\''MY-SERVER' '(1)'\'''
-f libndi_newtek -thread_queue_size 1024 -i 'MY-SERVER (1)'
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question