Merge pull request #7 from andrey-utkin/master

Add example of converting video with ffmpeg
master
Hong Phuc Dang 1 week ago committed by GitHub
commit 7fae7b714b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 18
      README.md
  2. BIN
      gfx/cellauto_123.png
  3. BIN
      gfx/doom.png
  4. BIN
      photos/doom.gif
  5. BIN
      photos/ffmpeg_cellauto.gif

@ -141,6 +141,24 @@ shows a simple animation of a slowly beating heart on the first message, and a b
![M2 ishm](photos/m2ishm.gif)
ffmpeg -f lavfi -i 'cellauto=size=48x11:rate=10,setpts=10*PTS,format=monow,trim=end=123, tile=123x1' gfx/cellauto_123.png
ffmpeg -f lavfi -i 'cellauto=size=48x11:rate=10,setpts=10*PTS,format=monow,trim=end=123,reverse,tile=123x1' gfx/cellauto_123_reverse.png
./led-badge-11x44.py -m 5 -s 8 :gfx/cellauto_123.png:
demonstrates how to convert video into compatible animation using ffmpeg, and possibly reverse it.
(In this case, autogenerated animation of cellular automaton is used).
Maximum number of frames permitted by current code is 123.
![LED Mini Board](photos/ffmpeg_cellauto.gif)
yt-dlp https://www.youtube.com/watch?v=gkA4pRo9j0A
ffmpeg -i Doom\ 2\ in\ black\ \&\ white\ \[gkA4pRo9j0A\].webm -ss 17 -t 5.5 -an -filter:v "format=monow,crop=iw*9/20:y=ih*6/20:w=iw/10:h=ih*2/10,scale=h=48:w=11,transpose=dir=1,fps=21,tile=123x1" -y gfx/doom.png
./led-badge-11x44.py -m 5 -s 8 :gfx/doom.png:
plays a doom game video.
![LED Mini Board](photos/doom.gif)
python3 ./led-badge-11x44.py --list-names
prints the list of builtin icon names, including :happy: :happy2: :heart: :HEART: :heart2: :HEART2: :fablab: :bicycle: :bicycle_r: :owncloud: ::

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 MiB

Loading…
Cancel
Save