This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Extract the fps of a video | |
ffmpeg -i file.mp4 2>&1 | grep -o '[0-9]\{1,3\}\sfps' | |
# Extract frames at a given fps | |
ffmpeg -i shame-run.mov -r 24/1 test/output%03d.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo Updating alternatives | |
sudo update-alternatives --set x86_64-linux-gnu_gl_conf /usr/lib/nvidia-352-prime/ld.so.conf | |
sudo update-alternatives --set i386-linux-gnu_gl_conf /usr/lib/nvidia-352-prime/alt_ld.so.conf | |
echo "Starting nvidia-352" | |
sudo modprobe nvidia-352 |