Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Idea: waveform visualisation in web player ?
#13
(12-22-2023, 05:09 PM)TheOldPresbyope Wrote: Just for fun, I tried @steve4star 's command on several modestly sized tracks---one FLAC, one M4A, and one DSD. On an RPI4B it took from 2 to 6 seconds to execute, so a noticeable delay if at start of play.
Definitely not viable as a runtime processing; needs, eventually, to be done at thumbnail generation time, IMO.
I'll experiment with my flacs, as I have everything (except a couple of albums) in flac + CUE.

ffmpeg supports time parameters for skipping and stopping, I have a shell script I wrote that allows me to parse the CUE, extract start / finish times, and extract single tracks from my whole-CD flacs, so instead of extraction, it could use such start/stop to generate the waveform of each track.

The animation is generally done having the waveform transparent, and below it a <div> with a suitable background color growing from left to right according to the time elapsed.
This of course involves some CSS magic to have the solid color surrounding the waveform to match moOde's current theme's background color.
I seem to remember there is some background rendering keys, along the way of - but not only - AND / OR / XOR etc. etc.

I mean, it can be done for sure. Then we all know about time and resources... :-)
Reply


Messages In This Thread
RE: waveform visualisation in web player ? - by Nutul - 12-22-2023, 10:25 PM

Forum Jump: