Author Topic: TruVid - 4 level grayscale video with sound  (Read 27424 times)

0 Members and 2 Guests are viewing this topic.

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: TruVid - 4 level grayscale video with sound
« Reply #15 on: July 08, 2011, 11:44:33 am »
Relative dithering seems to be the best one, but absolute dithering also pretty decent.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: TruVid - 4 level grayscale video with sound
« Reply #16 on: July 08, 2011, 11:56:00 am »
I think I like Relative Dithering the best.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: TruVid - 4 level grayscale video with sound
« Reply #17 on: July 08, 2011, 12:02:57 pm »
I had a feeling dithering would make the whole video look better by making each individual frame look better, and it looks like that might be the case! :)

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: TruVid - 4 level grayscale video with sound
« Reply #18 on: July 08, 2011, 12:19:42 pm »
Congratulations for this technical feat ;)
I'm somewhat disappointed that the sample video isn't a rickroll :D

On the sample video, I like the top-left one, Relative - Threshold, best. The ones with dithering, in the right column, continuously show horrible pixel jitter. It would probably look less bad on a real calculator than on the emulator, but some kinds of lighting will reveal the jitter and video quality will suck.
(on this sample, I think that the one I like best is the raw version you showcased on YouTube :) )
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: TruVid - 4 level grayscale video with sound
« Reply #19 on: July 08, 2011, 12:21:38 pm »
That's right, I'm keeping with tradition of names by using Tru, but I'm also breaking the mold by making a 6 letter app name.

zStart also has six.

I think this video should sum it up.

I still can't believe it... That's a real calculator, with a real LCD showing a real video, while playing sound in perfect time out of the link port? What have you done? D:

I think one of the humorous parts of this is the insane data rate. The video runs at 10 fps, 10 * 768 * 2 = 15,360 Bytes/s. The sound runs between 17,500 Bytes/s and 20,000 Bytes/s. So that's a total of 34KB/s. That means it burns through Mirage in .5 sec! At this rate, the 84+SE can hold about 45 seconds and the 84+BE can hold around 15. But hey, this is full video on the calculator.

Or a fifth of a rickroll O.O

And you know, since it's me, perfect grayscale. It's not adjustable yet, but it will be.

Again, wow.

In my current setup, I have video and audio looping independently, in the numa numa, assuming you are using the right processor speed, the video and sound are supposed to be the same length, however, the sound ends up being slightly longer since you can't interrupt instructions (which also causes the white noise.) But, I might be able to adjust for that. I could make them loop together, but I'm setting up for Nyan Cat ;D

Oh crap... And disable keypresses so the user can't get out, then make zStart it so it starts up again after the user pulls a battery >:D

EDIT: Absolute dithering. That way it doesn't look weird if the video jumps from a dark scene to a bright light.
« Last Edit: July 08, 2011, 12:22:37 pm by Deep Thought »




Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: TruVid - 4 level grayscale video with sound
« Reply #20 on: July 08, 2011, 12:24:30 pm »
On the sample video, I like the top-left one, Relative - Threshold, best. The ones with dithering, in the right column, continuously show horrible pixel jitter. It would probably look less bad on a real calculator than on the emulator, but some kinds of lighting will reveal the jitter and video quality will suck.

I was a little worried about that myself, but I'd like to see how it looks on a real calculator first. And if it does look too jittery, he can try using positioned dithering instead. That would drastically reduce any jitter, while hopefully still maintaining a decent looking video.
« Last Edit: July 08, 2011, 12:25:27 pm by Runer112 »

Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: TruVid - 4 level grayscale video with sound
« Reply #21 on: July 08, 2011, 01:11:26 pm »
This is amazing! I'm sure the dithering will look better on a real calc.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: TruVid - 4 level grayscale video with sound
« Reply #22 on: July 08, 2011, 02:39:59 pm »
I must say, this is very impressive!
I didn't know sound from a calculator could be that good!

SirCmpwn

  • Guest
Re: TruVid - 4 level grayscale video with sound
« Reply #23 on: July 08, 2011, 03:03:30 pm »
Also, bonus points for emailing me the app and the video early :)

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: TruVid - 4 level grayscale video with sound
« Reply #24 on: July 08, 2011, 03:57:47 pm »
Well, Lionel was right as I suspected, there is quite a bit of visual noise when you play the videos on the calculator. Clearly there is more visual depth, but also more static.



The best range to view this at is about 4 feet in an averagely lit room, however I filmed this at 3 inches in a very well lit room.

Edit: Forgot to finish my post
    Next I'm planning to do some ordered dithering, hopefully this should reduce the noise.
« Last Edit: July 08, 2011, 03:58:41 pm by thepenguin77 »
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: TruVid - 4 level grayscale video with sound
« Reply #25 on: July 08, 2011, 06:04:41 pm »
Personally, I think the dithered video, although noisy, looks far better than the undithered video. In most cases, I don't see why anyone would be viewing their calculator from less than about a foot away, so the noise from the dithering shouldn't be too prominent. And I'm not really sure if ordered dithering would make things better or worse, though. It would result in less noise, but it might also look strange to apply to a video, as I imagine it would appear as if the objects in the video are actually moving under the dithering, not moving with it.
« Last Edit: July 08, 2011, 06:07:01 pm by Runer112 »

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: TruVid - 4 level grayscale video with sound
« Reply #26 on: July 08, 2011, 07:10:53 pm »
That's a ridiculous throughput. I'd ask for compression, but the answer is definitely "no" unless you want to give up sound quality or framerate (nope :P).
Congratulations! :D
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: TruVid - 4 level grayscale video with sound
« Reply #27 on: July 08, 2011, 07:20:11 pm »
Wow, the dithering makes it look even better!  I wonder if ordered dithering would lessen the static or add the a crosshatch artifact.  Either way, the project is making great progress!  :D
ld a, 0
ld a, a

Ashbad

  • Guest
Re: TruVid - 4 level grayscale video with sound
« Reply #28 on: July 08, 2011, 07:22:12 pm »
I suggest dithering as only an option, and maybe perhaps lower sound quality (edit: also as an option) for slightly longer vids?
« Last Edit: July 08, 2011, 07:23:22 pm by Ashbad »

Offline thepenguin77

  • z80 Assembly Master
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1594
  • Rating: +823/-5
  • The game in my avatar is bit.ly/p0zPWu
    • View Profile
Re: TruVid - 4 level grayscale video with sound
« Reply #29 on: July 08, 2011, 08:10:41 pm »
I can't lower the sound quality, it's already as low as I can make it. I would have two options for lowering the sound rate, slow down my interrupts, or half the data rate by changing bytes every other interrupt.

If I slow down my interrupts, that means that you are going to hear a high pitch sound when you listen to the videos. Imagine what it sounds like in wabbitemu, except it's real.

If I half the data rate, (I can't reduce it in any way but half), you would have a sample rate of 9Khz, which is just unheard of. I don't know how that would sound, but it wouldn't sound good. I would imagine that high pitch noises would get clipped.


I'll make dithering an option unless I find something that really works, which I might.
zStart v1.3.013 9-20-2013 
All of my utilities
TI-Connect Help
You can build a statue out of either 1'x1' blocks or 12'x12' blocks. The 1'x1' blocks will take a lot longer, but the final product is worth it.
       -Runer112