![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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!!!!!!!!!!!!!! Last edited by Ehhh; 05-22-2012 at 04:30 AM. |
![]() |
![]() |
![]() |
#2 |
Member
![]() 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
![]() |
![]() |
![]() |
![]() |
#3 |
Zealot
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 138
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?
|
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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. |
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,669
Karma: 2300001
Join Date: Mar 2011
Location: Türkiye
Device: Kindle 5.3.7
|
|
![]() |
![]() |
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 59
Karma: 57554
Join Date: Jan 2012
Location: Romania
Device: Kindle Touch
|
![]()
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. ![]() |
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 608
Karma: 1588610
Join Date: Jan 2012
Device: Kindle Scribe
|
The best video to watch on a kindle is a screencast of what happens when you telnet into towel.blinkenlights.nl
|
![]() |
![]() |
![]() |
#8 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73
Karma: 7140
Join Date: Feb 2012
Device: Kindle Touch
|
Much better video is added today.
|
![]() |
![]() |
![]() |
#9 |
Enthusiast
![]() Posts: 35
Karma: 10
Join Date: Feb 2012
Device: Kindle Touch
|
Can you release the code so far for us to look at?
|
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 73
Karma: 7140
Join Date: Feb 2012
Device: Kindle Touch
|
![]() Last edited by Ehhh; 03-28-2012 at 08:59 AM. |
![]() |
![]() |
![]() |
#11 |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
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: https://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. |
![]() |
![]() |
![]() |
#12 |
Junior Member
![]() Posts: 1
Karma: 10
Join Date: Mar 2012
Device: Kindle
|
Funny real time stream video! It's can be interesting Video Security System.
![]() |
![]() |
![]() |
![]() |
#13 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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.
|
![]() |
![]() |
![]() |
#14 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,379
Karma: 2155307
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.
|
![]() |
![]() |
![]() |
#15 | |
Carpe diem, c'est la vie.
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
![]() 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 ![]() ![]() Last edited by geekmaster; 03-27-2012 at 09:26 AM. |
|
![]() |
![]() |
![]() |
|
![]() |
||||
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 |