View Single Post
Old 07-11-2012, 01:15 PM   #101
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
I found a script on my k5 that decodes simultaneous audio and video:
Code:
#!/bin/sh
./ffmpeg -d -i $1 -an -pix_fmt gray -sws_flags neighbor -f rawvideo -s 800x600 -|./raw2gmv|./gmplay &
./ffmpeg -d -i $1 -vn -f s16le -acodec pcm_s16le -ar 44100 -|aplay -f cd
I do not think the K3 is powerful enough to do this realtime, with all that CPU time burned in the eink update syscalls.

Notice the "&" after the first ffmpeg call. They run as parallel processes.

BTW, there are lots of examples on the net using this "two instance" method for ffmpeg to play simultaneous audio and video streams. Luckily, interleaved input will already be cached for the other instance.

Also, notice that to make realtime playing possible, I cheated a little (nearest-neighbor pixel downsampling of HD rotated to 600x800).

Last edited by geekmaster; 07-11-2012 at 01:18 PM.
geekmaster is offline   Reply With Quote