How to use mplayer to rip the sound from a video and create a wav file that you can encode with lame.

This is the command I just used to rip the audio from a movie and save it as a wav file. Then the lame command is used to encode the wav into an mp3 file. john@adeptus-mechanicus ~/Music $ mplayer -ao pcm:fast:file=out.wav -vo null -vc null video.mp4 && lame -h -b 320 out.wavjohn@adeptus-mechanicus ~/Music $ mplayer … Read more

Recording television with mplayer.

Record television with mplayer, with this simple script. This is very useful indeed. #!/bin/sh   mencoder tv:// -tv driver=v4l2:input=1:norm=pal:width=720:height=576: \ device=/dev/video0:forceaudio:audiorate=32000:alsa:adevice=hw.0 buffersize=64 -ovc lavc \ -lavcopts vcodec=mpeg4:vbitrate=1300:keyint=30 -oac mp3lame -lameopts \ br=96:cbr:mode=3 -ffourcc divx -endpos 04:00:00 -o ~/Videos/tv-`date +%y%m%d_%H%M`-m.avi > /dev/null#!/bin/sh mencoder tv:// -tv driver=v4l2:input=1:norm=pal:width=720:height=576: \ device=/dev/video0:forceaudio:audiorate=32000:alsa:adevice=hw.0 buffersize=64 -ovc lavc \ -lavcopts vcodec=mpeg4:vbitrate=1300:keyint=30 -oac mp3lame … Read more

Play video with mplayer and scale the output.

To playback video in mplayer in different sizes, just use this command: 4.4 Fri Oct 05 jason@Yog-Sothoth 0: $ mplayer -vf scale=960:720 Listening\ to\ the\ radio\ in\ Syria.\ This\ guy\ is\ very\ chill.-ncMhr.mp44.4 Fri Oct 05 jason@Yog-Sothoth 0: $ mplayer -vf scale=960:720 Listening\ to\ the\ radio\ in\ Syria.\ This\ guy\ is\ very\ chill.-ncMhr.mp4 This is … Read more