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
Mark Van den Borre edited this page Nov 13, 2016
·
8 revisions
The LCD
Let's enable the binary lcd driver magic
wget -c https://raw.githubusercontent.com/LeMaker/fex_configuration/master/banana_pi_35lcd.bin
Put this in the sd card /boot partition as script.bin
Boot the sd card and let's test if we can load the lcd module modprobe lcd
Now let's load the lcd module at every boot:
vi /etc/modules
Add a line that reads 'lcd'
The framebuffer image viewer
Let's install a framebuffer image viewer first: apt-get install fbi
Since we are working remotely, we need to specify the terminal it needs to show on:
fbi -T1 pingu.jpgfbi -T 1 --noverbose --autozoom pingu.png
Grabbing frames from the stream
The first attempts at parsing the entire stream continuously didn't work. Too cpu intensive:
ffmpeg -i udp://227.0.0.2:9000 -vf "select=not(mod(n\,10))" -vsync vfr -q:v 2 img_%03d.jpg
So we switched to regularly grabbing one frame from the udp stream that the box:
ffmpeg -i udp://227.1.2.2:9000 -vf scale=160:-1 -qscale:v 20 -vframes 1 -y /mnt/ssd/status.jpg