Video Playback Tests

Talk about your programs in progress. Discuss how to implement features, etc.
Forum rules
This section is for testing Commander X16 programs and programs related to the CX16 for other platforms (compilers, data conversion tools, etc.)

Feel free to post works in progress, test builds, prototypes, and tech demos.

Finished works go in the Downloads category. Don't forget to add a hashtag (#) and the version number your program was meant to run on. (ie: #R41).
badmai
Posts: 31
Joined: Tue May 16, 2023 2:32 am

Hardware Video Playback Tests

Post by badmai »

I've wasted so much time trying to get "good" video playback on the CX16, not complaining it's been "fun"
the main issue is streaming bandwidth from the "sd-card", which is closest to real hard ware that I don't have yet

So I use the Unity Engine to process video and create the ".XAV" files
I use a compute shader to modify each frame, calculate optimal palette, diffusion and dither

*I'll just say some kind of bit plane mode would be awesome...guess too late in design for vera :) that would allow 32, 64, 128 colors

So this a 16 color video, each frame with a new palette calculated

Future improvements:
*palette per scene to reduce color "flashes"
*optimize decompressing
dp.png
dp.png (318.42 KiB) Viewed 11756 times
.
.
Please try again if you viewed the old version, Updated 12/5/2023 with Palette Optimization
.
Try It Now!
.
.
.
Attachments
DEADPOOL.zip
(7.17 MiB) Downloaded 523 times
Last edited by badmai on Tue Dec 05, 2023 1:27 pm, edited 1 time in total.
User avatar
AndyMt
Posts: 326
Joined: Sun Jun 21, 2020 3:02 pm
Location: Switzerland

Re: Video Playback Tests

Post by AndyMt »

Really impressive :o ! I'll try on real hardware and report back.
User avatar
AndyMt
Posts: 326
Joined: Sun Jun 21, 2020 3:02 pm
Location: Switzerland

Re: Video Playback Tests

Post by AndyMt »

Works very well on real hardware :) . Well done!
User avatar
ahenry3068
Posts: 1135
Joined: Tue Apr 04, 2023 9:57 pm

Re: Video Playback Tests

Post by ahenry3068 »

Pretty impressive work. I have an idea that would probably make it look even more impressive. Rather than trying to encode full color video, pick a cartoon. Something like Tom & Jerry, The Flintstones, Maybe Wizard's or Cool World if you want something more "Adult". The resulting video will look much better because there are less colors to lose ....


Also what frame rate are you shooting for. 30 ? With a cartoon you could probably drop as low as 15 or 20 fps and it will still look good.

At 15 fps you could probably do full screen.
User avatar
ahenry3068
Posts: 1135
Joined: Tue Apr 04, 2023 9:57 pm

Re: Video Playback Tests

Post by ahenry3068 »

Also on the Cartoon Idea. The copyright on "Steamboat Willy" is about to expire soon.
mortarm
Posts: 298
Joined: Tue May 16, 2023 6:21 pm

Re: Video Playback Tests

Post by mortarm »

ahenry3068 wrote: Thu Nov 30, 2023 12:10 pm The copyright on "Steamboat Willy" is about to expire soon.
I doubt Disney's gonna let that happen.
User avatar
ahenry3068
Posts: 1135
Joined: Tue Apr 04, 2023 9:57 pm

Re: Video Playback Tests

Post by ahenry3068 »

mortarm wrote: Thu Nov 30, 2023 3:29 pm
ahenry3068 wrote: Thu Nov 30, 2023 12:10 pm The copyright on "Steamboat Willy" is about to expire soon.
I doubt Disney's gonna let that happen.
Right now it's actually looking like a done deal... Disney will still have Trademark on Mickey Mouse of course, but the depiction in Steamboat Willie will be Public Domain. (It isn't yet)
Last edited by ahenry3068 on Fri Dec 01, 2023 1:54 am, edited 1 time in total.
badmai
Posts: 31
Joined: Tue May 16, 2023 2:32 am

Re: Video Playback Tests

Post by badmai »

I really didn't spend much time on this, quick conversion ;)

Try It Now!

I can get really good 256 color videos, just not on real hardware. whats the point if it can't run on hardware.

I do get what you mean for "cartoons", in fact my Dragons Lair port would be a good candidate.

edit: Just for fun, I may try this in 1 bit, I could 4x the resolution
Attachments
SBW.zip
(18.5 MiB) Downloaded 550 times
User avatar
ahenry3068
Posts: 1135
Joined: Tue Apr 04, 2023 9:57 pm

Re: Video Playback Tests

Post by ahenry3068 »

badmai wrote: Thu Nov 30, 2023 11:52 pm I really didn't spend much time on this, quick conversion ;)


I can get really good 256 color videos, just not on real hardware. whats the point if it can't run on hardware.

I do get what you mean for "cartoons", in fact my Dragons Lair port would be a good candidate.

edit: Just for fun, I may try this in 1 bit, I could 4x the resolution
If you do 1 bit. Do nearest color, no dithering. I think it will look better.. Bravo.
( I think you should try that in 4 bit mode as well, at least for cartoons)

P.S. Dragon's Lair is cool, But I was really hoping for something from Wizards :). "They killed Fritz, They killed Fritz :) :)"

Last edited by ahenry3068 on Fri Dec 01, 2023 1:05 pm, edited 5 times in total.
voidstar
Posts: 494
Joined: Thu Apr 15, 2021 8:05 am

Re: Video Playback Tests

Post by voidstar »

Do these output on Composite if enabled? I think it's a 1-bit change somewhere to ensure that can happen.

(really great conversions! ty for sharing those)
Post Reply