Posts Tagged With: avi

Script to Convert FLV to AVI

Tagged with: , , , , , ,

This will convert a flv file to a avi file. I got this off linux.com. It uses mencoder - so make sure you have that.


#!/bin/sh

if [ -z "$1" ]; then
  echo "Usage: $0 {-divx|-xvid} list_of_flv_files"
  exit 1
fi

# video encoding bit rate
V_BITRATE=1000

while [ "$1" ]; do
  case "$1" in
    -divx)
      MENC_OPTS="-ovc lavc -lavcopts \
        vcodec=mpeg4:vbitrate=$V_BITRATE:mbd=2:v4mv:autoaspect"
      ;;
    -xvid)
      MENC_OPTS="-ovc xvid -xvidencopts bitrate=$V_BITRATE:autoaspect"
      ;;
    *)
      if file "$1" | grep -q "Macromedia Flash Video"; then
        mencoder "$1" $MENC_OPTS -vf pp=lb -oac mp3lame \
          -lameopts fast:preset=standard -o \
          "`basename $1 .flv`.avi"
      else
        echo "$1 is not Flash Video. Skipping"
      fi
      ;;
  esac
  shift
done
No Comments »

Rip DVD using Mencoder

Tagged with: , , , , , , ,

Rip a DVD to an AVI file using mencoder


mencoder dvd://1 -dvd-device /mnt/Image/ -ovc xvid -xvidencopts pass=1 -alang en -oac mp3lame -o /dev/null
No Comments »

Converting a Video File

Tagged with: , , , , ,

Converting a Video file


mencoder -ovc xvid -oac mp3lame -xvidencopts bitrate=878 -o destination.avi source.avi

Original Article

No Comments »