Posts Tagged With: video

Use ffmpeg to create a screencast

Tagged with: , , , , ,

You can use this command to create a screencast using ffmpeg.


ffmpeg -f x11grab -s 800x600 -i :0.0 /tmp/screencast.mpg
No Comments »

Get Audio from a video file

Tagged with: , , , , ,

Get Audio from a video file


mplayer -dumpaudio -quiet VIDEO_FILE
1 Comment »

Find files of a specific mime-type

Tagged with: , , , , , , ,

Use this command to find files of a given mime-type. In this example, we are looking for video files…


find -type f -print0 | xargs -0 file -i | grep -i video

And, by the way, this command, and the last two commands were sponsored by Mahesh. Happy now?

1 Comment »

Convent Video to 3gp(mobile) format

Tagged with: , , , ,

This command uses ffmpeg to convert a regular video into 3gp format thats used in mobile phones


ffmpeg -i input_video.mp4 -s 176x144 -vcodec h263 -r 25 -b 12200 -ab 12200 -ac 1 -ar 8000 output_video.3gp

Original Article

1 Comment »

Add Audio to a Video File Using ffmpeg

Tagged with: , , , , , ,

FFMPEG command to mix an audio file with a video file to create a final video.


ffmpeg -vcodec flv -qscale 9.5 -r 25 -ar 22050 -ab 32k -s 320x240 -i 1.mp3 -i Meta.ogv final.flv
4 Comments »

Linux Command to Convert a Video to PSP’s MP4 Format

Tagged with: , , , , , ,

Linux command to convert a video file to PSP format using ffmpeg. After converting, copy the OutputFile to the video folder in your PSP.


ffmpeg -i "OriginalFile.avi" -f psp -r 29.97 -b 768k -ar 24000 -ab 64k -s 320x240 "OutputFile.mp4"
7 Comments »

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
4 Comments »

Play MPlayer in full Screen

Tagged with: , , , , , ,

Play the video in full screen using mplayer.


mplayer -zoom -x 1024 -y 768 -fs -framedrop FILE
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 dvd.avi
2 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 »