r42 video demo
Posted: Sat Apr 08, 2023 7:22 pm
Here's a video demo, with 12970Hz mono sound, ten frames per second, with 160x32 images stretched to 640x273 pixels (horizontal scale $20, vertical scale $0F, layer 0 vertical offset low byte $04):
download/file.php?id=1273
Try It Now!
I know that works on the web emulator, but I wanted to see how the web emulator handled even more data, so I doubled the image horizontal resolution to 320x32 (Hscale $40). Not sure if this will work. I know it won't work well on a Windows emulator, but if it works on the web emulator then it will probably work on a Linux emulator too. Try It Now!
update: OK, the 320x32 video does work on the web emulator, but the sound is not optimal, little clicks reminiscent of the old reel-to-reel projectors. I suppose I could tweak the vertical scale to get better video quality than the 160x32 source, say 160x48, but it looks like I've reached the limits of the X16 here.
The audio is divided up into 2594 byte (1/10 of a second) clips. On the first video the images are 5kb per frame, on the second they're 10kb per frame. So, the first video is streaming about 75kb/second, and the second about 125kb/second. The sweet spot is probably that 160x48 source, streaming 100kb/second.
download/file.php?id=1273
Try It Now!
I know that works on the web emulator, but I wanted to see how the web emulator handled even more data, so I doubled the image horizontal resolution to 320x32 (Hscale $40). Not sure if this will work. I know it won't work well on a Windows emulator, but if it works on the web emulator then it will probably work on a Linux emulator too. Try It Now!
update: OK, the 320x32 video does work on the web emulator, but the sound is not optimal, little clicks reminiscent of the old reel-to-reel projectors. I suppose I could tweak the vertical scale to get better video quality than the 160x32 source, say 160x48, but it looks like I've reached the limits of the X16 here.
The audio is divided up into 2594 byte (1/10 of a second) clips. On the first video the images are 5kb per frame, on the second they're 10kb per frame. So, the first video is streaming about 75kb/second, and the second about 125kb/second. The sweet spot is probably that 160x48 source, streaming 100kb/second.