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