You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Upload the player over HTTP PUT to the origin server
curl -X PUT --upload-file /tmp/${vid}.html http://${1}/${vid}.html -H "Content-Type: text/html; charset=utf-8"
echo ...and awaaaaayyyyy we go! 🚀🚀🚀🚀
echo Input detected on ${device} as ${res} ${fps}
echo Currently streaming to: https://${2}/${vid}.html
The end of this script seems to execute the above lines even when the process fails.
As an example, I currently do not have ffmpeg installed, but the process does not exit after an error occurs in the below lines:
# Get the name of the capture card
ffmpeg -hide_banner -f decklink -list_devices 1 \
-i dummy &> .tmp.txt
sed -i '1d' .tmp.txt
output=$(<.tmp.txt)
IFS="'" read _ device _ <<< "$output"
I'm no bash expert, but googling around suggests we could throw errors using set -e.
However, i think this command added to launch.sh could be a good temporary solution. command -v ffmpeg >/dev/null 2>&1 || { echo "ffmpeg is required for launching the encoder. Aborting." >&2; exit 1; }
The text was updated successfully, but these errors were encountered:
The end of this script seems to execute the above lines even when the process fails.
As an example, I currently do not have
ffmpeg
installed, but the process does not exit after an error occurs in the below lines:I'm no bash expert, but googling around suggests we could throw errors using
set -e
.However, i think this command added to
launch.sh
could be a good temporary solution.command -v ffmpeg >/dev/null 2>&1 || { echo "ffmpeg is required for launching the encoder. Aborting." >&2; exit 1; }
The text was updated successfully, but these errors were encountered: