ffmpeg -i in.mp4 -vf "fade=out:900:27" -acodec copy out.mp4
update pip
win:
python -m pip install -U pip setuptools
linux:
pip install -U pip setuptools
pip install numpy
pip install pygame
pip install pillow
pip install pi3d
skip the "pile of images" by piping the output of ffmpeg/avconv directly to gifsicle with this syntax:
ffmpeg -i input.avi -vf scale=320:-1 -r 1 -f image2pipe -vcodec gif - | gifsicle --delay=5 --multifile --loop - > output.gif
ffplay won't be compiled unless SDL 2 libraries have been installed.
Open file with txt editor. Check the first printable characters after the "PE"
x86 => PE L
x64 => PE d†
wget '...url'
sudo chmod +x 'raspberry read-only'
sudo ./'raspberry read-only'
global variables vs static
static storage class modifier allows it to preserve it's old values between calls
NodeMCU has analog input WITH voltage devider!
0 - Vdd (3,3V)
puno savjeta i funkcija koja osigurava da esp obavi sve bg taskove i da se ne resetira:
void myDelay(int ms) {
int i;
for(i=1;i!=ms;i++) {
delay(1);
if(i%100 == 0) {
ESP.wdtFeed();
yield();
}
}
}
saving and loading variables from file
sudo nano /etc/default/grub
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
change it to
GRUB_CMDLINE_LINUX_DEFAULT=""
sudo update-grub