64 pxl matrix help

That’s it?
Where’s the rest of it?

I thought you had a file called frame_001.png ?
Are you running it in the right directory?

ffprobe -i scroll.mp4 ,

@ frames9x9 % ffprobe -i scroll.mp4,
ffprobe version 7.1.1 Copyright (c) 2007-2025 the FFmpeg developers
built with Apple clang version 16.0.0 (clang-1600.0.26.6)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1.1_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=‘-Wl,-ld_classic’ --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
scroll.mp4,: No such file or directory
@ frames9x9 %

pngtopam -alphapam frame_001.png >frame_001.pam:

@ frames9x9 % pngtopam -alphapam frame_001.png >frame_001.pam
@ frames9x9 %

The second produced a file “frame_001.pam” that is 389 bytes

Thanks

So where is scroll.mp4?

Can you post the beginning of that file?

Wait, it says scroll.mp4, try it without the extra comma…

./ frames9x9 % ffprobe -i scroll.mp4
ffprobe version 7.1.1 Copyright (c) 2007-2025 the FFmpeg developers
built with Apple clang version 16.0.0 (clang-1600.0.26.6)
configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.1.1_1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags=‘-Wl,-ld_classic’ --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
libavutil 59. 39.100 / 59. 39.100
libavcodec 61. 19.101 / 61. 19.101
libavformat 61. 7.100 / 61. 7.100
libavdevice 61. 3.100 / 61. 3.100
libavfilter 10. 4.100 / 10. 4.100
libswscale 8. 3.100 / 8. 3.100
libswresample 5. 3.100 / 5. 3.100
libpostproc 58. 3.100 / 58. 3.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ‘scroll.mp4’:
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf59.27.100
Duration: 00:00:07.87, start: 0.000000, bitrate: 6 kb/s
Stream #0:00x1: Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 16x16, 4 kb/s, 15 fps, 15 tbr, 15360 tbn (default)
Metadata:
handler_name : VideoHandler
vendor_id : [0][0][0][0]
encoder : Lavc59.37.100 libx264
./frames9x9 %

I can not upload the file but opening it up in text mate shows this:

P7
WIDTH 9
HEIGHT 9
DEPTH 4
MAXVAL 255
TUPLTYPE RGB_ALPHA
ENDHDR

ending in a bunch of jumbled code.

Thanks

Ok, that does seem to produce the right output, so why didn’t it find the frame rate?

Maybe it’s a “sed” problem, Can you try running this:

ffprobe -i scroll.mp4 2>&1 |  sed -n 's@.*Video:.*, \\([0-9.]*\\) fps,.*@\\1@gp'

This one is weird.
Reading the code, the only way that this can happen is if pngtopam just doesn’t produce any output for some reason, but I’m not sure why that would happen…

ffprobe -i scroll.mp4 2>&1 | sed -n ‘s@.Video:., \([0-9.]\) fps,.@\1@gp’

I ran this, but I am not sure what it did.

./ ~ % ffprobe -i scroll.mp4 2>&1 | sed -n ‘s@.Video:., \([0-9.]\) fps,.@\1@gp’
./ ~ %

I tried this on a mac, and it doesn’t work for me either.
Now I just have to figure out why

1 Like

Currently this file format and everything with color displays is basically in it’s infancy, right? So understandably, some adjustments will be needed.
I’m thinking down the road, maybe we work toward a user-friendly stand alone script/application that does all the work in a self-contained way so that different architectures and versions of compilers and such wouldn’t matter?
“Drag and drop an image onto this box here and it spits out a usable file.”

Thanks guys. I will try to work on it this weekend with my limited knowledge. Do you think the same thing will happen when trying to make POV blade styles as well? I was able to adjust some code to take out the backstops for some of the errors, but the final product did not work haha. I appreciate you guys looking into this and getting it to run on Mac. I have some ideas for the future if I can get it to work.

I think we’re going to need a variety of tools, such as:

  1. tools that generate a virtual crystal chamber of a specified color (this already exists as a script)
  2. tools that generate (transparent) battery meters, counters, gauges, volume meters, etc. based on fonts, or sets of images.
  3. tools that just convert things into (looped) pqf files. (this is what cpqoi does, but of course, it would be helpful to have more user-friendly tools.)

and if I add support for menus in PQF files, we’ll most likely need tools that support that too.

I worked on making the pov tools easier to follow a while back. Read the readme.md and use the “create_POV_data_files” script.

Sounds like a POIT (ProffieOS Image Tools) suite. Or an all-in-one app. @ryryog25 :wink:

Or “imagefontconverter.com” ?

I can confirm that POV works perfectly. Fun stuff!

Haha, I wouldn’t be opposed to it :laughing:

Super busy as of late, so not something I can practically say I’ll work on. That said, if the tools (mostly) exist from Fredrik, putting together a UI in ProffieConfig probably wouldn’t be too hard.

I’ve been loosely following all this stuff… honestly since it sounds like you’re pretty knowledgeable on the tools, if you wanted a micro-project, it wouldn’t be a terribly large amount of work, would just create another folder in components, and put together whatever sort of code you want in there to make a mini-editor/utility so that ProffieConfig could bundle it as a component library and open it up.

If anyone has got this to work on a PC, until its patched for Mac, if you could send me a working 9x9 that says anything on it, I would like to test if my array programming works.

Thanks