View Full Version : Faveworm: analog oscilloscope emulation
cretindesalpes
25th December 2024, 17:00
Another plug-in, this time an audio waveform renderer with an analog oscilloscope look.
>>> faveworm-r2.zip <<< (http://ldesoras.fr/src/vs/faveworm-r2.zip)
http://ldesoras.fr/pic/faveworm-mode0-pp-small.png (http://ldesoras.fr/pic/faveworm-mode0-pp.png)
Faveworm in trigger mode with waveform locking, post-processed output.
Note that in the previous screenshot, the grid, glowing effects, phosphor persistence and colors are not part of Faveworm. The plug-in generates grayscale pictures that can be used as building blocks for a more elaborate rendering.
The plug-in supports Vapoursynth and Avisynth+.
There is also a Git repository (https://gitlab.com/EleonoreMizo/faveworm)
real.finder
25th December 2024, 22:18
thanks
Reel.Deel
26th December 2024, 07:43
Awesome. Thank you very much!
filler56789
26th December 2024, 14:40
:thanks: , I will test and report back A.S.A.P.
P.S.: ¿would be too difficult to create a spectrum visualization plug-in? :o
https://i.sstatic.net/0MVJo.png
cretindesalpes
26th December 2024, 16:36
It’s possible, but not planned at the moment.
wonkey_monkey
27th December 2024, 00:17
Maybe I'm missing something, but applying the example in the html page to a colorbars clip results in this for the first four frames:
https://imgur.com/a/Pap3H82
Is that right? The horizontal line on the first frame, the discontinuity just to right of middle in the third frame...
Reel.Deel
27th December 2024, 08:18
I get an access violation in VDub2 when randomly scrolling different parts of the video.
audio = FFAudioSource("oscillofun.flac")
length = Round((AudioDuration(audio)*60)/1)
blank = BlankClip(length, width=256, height=256, fps=60, fps_denominator=1, pixel_type="Y8", channels=2, colors=[0])
AudioDub(blank, audio).fw_scope (mode=0, sweep=0.020, beam_size=1.5).convertbits(8)
https://i.ibb.co/V0GyK0F/avscrash.png
:thanks: , I will test and report back A.S.A.P.
P.S.: ¿would be too difficult to create a spectrum visualization plug-in? :o
https://i.sstatic.net/0MVJo.png
That would be nice. I always hoped someone would port the array of audio visualization filters that ffmpeg has.
cretindesalpes
28th December 2024, 10:40
Reel.Deel:
Indeed, I could reproduce this crash on long audio files. My bad, I tested this plug-in mostly on short files. I think I fixed the bug and will release a new version soon.
wonkey_monkey:
This is almost the expected result.
fw_scope assumes the audio data is 0 outside of the file. The horizontal line is the half sweep before the first frame, because the time origin is centered (x_ofs parameter).
The discontinuities in the other frames are a simple consequence of the lack of synchronization between the virtual oscilloscope and the open shutter time of the virtual camera. Maybe I could add some fade in/out to ease the effect or another parameter to extend the capture time to full sweeps?
However, given the settings, the waveforms should overlap and remain at the same position from one to another, and this result here is not normal. I think I introduced a regression when adding the lock feature, so I should investigate this quickly…
filler56789
28th December 2024, 18:15
That would be nice. I always hoped someone would port the array of audio visualization filters that ffmpeg has.
¿Does the current ffplay offer spectrum visualization?
Several years ago, the best that it could do is a spectrogram,
which is not the same thing.
OTOH, the BASS audio library has always been able to do more than just accurate audio decoding:
https://forum.videohelp.com/images/guides/p1979295/bass-examples.png
filler56789
28th December 2024, 20:51
:thanks: , I will test and report back A.S.A.P.
Just tested right now, and both the audio and the video stutter like crazy when the script is opened in VirtualDub. :confused:
Tell us, how powerful must be a desktop to use the faveworm plugin?
How many GHz, how many cores, how much RAM?
Apparently my old Skylake is not "fast enough" for faveworm.
But surely it's not my machine's fault :-|
cretindesalpes
28th December 2024, 23:20
Yeah it’s not for real-time use. Mode 2 (scrolling) can be particularly CPU-intensive, depending on the amount of displayed data; it’s actually relative to the beam path length in pixels, per frame. This would most likely benefit from GPU acceleration, as its is basically displaying up to millions particles per frame.
filler56789
29th December 2024, 16:16
1) Thanks for making things clear *THUMBS UP*
2) While nobody writes an audio spectrum visualization plugin,
I will keep using workarounds like this one
(MinMaxAudio + SuperEQ + font="Wingdings 2" + TurnLeft + StackHorizontal:
no real-time use as well, only 4 fps at 1280x720 :(
— but at least it looks cool :cool:)
https://forum.videohelp.com/attachments/84461-1735483657/SuperEQspectrum-demo.jpg
cretindesalpes
12th January 2025, 11:52
New release, fixed a couple of bugs. See first post for download link.
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.