View Single Post
Old 07-07-2012, 08:42 AM   #98
ppoo
Connoisseur
ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.ppoo writes the songs that make the whole world sing.
 
Posts: 55
Karma: 40393
Join Date: May 2012
Device: Kindle Touch
we can play music+video together with gmplay & mplayer.
gpplay ( through usbnet)
Code:
mplayer -quiet $3&
nc $1 $2 | ./gmplay
gpplay ( local)
Code:
mplayer -quiet $3&
zcat $1 | ./gmplay
then
Code:
chmod +x mplayer
chmod +x gmplay
with usbnet edition
Code:
gpplay 192.168.0.101 5555 <music_file>.mp3
with local edition
Code:
gpplay <video_file>.gmv <music_file>.mp3
we can extract mp3 file from video use ffmpeg:
Code:
ffmpeg.exe -i <video_file_input>.mp4 -ab 128 -ar 44100 <music_file_ouput>.mp3
note:
ffmpeg version git-N-30558-ge844abc work fine for window
to run raw2gmv under window you must install cygwin then compile it with:
gcc raw2gmv.c -o raw2gmv

to save raw video to gmv use:

Code:
# ./ffmpeg.exe -i ./input_video_file.mp4 -pix_fmt gray -f rawvideo -vf pad=800:600:0:75 -s 800x450 -r 7.7 -| ./raw2gmz >output_video_file.gmv
ppoo is offline   Reply With Quote