05-09-2012, 03:20 PM | #61 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
When you are ready to try an audio track, I stumbled on an interesting one:
Hacker's Heaven http://steve.savitzky.net/Songs/heaven/ Available as ogg: http://steve.savitzky.net/Songs/heaven/heaven.ogg And mp3: http://steve.savitzky.net/Songs/heaven/heaven.mp3 |
05-09-2012, 04:26 PM | #62 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
I suppose you noticed that in my (NON-life-critical and NON-mission-critical) code, I do not waste time or space to check return codes (except for the ioctl() so it can fall back to eips ''). Of course, I *do* write (other) life-critical and mission-critical code, and I was trained young (when most people did not know what a computer was) to write code that I can defend in court to "laypersons" (non-technical consumers of the pre-internet past)... There is still a lot of my code out there running in factories in many countries around the world, and when you have very heavy equipment moving at high speeds in close proximity to humans, you do not want a heavy piece of your machine flying through a brick wall out into the parking lot because of a "little" coding error. When robotic machinery "crashes", you cannot just press the reset button and start over. Pushing pixels is much safer than pushing metal. For hacker purposes, who cares if a broken video file makes your video display out of alignment to the screen? Just go download a good video file to replace the bad one... P.S. There was not enough room on the mobileread tagline to fit my original "Bare-Metal Bit-Basher and Pixel-Pusher" that I wanted, but as you can see from recent posts is a more accurate description of my code. And if you want to know more about "bit-bashing" in a style that earns my respect, you absolutely MUST read these little "pure magic" web pages (the "DeBruijn sequence" code has been especially handy on multiple occasions): Also, the DeBruijn paper mentions "perfect hash". My original reason for using tinycc (tcc) was to implement "minimal perfect hash" code that generates C source code to fit your data, which is then "jit-compiled" with tcc from within my code. You should read up on mph too (be sure to read the comments at the top of the C programs at this link): Last edited by geekmaster; 05-09-2012 at 08:07 PM. |
|
Advert | |
|
05-09-2012, 04:39 PM | #63 |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
I thought you might like that one.
Hmm... Now if a fitting video can be located for the sound track... |
05-09-2012, 04:43 PM | #64 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
So, I finally got around to trying it, and guess what:
Code:
[root@kindle us]# zcat gmvid.gmv.gz |./gmplay Segmentation fault |
05-09-2012, 04:52 PM | #65 | |
Going Viral
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
1970's, DataGeneral RDOS, "Sequential Read" disk files. Although it is probably not original with D.G. |
|
Advert | |
|
05-09-2012, 04:53 PM | #66 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
|
|
05-09-2012, 04:56 PM | #67 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Interestingly enough, it does work in diags. I'll reboot to main and retry, and update this post in a few minutes.
|
05-09-2012, 04:59 PM | #68 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I just downloaded it from the first post and put it on my K5 (5.1.0 upgrade). It ran fine booted from main (starting USBnet from the launcher menu), using this command:
zcat sintel.gmv.gz|./gmplay What command did you run to launch it? You are the first person to report this problem and I cannot duplicate it, so perhaps you should download it again and try again. You can even compile it with tcc from another of my threads. |
05-09-2012, 05:01 PM | #69 |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
I can't duplicate it either. After a reboot, it now works in main as well. Same files, same command.
The Microsoft solution: if it doesn't work, reboot. PS: It's indeed impressive! Good quality and fluid playback. Last edited by ixtab; 05-09-2012 at 05:18 PM. |
05-09-2012, 05:02 PM | #70 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
I just noticed the "distorted screen" part of your post. Are you decompressing it (zcat|gmplay)? The program assumes that it is just raw bits, and the .gz file would give different bits.
Last edited by geekmaster; 05-09-2012 at 05:07 PM. |
05-09-2012, 05:03 PM | #71 | |
hub
Posts: 715
Karma: 2151032
Join Date: Jan 2012
Location: Iranian in Canada
Device: K3G, DXG, Kobo mini
|
Quote:
And by the way, each time I run gmplay, I should restart or do a killall pillowd, because KT becomes unresponsive to Home key. It doesn't matter if I let the animation complete or interrupt it with Ctrl+C. I wonder why! It used to work Geekmaster, in the very first day you released this code (early version of gmplay). |
|
05-09-2012, 05:04 PM | #72 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
To keep my code small and simple I do not check or change the screen parameters (bit depth, etc.). Perhaps you ran a program that set your kindle to a "non-default" video mode and did not put it back the way it found it... Bad (other person's) program!
|
05-09-2012, 05:12 PM | #73 | |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Quote:
Regarding the framework locking up -- I think that happens because I am "dominating" the display and the framework checks for display "not busy" and just "gives up" if it goes to long with eink busy... But I only saw the framework go dead like that once on my K3, and an SSH "framework restart" command fixed it... |
|
05-09-2012, 05:14 PM | #74 |
Carpe diem, c'est la vie.
Posts: 6,433
Karma: 10773668
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
|
Perhaps I should do in gmplay like I did in my "algorithmic art" scripts: pause and resume cvm and Xorg so they do not get frustrated and go comatose...
|
05-09-2012, 05:15 PM | #75 | |
(offline)
Posts: 2,907
Karma: 6736092
Join Date: Dec 2011
Device: K3, K4, K5, KPW, KPW2
|
Quote:
1. Open any book, switch to landscape mode. 2. Code:
[root@kindle us]# zcat harvey.gmv.gz |./gmplay Segmentation fault 4. gmplay works again. So the rotation setting seems to "physically" rotate the underlying device (if you know what I mean). You can even verify this by setting the device to portrait inverted -- gmplay will also play "upside down". |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hacks free kindle video player | geekmaster | Amazon Kindle | 0 | 05-07-2012 12:17 AM |
Video Player | wilbrich | Kobo Tablets | 1 | 11-24-2011 02:40 PM |
Video player, Video streaming,Remote | mint121 | enTourage eDGe | 1 | 11-18-2011 03:31 PM |
Frustrated with the video player | TonyToews | Kobo Tablets | 10 | 11-01-2011 01:15 PM |