Processing AVI, SWF, MPEG, or anything with propeller
rickszyr
Posts: 3
First, hello to everyone, i'm glad to see there's a big supporting community for this chip. I have worked with pics, for a very short time, and that's all my experience with microcontrollers.
I need to do something like what the title says, and was wondering if it was possible to do with this chip, for example, i want to create a video in my computer, and load it to an SD or directly to the properller, and play it on a simple 2" TFT screen.
Any guidelines, tips or hints?
Thank you in advance, and I hope I can contribute to the community some day ,
Rickszyr
I need to do something like what the title says, and was wondering if it was possible to do with this chip, for example, i want to create a video in my computer, and load it to an SD or directly to the properller, and play it on a simple 2" TFT screen.
Any guidelines, tips or hints?
Thank you in advance, and I hope I can contribute to the community some day ,
Rickszyr
Comments
Do you know of any other "cheap" microcontroller that has this capabilities?
You should be able to due this with the aid of a large SRAM, or if you wish to code the refreshes and commands, SDRAM. I have used SDRAM in some projects using various low speed Microcontrolers, and you do not have to run 133MHz SDRAM that fast (you can get away with 1 Meg/sec burst rates, as long as you refresh often enough).
But, I'm working on a Solomon based image co-processor (onboard jpg codec) for the Prop that will allow it to show high quality images or video on a 3.5" LCD (or other LCD).
There are already Solomon solutions for the PIC.
please explain a bit more?? I do not need to use an SD, but it would be useful, at least to load the video from it the first time. How would this work with an SDRam?
@Rayman,
Could you provide some examples? IE: what PIC, some samples of Solomon solutions, and also some websites with documentation or further info on the subject.
Thanks
--Steve
Do you have info on the capacitance, resistance of the lines on these boards? Or at least the maximum throughput from the SDRAM board? I am strongly considering this.
Check here for Propeller Platform http://gadgetgangster.com/find-a-project/56?projectnum=257
Check here for SDRAM boards: http://gadgetgangster.com/find-a-project/56?projectnum=359
Let me take some time to brush on NTSC and PAL video standards and then I will get back to you. Definitely seems possible. Hopefully I will be able to order these in the next couple of days (the Propeller Platform and SDRAM Module).
Looking at the pin outs I think I could do this from a breadboard, and maintain 100% compatibility with the Propeller Platform (as there is nothing to the propeller platform, but an easy interface to the prop). I will be ordering the SDRAM Module as soon as I have the money to do so.
I accept the challenge. Though I will pay for my own parts in this case. Thank you. I must admit some surprise when I first read your request, as I really did not think that any one still used NTSC/PAL for a display.
For your driver to be a glorious success however, it must be MIT licensed and able to do better than the TV version of the driver described here and available in this Propeller zip package.
The primary limit of that driver today is: it must use many duplicate tiles to fill the screen because of hub memory limits; your driver should not have duplicate tiles. So, every tile (screen area) must contain a different full-color image (up to 64 colors per tile). That driver also uses 1 COG to render the "mario" image and 3 COGS to draw sprites. I expect 2 COGs would be necessary to interact with SDRAM and render the background, so your solution should not exceed 5 COGs.
I highly recommend your downloading the zip package and running the demo. That package could be a good framework for testing your driver.
You should probably start another thread so the original poster can have their thread back.
/me starts to sweat... Yup.. "Glorious Success" would be how I would describe it too.
Would you believe that when it comes to SD read speed, propeller processing speed and the speed of the original movie, that the code is not too slow, not too fast, but just right?!
http://www.youtube.com/watch?v=170HLfl6VfI&feature=feedu
This is VGA but I am sure a TV version is possible.
davidsaunders is a legend for accepting this challenge!
Thinking in a broad sense, surely if we can pull data off an sd card fast enough to play a movie we can pull data off an external ram chip?
And thinking more outside the square, see my recent post re experiments with "cogjects". These have the potential to free up lots of hub ram, and that means you can then use that ram for more video buffer space.
What kind of interface does the target TFT device provide?
It is possible, I did it a couple years ago:
http://forums.parallax.com/showthread.php?116192-Prop-Video-Player-(now-with-audio!)&highlight=prop+video+player
showed it at UPEW...
Actually, now that I think about it, if the idea is to display on a TFT with a controller chip with GRAM, then you can actually do a pretty good job.
You just read the data from SD and put on GRAM. The hard part is doing it fast...
I think with jazzed SDRAM and a TFT with 16-bit interface you could do a pretty good job.
Still, this is uncompressed video data, which eats up memory fast. You can save uncompressed AV into a .avi file. I don't think it would be too hard to decode the AV stream, but I haven't tried that.