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-28-2012, 07:49 PM   #31
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
@Novo, that demo is for the K3 in 4 bpp mode. The touch is 8 bpp. I could adapt it...

The partial refresh hack on a touch could be similar to that video, but in the modes we can do now we are limited to about 5 frames per second and that looked a lot faster. The touch has other update modes defined in the eink drivers that I have not tried yet, so it may be possible to get the same results. For now though, similar but slower (like in the youtube video above).

The K3 has older eink drivers, but still may be able to be improved as we explore its capabilities using dithered black and white modes.

The eink drivers also support changing bits-per-pixel and support 1-bit pixels. Perhaps that would be even faster, but so far is just another thing on the "To Do" list...

Last edited by geekmaster; 03-28-2012 at 07:52 PM.
geekmaster is offline   Reply With Quote
Old 03-30-2012, 02:58 PM   #32
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
I like this thread, so I just tried to bump ehhh's karma from 44 to 2600, but somebody else must have been giving him karma at the same time (or there was a technical glitch), so it jumped to 2810. Oh well, at least he no longer has noob karma.
geekmaster is offline   Reply With Quote
Old 04-04-2012, 02:06 PM   #33
Novo
Enthusiast
Novo began at the beginning.
 
Posts: 34
Karma: 10
Join Date: Dec 2011
Location: Germany
Device: Kindle PW4
any updates for now? Sourcecode?
Novo is offline   Reply With Quote
Old 04-04-2012, 03:40 PM   #34
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Yeah, what's up with the "Big Tease"? Let's see some "product".
geekmaster is offline   Reply With Quote
Old 04-22-2012, 04:21 AM   #35
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
Ohhh... 3 week vacation in Egypt gave me a time to think faster... )))

ps. and i'm full of work of my real job, and that's why i've no a lot of free time to cotinue this hobby's project. i provided the investigations and developing, but it's mush slower then before.
Ehhh is offline   Reply With Quote
Old 04-22-2012, 02:57 PM   #36
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: 59
Karma: 57554
Join Date: Jan 2012
Location: Romania
Device: Kindle Touch
Lightbulb

Quote:
Originally Posted by Ehhh View Post
ps. and i'm full of work of my real job, and that's why i've no a lot of free time to cotinue this hobby's project. i provided the investigations and developing, but it's mush slower then before.
Please release the code so that other people work on this too. Development will be a lot faster.
wolftail is offline   Reply With Quote
Old 04-23-2012, 09:16 AM   #37
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
Hi, Geekmaster

How many frames per second could show your tests? I opimized code and developed a few tests today, and my eink display can shows only 3 frames per seconds without any artifacts.

Bests Regards
Ehhh is offline   Reply With Quote
Old 04-23-2012, 10:11 AM   #38
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
For the K5(touch) it depends mostly on high contrast transitions and how large they are. It analyzes the screen changes and does different things depending on how much of the screen changed since the last update. The most annoying is a deferred update mode, where it stacks many unfinished partial updates, then leaves a trail of up to 32 (an estimate based on observation) dirty rectangles trailing a moving high-contrast object.

If I do low-contrast animation where there are now high-contrast sharp edges, I can do aobut 12 FPS, but for normal content (allowing a little artifacting) I get about 5 FPS.

It helps to NOT write to /dev/fb0 until just before the eips command (or ioctl() if you got that working). I completely redesigned my dithering code, and in my new code. I am now doing all my updates to /tmp/wb0 (an 8-bit virtual framebuffer) at about 30 FPS in 256-color grayscale, then periodically (slow enough to not cause nasty eink display artifacts such as tearing or smearing) I dither that /dev/fb0. Depending on content I can update the display between 4 FPS and 12 FPS (or faster in some cases, with carefully controlled content).

Actually, it seems that the K4 booted from main is FASTER than the K5 for animation (using hybrid K3 eink drivers in 8-bit framebuffer mode).

I will post a little demo showing the maximum speed I have been able to achieve on the K5 using carefully controlled content. Of course, that only works with that special content, and I have to slow down to 4 or 5 FPS updates for normal high-contrast stuff to reduce display artifacts.

I will add a link here to my demo when I post it.

Here is my newest "dithermation" demo showing what my new dither routines can do:

https://www.mobileread.com/forums/sho....php?p=2054459


Last edited by geekmaster; 04-23-2012 at 01:21 PM.
geekmaster is offline   Reply With Quote
Old 05-07-2012, 12:00 AM   #39
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
I just posted a long youtube video "Living FPV 2" that I downloaded and converted to "gmplay" format. For those who missed it, gmplay can play fullscreen videos on all eink kindle models, but the DX and DXG drop frames because they can only do 1.3 FPS (but the sequence of still images is sharper than continuous video). More videos have been posted now too, including great old vintage silent films.

The K3 and newer eink kindles can play full screen video at full speed. There are two videos you can download (one computer generated -- the other filmed by on onboard camera mounted in a remote-controlled airplane). "Action shots" like the FPV video show that video on eink is much better and more useful than I thought it would be. Source code is provided for video the player.

You can download gmplay and videos for it here:



Last edited by geekmaster; 05-07-2012 at 06:18 AM.
geekmaster is offline   Reply With Quote
Old 05-10-2012, 05:52 AM   #40
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
einkplayer demo is uploaded... and it 3 cartoons are attached too.

Last edited by Ehhh; 05-10-2012 at 09:42 AM.
Ehhh is offline   Reply With Quote
Old 05-10-2012, 12:53 PM   #41
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by Ehhh View Post
einkplayer demo is uploaded... and it 3 cartoons are attached too.
Hmm... No source code? How can I static link it like I do for my stuff so it will run on all kindles without library version conflicts?

I normally test in K5 diags first (less competition for resources), but your program just displays this:

./einkplayer: error while loading shared libraries: libgstreamer-0.10.so.0: cannot open shared object file: No such file or directory


I suppose I need to boot main and test it there because of its crippling dependence on libraries. Does this work on DX/DXG/K3/K4main/K4diags/K5main? It does not work on K5diags.

I test my stuff on all of the above (and it works).

When do we get the source code? We are still waiting.

In the mean time, I have ffmpeg running in all my kindles in all modes, playing video on the eink. It is a full build with all options and plays all supported video formats and network streams. I run all my eink stuff at 7.7 FPS (130ms/update), which is a good compromise for all the kindles. The DX and DXG run at 1.5 FPS though because of the time spent in the eink drivers. I have also run the K5 at up to almost 50 FPS which works fine for VERY carefully controlled content (no fast motion of high-contrast objects), and on eink, motion is fuild even at 7.7 FPS so that is a generally good all-around compromise.

It would be NICE if your code can give us less overhead than a full ffmpeg build...

UPDATE: I booted to K5main and ran it again. Running ./run_player.sh gave a bunch of different errors this time:
Spoiler:
'ips: invalid option -- '
: not foundr.sh: line 3:
: not foundr.sh: line 5:
com.lab126.powerd failed to set value for property preventScreenSaver (0x8 lipcErrNoSuchProperty)
: not foundr.sh: line 8:

Enter command:
1 : Play
2 : Stop
3 : Pause
4 : Seek
5 : Position/Duration
q : quit

(einkplayer:2064): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_element_link_pads: assertion `GST_IS_ELEMENT (dest)' failed

(einkplayer:2064): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(einkplayer:2064): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(einkplayer:2064): GLib-GObject-WARNING **: invalid (NULL) pointer instance

(einkplayer:2064): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_element_get_static_pad: assertion `GST_IS_ELEMENT (element)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_bin_add_many: assertion `GST_IS_ELEMENT (element_1)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_element_link_many: assertion `GST_IS_ELEMENT (element_1)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_ghost_pad_new: assertion `GST_IS_PAD (target)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_element_add_pad: assertion `GST_IS_PAD (pad)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_object_unref: assertion `object != NULL' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_element_get_static_pad: assertion `GST_IS_ELEMENT (element)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_bin_add_many: assertion `GST_IS_ELEMENT (element_1)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_element_link_many: assertion `GST_IS_ELEMENT (element_1)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_ghost_pad_new: assertion `GST_IS_PAD (target)' failed

(einkplayer:2064): GStreamer-CRITICAL **: gst_element_add_pad: assertion `GST_IS_PAD (pad)' failed
Error: Internal data flow error.

EDIT: Problem solved -- the run_player.sh script contains carriage-returns that need to be stripped out. A new script with "unix" LF-only should be uploaded to replace it. This problem still exists in KTPlayer.tar.gz.


So... what kindles DOES it run on? Or perhaps I should ask "WHICH firmware versions on what kindles does it run on" ??? Just curious...

We could help you fix this, and add enhancements and features to it, if we had source code. Can we please have source code?

UPDATE: CRs inserted AFTER downloading, by extracting with 7-zip.


Last edited by geekmaster; 05-11-2012 at 06:53 PM.
geekmaster is offline   Reply With Quote
Old 05-10-2012, 01:12 PM   #42
thatworkshop
hub
thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.thatworkshop ought to be getting tired of karma fortunes by now.
 
thatworkshop's Avatar
 
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
Quote:
Originally Posted by geekmaster View Post
UPDATE: I booted to K5main and ran it again. Running ./run_player.sh gave a bunch of different errors this time:
I ran it without any errors at all.
Yes, having the source code would be very nice.
thatworkshop is offline   Reply With Quote
Old 05-10-2012, 01:16 PM   #43
geekmaster
Carpe diem, c'est la vie.
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: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by cscat View Post
I ran it without any errors at all.
Yes, having the source code would be very nice.
I am running 5.1.0. What firmware do you have? I want to see this run.

I am curious why lipc is reporting "preventScreenSaver" as "lipcNoSuchProperty". Another thing the 5.1.0 update broke?

@Ehhh: are you running 5.1.0, or does this only work on 5.0.x kindles? And those glibc errors look like some kind of library version conflict. Could you please upload a static build that contains your working libraries linked into the executable, so it can work on more firmware versions and kindle models? I would like to build it myself, so could I please have the source code (PM it to me if necessary to keep it private). Thanks.

I really do not have time to downgrade to 5.0.4 to test this. Has anybody run it on 5.1.0 yet?



Last edited by geekmaster; 05-10-2012 at 01:39 PM.
geekmaster is offline   Reply With Quote
Old 05-10-2012, 01:41 PM   #44
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
Hi, Geekmaster

Firstly, thank you for testing it.
My Kindle's version is 5.0.4 . It seems that plugins of gstreamer which i compiled for Kindle Touch conflicts in version 5.1.0. Please, write me a size of glib library.
what version of gstreamer is on 5.1.0?
Ehhh is offline   Reply With Quote
Old 05-10-2012, 01:55 PM   #45
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Ehhh View Post
Hi, Geekmaster

Firstly, thank you for testing it.
My Kindle's version is 5.0.4 . It seems that plugins of gstreamer which i compiled for Kindle Touch conflicts in version 5.1.0. Please, write me a size of glib library.
what version of gstreamer is on 5.1.0?
You will find members here slow and/or reluctant to help support closed source software.

If you would publish your source, with an appropriate open source license...
knc1 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 04:28 AM.


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