01-20-2026, 02:53 AM
(This post was last modified: 01-20-2026, 02:56 AM by ahenry3068.)
(01-20-2026, 12:52 AM)SMcNeill Wrote:The stutter approach would work. The videos allow various Sample Rate for the Audio so I should add a sub to spoof that rate too. (Your going to get that dragging audio tape or high pitch fast voices effect depending on which way you tweak it. But Audio can also be muted) It would also be very easy to create a Video with a silent sound track. One of the video options in the Movie Maker is to use a seperate SVA file for the sound track of a Video (This is determined by the Video type in the Header). The library supports these. In that case the Sample rate is determined by the size of the SVA file and the Video FPS, The Audio format (8 or 16 bit & Mono or Stereo) and the Size of the SVA file (The SVA file itself is raw PCM without a Header, That info is in the SPV header) In that case a "Silent file" of different size could be output prior to calling the OpenVideo proc. (Just write an SVA file with all 0 content)(01-19-2026, 09:48 PM)ahenry3068 Wrote:(01-19-2026, 06:37 PM)Pete Wrote: WOW
You are working on an interactive program, not just a player. That's impressive. About 30 years go the QBasic Forum was working on jpeg encoders. On the simple side we had the makings of a child's learning tool. Multiple choice this picture is
A) Apple
B) Orange
C) Pear
D) Something Steve grew that's unrecognizable.
Just being able to get a jpeg in the QB64 window was a feat back then. You could still shell out to whatever Windows jpeg viewer was the default, back then, but it looked sloppy. Anyway, making the controls to manipulate the video is amazing. Just now thinking of the video tracks, indexing them, and making a menu system of a golf swing. YOu could take the same swing, index the components, and make the video run slow mo, regular speed, repeat, or just run a segment or pause at different points without the need to keep pressing keys.
Pete
I'm pretty sure the SUBs I already have in the library could manage that. (I haven't quite got slow motion play figured out. The Video is timed against the sound track directly to maintain sync. But with the Callback hooks I've put in the library something could be done. (Could always spoof the stored audio sample rate after opening the Vid file ). You would have to source an appropriate video somewhere .
Add a deliberate stutter to your stuff, or make a video without sound.
DO
Play Video
Pause Sound
Pause Video
Delay 0.01 'as desired for slow mo
Resume Sound
Resume Video
LOOP
It's a small delay stretched out between frames. In the end, it should produce either a slow motion effect, or a stutter to the video. I would think, at least, it should.
And manually change the TRUE_FPS variable in the code prior to opening the Audio.
This was my ORIGINAL format on the X16 as it was actually easier at first. Embedding the Audio in the SPV file took a bit more pre-calc for Video playback. I kept support in after figuring out
the embedded Audio. I also kept it because it more easily allows switching soundtracks for a Video.


