-
Notifications
You must be signed in to change notification settings - Fork 21
videobox: framebuffer images
Mark Van den Borre edited this page Nov 13, 2016
·
8 revisions
- 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'
- 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.jpg
fbi -T 1 --noverbose --autozoom pingu.png
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
ffmpeg -i udp://227.1.2.1:9000 -vf "select=eq(pict_type\,I)" -vsync vfr -s 160x120 -updatefirst 1 /mnt/ssd/pingu.bmp
ffmpeg -i udp://227.1.2.1:9000 -vf 1/60 -vsync vfr -s 160x120 -updatefirst 1 /mnt/ssd/pingu.bmp
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