View Single Post
Old 12-17-2011, 01:33 AM   #100
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: 10773670
Join Date: Nov 2011
Location: Multiverse 6627A
Device: K1 to PW3
Quote:
Originally Posted by PoP View Post
I was curious to see the video streaming. I tried the command line you posted but only got the audio. I was using fbdev's mplayer too, but it seemed unable to open the video device. Do I have the correct version and parameters?
...
AO: [alsa] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...

MPlayer interrupted by signal 15 in module: play_audio

Exiting... (Quit)
I am testing now...

1) launch myts-6 (shift T T)
2) loop mount and chroot to debian ext3 image
3) cd to video folder
4) run mplayer command shown above (musicbox version)
5) video works! (better if you squint or stand back )

I just realized that this mplayer was installed from the debian repository with apt-get. I also have gcc from apt-get and do native compiles on my kindle. In this case I did not compile mplayer -- only installed the package.

I will attempt to get this debian repository version of mplayer running in the native kindle environment.

I just copied all the mplayer folders from the ext3 image to /mnt/us. After chrooting back to the native kindle root, mplayer reports missing libraries.

It needs a lot of libraries copied... Very tempting to static link it. I suppose the easiest thing to do is copy them all to the mplayer folder and set a library path to it. I copied dozens of library files and each time I run mplayer it tells me one more is missing. There must be a way to get a list of all the files it needs (EDIT: later discovered ldd). Building from source failed (wrong header files).

Sadly, it will abort if *any* codec libraries are missing, even though it only needs ONE of them. I can see why fbdev left them out. And they are rather large too.

Okay, after individually locating and linking about 50 libs, I googled and found ldd. That tells me there are 120 library dependencies. I piped it to a file and I will convert that to a script to copy all the missing files. Yuck... Static linking would make one huge file with all those. I suppose the build could leave out all but the most popular codec libraries...

Now I copied all 120 libraries (40 MB) identified by "ldd mplayer" into /mnt/us/mplayer/lib, and I did "export LD_LIBRARY_PATH=/mnt/us/mplayer/lib". Running mplayer no longer reports missing libraries. Now with parameters if reports "Illegal instruction" and with no parameters it reports "Segmentation fault". And with this LD_LIBRARY_PATH set, other linux commands fail the same way. This is apparently the linux version of Windows "DLL Hell". This sucks...

Perhaps the libs will shrink enough if I compress them with upx, so they could fit on the native kindle root. Need to resolve the library problem first though.

Any suggestions?

(At least it works when installed on the kindle with apt-get).

Last edited by geekmaster; 12-17-2011 at 04:15 AM.
geekmaster is offline   Reply With Quote