4667cf2e96
Added another debug clause for opencv videoio so it will provide even more debug information. Going back to implicitly defining FFMPEG as the videoio for opencv, turns out FFMPEG is the only real stable option to use when it comes to reading video files with opencv. Any other option would just severely limit codec and container support.
14 lines
386 B
Bash
14 lines
386 B
Bash
#!/bin/sh
|
|
if [ ! -d "/opt/mow" ]; then
|
|
mkdir /opt/mow
|
|
fi
|
|
cp ./.build-mow/mow /opt/mow/bin
|
|
printf "#!/bin/sh\n" > /opt/mow/run
|
|
printf "export OPENCV_LOG_LEVEL=DEBUG\n" >> /opt/mow/run
|
|
printf "export OPENCV_VIDEOIO_DEBUG=1\n" >> /opt/mow/run
|
|
printf "/opt/mow/bin \$1 \$2 \$3\n" >> /opt/mow/run
|
|
chmod +x /opt/mow/run
|
|
chmod +x /opt/mow/bin
|
|
rm /usr/bin/mow
|
|
ln -s /opt/mow/run /usr/bin/mow
|