View Single Post
Old 05-08-2012, 07:27 PM   #59
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: *.*
I figured out the parameters for ffmpeg to convert a video on the web (sintel.org) and pipe its output to my "raw2gmv" dither filter then to "nc -l 5555". On my kindle I do "nc 192.168.1.201|./gmplay" and it works.

Because ubuntu ffmpeg is missing the transpose (and all other "-filters" options) O set the size to 600x400, and it played 2-up (600x400 above another 600x400 image).

After compiling ffmeg from source to get all the filters (https://ffmpeg.org/trac/ffmpeg/wiki/...mpilationGuide) I now am playing "normally" 800x600. Everything is a bit tall and narrow with no letterbox, but I can add one with ffmpeg if I want it. Stretched to full screen gives a lot more detail than letterboxing.

Anyway, the point is that I am now playing a live High-definition stream (http://mirrorblender.top-ix.org/movi...8-surround.mp4) directly from the web server to my kindle, through a transcoder/proxy on my host PC.

transcode/proxy (2-up image 400x600) using ffmpeg installed with ubuntu apt-get:
PHP Code:
ffmpeg -i http://mirrorblender.top-ix.org/movies/sintel-2048-surround.mp4 \
 
-pix_fmt gray -vf transpose=-vcodec rawvideo -f rawvideo --s 600x400 - | \
 
raw2gmv nc -l 5555 


transcode/proxy rotated 800x600 video using ffmpeg (with filters) built from source:
PHP Code:
~/ffmpeg/ffmpeg -i http://mirrorblender.top-ix.org/movies/sintel-2048-surround.mp4 \
 
-pix_fmt gray -vf transpose=-vcodec rawvideo -f rawvideo --s 600x400 - | \
 
raw2gmv nc -l 5555 


One thing interesting here is that I do not have to do the framedropping myself like I did when I was using mplayer to convert to raw video. ffmpeg is automatically dropping frames at the rate set by gmplay running on the kindle. My latest gmplay lets me adjust that on the command line.

Okay, I am playing it at 24FPS on my K5 now, and there are screen artifacts on fast moving high contrast objects (the fight scene). Now running 12FPS (waiting for fight scene). The eink display really can get by with much less FPS than light-emitting displays. Oh... it looked great until the fight scene. Back th K3-compatible 7.7FPS (which looks great on eink -- something you could never get away with on LCD or CRT).



Last edited by geekmaster; 05-08-2012 at 08:37 PM.
geekmaster is offline   Reply With Quote