Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-26-2012, 09:38 AM   #1
Ehhh
Connoisseur
Ehhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the rough
 
Posts: 73
Karma: 7140
Join Date: Feb 2012
Device: Kindle Touch
Example of playing video on Kindle Touch

Hi, All

My demo shows, that the Kindle Touch could play black & white video with synchronized audio very well. Please, set like or dislike to get information about Demo.

Demo Application:
Now, Einkplayer application plays only avi container with mpeg4 video and mp3 audio. Example of video is included in archive too. I will extend playing h264 ASAP.

Cartoons Pluto:
http://www.youtube.com/watch?v=0OE3tHEmGug

Animation:
http://www.youtube.com/watch?v=ERdXL...yer_detailpage

Realtime streaming video (Logitech network camera):
http://www.youtube.com/watch?v=vUVGM...yer_detailpage

Small video:
http://www.youtube.com/watch?v=Qr52Z...ature=youtu.be

The original version of animation is here:
http://www.youtube.com/watch?v=s13dL...eature=related

Simple script which plays movie:
1. unzip gstreamer's plugins gstreamer_plugins.GZ
2. set GST_PLUGINS_PATH path to this directory (export GST_PLUGIN_PATH=./plugins ).
3. and run the script:
gst-launch filesrc location=tom.avi ! ffdemux_avi name=d ! queue ! ffdec_mpeg4 ! videorate ! video/x-raw-yuv,framerate=5/1 ! videoflip method=3 ! ffmpegcolorspace ! videoscale ! video/x-raw-gray, width=600, height=800 ! eink ! fakesink d. ! queue ! ffdec_mp3 ! volume volume=1 ! audioresample ! audio/x-raw-int, rate=44100, channels=2, endianness=1234, width=16, depth=16, signed=true ! alsasink device=plughw sync=false

Waiting for comments!!!!!!!!!!!!!!
Attached Files
File Type: avi mickey.avi (7.48 MB, 269 views)
File Type: avi pluto.avi (6.64 MB, 231 views)
File Type: gz KTPlayer.tar.gz (11.02 MB, 405 views)
File Type: gz gstreamer_plugins.GZ (4.50 MB, 370 views)

Last edited by Ehhh; 05-22-2012 at 04:30 AM.
Ehhh is offline   Reply With Quote
Old 03-26-2012, 10:49 AM   #2
LittleLui
Member
LittleLui began at the beginning.
 
Posts: 16
Karma: 10
Join Date: Dec 2011
Device: Kindle Touch
Heh, nice. Seems to work really nicely for that kind of animation. I wanna have this
LittleLui is offline   Reply With Quote
Old 03-26-2012, 12:21 PM   #3
hostar
Zealot
hostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of lighthostar is a glorious beacon of light
 
Posts: 137
Karma: 12324
Join Date: Dec 2011
Location: CZ
Device: Kindle 4 non-touch
This is pretty cool. Can you describe how did make Kindle play video?
hostar is offline   Reply With Quote
Old 03-26-2012, 02:41 PM   #4
Ehhh
Connoisseur
Ehhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the rough
 
Posts: 73
Karma: 7140
Join Date: Feb 2012
Device: Kindle Touch
The project hasn't finished yet. It is command line application now and it needs to develop GUI application. Firstly, i would like to know , is it interesting application for people.

Last edited by Ehhh; 03-26-2012 at 03:13 PM.
Ehhh is offline   Reply With Quote
Old 03-26-2012, 03:37 PM   #5
thomass
Wizard
thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.thomass ought to be getting tired of karma fortunes by now.
 
Posts: 1,619
Karma: 1868895
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
Quote:
Originally Posted by Ehhh View Post
is it interesting application for people.
of course
thomass is offline   Reply With Quote
Old 03-26-2012, 03:38 PM   #6
wolftail
Connoisseur
wolftail will blow your mind, man!wolftail will blow your mind, man!wolftail will blow your mind, man!wolftail will blow your mind, man!wolftail will blow your mind, man!wolftail will blow your mind, man!wolftail will blow your mind, man!wolftail will blow your mind, man!wolftail will blow your mind, man!wolftail will blow your mind, man!wolftail will blow your mind, man!
 
wolftail's Avatar
 
Posts: 58
Karma: 57554
Join Date: Jan 2012
Location: Romania
Device: Kindle Touch
Thumbs up Please keep working on this.

This is really cool and the video quality is acceptable. You need to keep working on this.
Keep Up the good work and please make a GUI enabled version.
wolftail is offline   Reply With Quote
Old 03-26-2012, 11:49 PM   #7
aditya3098
Zombie's worst nightmare
aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.aditya3098 ought to be getting tired of karma fortunes by now.
 
aditya3098's Avatar
 
Posts: 592
Karma: 1578840
Join Date: Jan 2012
Location: Far, far away (from radio shack) :(
Device: Kindle touch (hacked to the core) 5.3.2.1
The best video to watch on a kindle is a screencast of what happens when you telnet into towel.blinkenlights.nl
aditya3098 is offline   Reply With Quote
Old 03-27-2012, 04:25 AM   #8
Ehhh
Connoisseur
Ehhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the rough
 
Posts: 73
Karma: 7140
Join Date: Feb 2012
Device: Kindle Touch
Much better video is added today.
Ehhh is offline   Reply With Quote
Old 03-27-2012, 04:38 AM   #9
lukeroge
Enthusiast
lukeroge began at the beginning.
 
Posts: 32
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch
Can you release the code so far for us to look at?
lukeroge is offline   Reply With Quote
Old 03-27-2012, 05:40 AM   #10
Ehhh
Connoisseur
Ehhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the rough
 
Posts: 73
Karma: 7140
Join Date: Feb 2012
Device: Kindle Touch
) i want to add only, that this application captures videos from cameras too using rtsp protocol. I tested it, and it works very well !!!

Last edited by Ehhh; 03-28-2012 at 08:59 AM.
Ehhh is offline   Reply With Quote
Old 03-27-2012, 08:21 AM   #11
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
On the streaming video shown at your link, you can get rid of those "flash updates" (gray -> black -> white -> gray) by using dithered black and white pixels to replace the "blinking" gray areas. From my testing, I much prefer the ordered (Bayer) dither over the other methods. An ordered dither is also used in the gnuboy program for the kindle (from hawhill) and as you can see when you run a gameboy ROM in it, there is no flicker (but there is some smearing on moving objects). Also, it will be MUCH faster if dithered.

The flash updates you are using take a significant fraction of a second to update (or more, depending on quantity and distribution of gray pixels). Updating gray pixels also shows an annoying flash during that very slow update. Ordered-dither updates can run at a predictable 5 udpates per second for fullscreen, or 12 updates per second for a smaller image on the screen (such as 400x300), all with no flashing during the update.

You just need to avoid drawing gray pixels, and use pure black and white, with dithered grayscale. You can see just how fast these updates can be, by running my "vidtest" program for the K3 (which uses time-variant random dithering to demonstrate update speed). You can download it here: http://www.mobileread.com/forums/sho....php?p=2012359

You can update even faster by doing "partial screen" updates, limiting the "dirty" rectangle to only areas of the image with a significant quantity of changed pixels, such as the "walking man" in your sample video. The eink device drivers DO have a speed limit though, and if you try to update faster than that, a new update begins without completing the previous update, resulting in an unusable jumble of unfinished updates until the update requests slow down and the drivers can catch up.

Last edited by geekmaster; 03-28-2012 at 02:20 PM.
geekmaster is offline   Reply With Quote
Old 03-27-2012, 08:26 AM   #12
Ms.Stream
Junior Member
Ms.Stream began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Mar 2012
Device: Kindle
Funny real time stream video! It's can be interesting Video Security System.
Ms.Stream is offline   Reply With Quote
Old 03-27-2012, 08:54 AM   #13
Ehhh
Connoisseur
Ehhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the roughEhhh is a jewel in the rough
 
Posts: 73
Karma: 7140
Join Date: Feb 2012
Device: Kindle Touch
I din't know exactly how to draw gray colors without dithers. Thank you for proposal to use the ordered dithering algorithm, instead of drawing grays colors. I will try it. Thank you.
Ehhh is offline   Reply With Quote
Old 03-27-2012, 08:59 AM   #14
hawhill
Wizard
hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.hawhill ought to be getting tired of karma fortunes by now.
 
hawhill's Avatar
 
Posts: 1,030
Karma: 2055635
Join Date: Nov 2010
Location: Goettingen, Germany
Device: Kindle Paperwhite, Kobo Mini
You might want to look into the sources of the gameboy emulator, look into sys/fbdev/fbdev.c. It does a 5-step ordered dither via using a lookup table for 8bpp grayscale values. Should be easy to port into an mplayer fbdev output modification.
hawhill is offline   Reply With Quote
Old 03-27-2012, 09:21 AM   #15
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by hawhill View Post
You might want to look into the sources of the gameboy emulator, look into sys/fbdev/fbdev.c. It does a 5-step ordered dither via using a lookup table for 8bpp grayscale values. Should be easy to port into an mplayer fbdev output modification.
I played streaming videos on the K3 using the myts terminal and optware mplayer, using the "ascii art" output driver. Even at fullscreen, the video was smooth and quite acceptable (if you view it from about two meters away).

It gets that high speed by using partial-screen updates of individual characters (myts), and using ansi escape sequences to move around the screen to do differential updates (mplayer).

I posted some details about the command-line parameters I used in the mplayer thread some time ago.

The quality should be a LOT better with dithered output instead of "ascii art" output.

And if you like ascii art video , you can take any URL for vimeo.com and replace the leading "v" with "asc", to see it rendered in ascii art.

Last edited by geekmaster; 03-27-2012 at 09:26 AM.
geekmaster is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kindle fire not playing midi files jckindle Kindle Fire 3 01-30-2012 01:19 AM
Playing video on Cruz R101 wdadli1 Android Devices 0 12-18-2011 04:47 PM
Playing Zork on Kobo Touch molman Kobo Reader 0 09-09-2011 11:13 PM
Kindle 3, Nook Simple Touch, Kobo Touch and Libra Pro Touch jbcohen Which one should I buy? 4 06-18-2011 07:58 PM
Cloud Computing - GlideOs & Proper Video Playing & Photo Editing gallantknight01 enTourage Archive 0 04-13-2010 05:15 PM


All times are GMT -4. The time now is 09:16 PM.


MobileRead.com is a privately owned, operated and funded community.