I had the same problem and fixed it now (at least for me)
Here is my revised script (tested only converting .MPG to .AVI (xvid)
Code:
#!/bin/bash
#
#Todo:
# -Creating a Macromedia Flash video suitable for playback in a web browser with the Macromedia Flash # #plugin: mencoder input.avi -o output.flv -of lavf -oac mp3lame -lameopts abr:br=56 -ovc lavc -lavcopts #vcodec=flv:vbitrate=500:mbd=2:mv0:trell:v4mv:cbp:last_pred=3 -srate 22050
# -MKV/OGM conversion to MPG.
# -Subtitles
# Change log...
# 10/June/2006 - crmanski
# - Changed the way .MOV files are detected. AKA... Simplfied it.
# - Code cleanup. Removed the duplicate mime type checking in the while loops, since it is now done in the file type functions.
# 6/May/2006 - crmanski
# - Changed the File type detection to work better with file types that return the same info.
# - Removed the perl code for progress and used --pulsate since it was only showing progress for the first file.
# - Fixed some typos and added some other little things.
# 29/April/2006 - crmanski
# - Changed the XVID option name to MPEG4 and after some quality checking decided to go with mencoder instead of FFMPEG.
# If mencoder was compiled with XVID or H264 support in the Ubuntu binary I would include specific options for those too.
# 9/April/2006 - Last Updated: 9/April/2006
# video-convert including to xvid.01.2
# based on:
# crmanski / http://szone.berlinwall.org
# Requirements: zenity (Comes with gnome 2.4), ffmpeg (apt-get ffmpeg), mencoder-586/mplayer-586
# This script will take multiple video files of the same type (right now: MPG, AVI, MOV)
# and covert them into either NTSC - dvd, svcd or vcd compliant MPEG files by using
# ffmpeg (http://ffmpeg.sourceforge.net)
# To make sure all this is installed do this at a terminal...
# (Universe Repositories should be enabled first -https://wiki.ubuntu.com/AddingRepositoriesHowto)
# sudo apt-get install ffmpeg mencoder-586 mplayer-586
### ADDED by Arturo Martinez
### OPTION TO CONVERT TO MPEG4 (.avi)
### Also added handling of .ASF files as input types.
# Installation:
# Place the script in the Nautilus scripts folder (/home/YourUserName/.gnome2/nautilus-scripts)
# Make sure the file is executable
# Select some video files. This works well on the video files my digital camera makes
# Choose Scripts->video-convert
#
# Background and Credits:
# I came across the very nicely done audio-convert script in the ubuntu forums
# http://ubuntuforums.org/showthread.php?t=48007
# and thought how nice it would be to not have to open each file I want to convert in avidemux
# manually or by using a script for each file(s) using ffmpeg. So after looking at
# http://g-scripts.sourceforge.net/ and some of the scripts there:
# http://g-scripts.sourceforge.net/nautilus-scripts/Multimedia/Image/NIS
# http://g-scripts.sourceforge.net/nautilus-scripts/Multimedia/Image/convert_to_jpeg
# I ended up working this out with various bits and pieces of the above mentioned scripts.
# It is not pretty but it works for me. Have fun!
#
# License:
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
# USA
#Has a file been selected?
if [ $# -eq 0 ]; then
zenity --error --title="error" --text="You must select at least 1 file to process"
exit 1
fi
#Input - What Type?
#Detect Mime Type
#This will detect the first file in the bunch and base the encoding on that. Make sure you select the same types.
mime=`file -bi "$1"`
humantype=`file "$1"`
valid_video_type="0"
#Check for AVI
is_avi ()
{
file -i "$1" | grep 'video/x-msvideo' && echo $1 | grep -i '\.avi$'
}
if (is_avi "$1")
then
echo "File is an AVI"
video_in_type="AVI"
valid_video_type="1"
fi
#Check for QuickTime MOV
is_mov ()
{
# Simplified this below since there are different things that that file command finds depending in different cameras
echo $1 | grep -i '\.mov$'
}
if (is_mov "$1")
then
echo "File is a MOV"
video_in_type="MOV"
valid_video_type="1"
fi
#Check for MPG
is_mpg ()
{
file -b "$1" | grep 'MPEG' && echo $1 | grep -i '\.mpg$'
}
if (is_mpg "$1")
then
echo "File is a MPG"
video_in_type="MPG"
valid_video_type="1"
fi
#Check For ASF
is_asf ()
{
file -bi "$1" | grep 'application/octet-stream' && echo $1 | grep -i '\.asf$'
}
if (is_asf "$1")
then
echo "File is an ASF"
video_in_type="ASF"
valid_video_type="1"
fi
#Check For MKV
is_mkv ()
{
file -b "$1" | grep 'RISC' && echo $1 | grep -i '\.mkv$'
}
if (is_mkv "$1")
then
echo "File is a MKV"
video_in_type="MKV"
valid_video_type="1"
fi
#Check For VOB
is_vob ()
{
file -bi "$1" | grep 'video/mpeg' && echo $1 | grep -i '\.vob$'
}
if (is_vob "$1")
then
echo "File is a VOB"
video_in_type="MPG"
valid_video_type="1"
fi
#Checking...
if [ $valid_video_type -eq "1" ]; then
valid_video_type="1"
else
zenity --error --title="Error" --text="You have not selected a valid Video Type. MimeType= $mime"
exit
fi
#Output - What kind?
#echo "This Script converts selected AVI, MOVE or MPG files to NTSC-DVD, SVCD or VCD compliant MPG files with ffmpeg"
title="What kind of Video Do you want to convert those $video_in_type files to?"
video_out_type=`zenity --width="480" --height="380" --title="$title" --list --radiolist --column="" \
--column="Video Type" --column="Description" \
TRUE "XVID" "XVID"\
FALSE "DVD" "DVD compliant Video MPEG Stream"\
FALSE "MPEG4" "Create an AVI with MPEG4 video"\
FALSE "SVCD" "Create a NTSC/PAL SVCD"\
FALSE "VCD" "Create a NTSC/PAL VCD"\
| sed 's/ max//g' `
#user must select a target size (Check if they canceled)
if [ ! "$video_out_type" ]; then
zenity --error --title="Error" --text="You must select a Input Type"
exit
fi
# If we are making DVD there are a few options...
if [ "$video_out_type" = "DVD" ]; then
#What Size?
title="Choose which resolution the video files should be..."
dvd_res=`zenity --width="480" --height="380" --title="$title" --text="Input format: $humantype" --list --radiolist --column="" --column="Choose Video Resolution" --column "description" \
TRUE "ntsc-dvd -s 720x480" "Standard NTSC"\
FALSE "ntsc-dvd -s 720x400 -padtop 40 -padbottom 40" "Standard NTSC - Widescreen" \
FALSE "ntsc-dvd -s 704x480" "" \
FALSE "ntsc-dvd -s 704x396 -padtop 42 -padbottom 42" "Standard NTSC - Widescreen" \
FALSE "ntsc-dvd -s 352x480" "4:3 half ntsc" \
FALSE "ntsc-dvd -s 352x474 -padbottom 6" "4:3 half NTSC, with a little off the bottom" \
FALSE "ntsc-dvd -s 352x240" "4:3 vcd size" \
FALSE "ntsc-dvd -s 352x196 -padtop 22 -padbottom 22" "VCD widescreen" \
FALSE "ntsc-dvd -s 352x192 -padtop 24 -padbottom 24" "VCD widescreen" \
FALSE "pal-dvd -s 720x576" "4:3 full pal" \
FALSE "pal-dvd -s 704x576" "" \
FALSE "pal-dvd -s 352x576" "4:3 half pal" \
FALSE "pal-dvd -s 352x288" "4:3 vcd size" \
| sed 's/ max//g' `
#PAL?
if [ "${dvd_res##pal-dvd}" != "$dvd_res" ]; then
video_out_type="DVD_PAL"
fi
#user must select a target size
if [ ! "$dvd_res" ]; then
zenity --error --title="Error" --text="You must select a target resolution."
exit
fi
title="Choose the audio bitrate your video files should have..."
audio_br=`zenity --width="480" --height="380" --title="$title" --list --radiolist --column="" \
--column="Choose Audio Bitrate" \
FALSE "448" \
FALSE "356" \
FALSE "224" \
FALSE "160" \
TRUE "128" | sed 's/ max//g' `
#user must select an audio bitrate
if [ ! "$audio_br" ]; then
zenity --error --title="Error" --text="You must select an Audio bitrate."
exit
fi
title="Choose the audio stream type your video files should have..."
audio_str=`zenity --width="480" --height="380" --title="$title" --list --radiolist --column="" --column="Choose Audio Stream Type" TRUE "ac3" FALSE "mp2" | sed 's/ max//g' `
#user must select an audio bitrate
if [ ! "$audio_str" ]; then
zenity --error --title="Error" --text="You must select an Audio stream type."
exit
fi
fi
#XVID Options
#This is still in planning...
#Will require recompiling mencoder to support xvid.
if [ "$video_out_type" = "XVID" ]; then
title="How high should the XVID quality be?"
mpeg4_quality=`zenity --width="480" --height="380" --title="$title" --list --radiolist --column="" \
--column="Choose Quality of Encoding..." --column="Description" \
FALSE "Very_High_Quality" "Best Quality, Long time to encode, about 6fps"\
FALSE "High_Quality" "High Quality, about 15fps"\
FALSE "Fast_Encode" "Really fast, not as good quality"\
TRUE "Three_Pass" "3 Pass VBR Encode, MP3 VBR audio, Excellent Quality"\
| sed 's/ max//g' `
fi
#MPEG4 Options
# The first three options are from http://www.mplayerhq.hu/DOCS/HTML-single/en/MPlayer.html#mencoder
# The 3 pass (My Favorite) is from here (http://www.mplayerhq.hu/DOCS/HTML-single/en/MPlayer.html#mencoder) and a few other places.
if [ "$video_out_type" = "MPEG4" ]; then
title="How high should the MPEG4 quality be?"
mpeg4_quality=`zenity --width="480" --height="380" --title="$title" --list --radiolist --column="" \
--column="Choose Quality of Encoding..." --column="Description" \
FALSE "Very_High_Quality" "Best Quality, Long time to encode, about 6fps"\
FALSE "High_Quality" "High Quality, about 15fps"\
FALSE "Fast_Encode" "Really fast, not as good quality"\
TRUE "Three_Pass" "3 Pass Encode, MP3 VBR audio, Excellent Quality"\
| sed 's/ max//g' `
echo "mpeg4_quality: $mpeg4_quality"
title="What Resolution should the video be?"
mpeg4_resolution=`zenity --width="480" --height="380" --title="$title" --list --radiolist --column="" \
--column="Choose Video Resolution..." --column="Description" \
FALSE "720:480" "NTSC DVD size, 720x480"\
FALSE "720:576" "PAL DVD 720x576"\
TRUE "640:480" "Standard TV size, 640x480"\
FALSE "352:576" "352x576 4:3 half pal"\
FALSE "352:240" "NTSC VCD, 352x240"\
FALSE "320:240" "NTSC VCD, 320x240"\
FALSE "352:288" "PAL VCD,352x288"\
| sed 's/ max//g' `
title="Choose the Video bitrate your MPEG4 files should have..."
mpeg4_vid_br=`zenity --width="480" --height="380" --title="$title" --list --radiolist --column="" \
--column="Choose Audio Bitrate" \
FALSE "1500" \
FALSE "1300" \
FALSE "1100" \
TRUE "900" \
FALSE "700" \
FALSE "500" | sed 's/ max//g' `
#user must select a Video bitrate
if [ ! "$mpeg4_vid_br" ]; then
zenity --error --title="Error" --text="You must select an Video bitrate. Using the default 900 instead."
mpeg4_vid_br="900"
fi
fi
#SVCD Options
if [ "$video_out_type" = "SVCD" ]; then
title="What type of SVCD are you making?"
video_out_type=`zenity --width="480" --height="380" --title="$title" --list --radiolist --column="" \
--column="NTSC or PAL?" \
TRUE "SVCD_NTSC" \
FALSE "SVCD_PAL" \
| sed 's/ max//g' `
fi
#VCD Options
if [ "$video_out_type" = "VCD" ]; then
echo "Choose VCD Type"
title="What type of VCD are you making?"
video_out_type=`zenity --width="480" --height="380" --title="$title" --list --radiolist --column="" \
--column="NTSC or PAL?" \
TRUE "VCD_NTSC" \
FALSE "VCD_PAL" \
| sed 's/ max//g' `
fi
#Video Encoding Functions...
dvd_encode_ntsc ()
{
/usr/bin/ffmpeg -i "$movie" -target $dvd_res -sameq -r 29.97 -aspect 4:3 -ab $audio_br -ar 48000 -ac 2 -acodec $audio_str -y "$mpg_file"
}
dvd_encode_pal ()
{
/usr/bin/ffmpeg -i "$movie" -target $dvd_res -sameq -r 25 -ab $audio_br -ar 48000 -ac 2 -acodec $audio_str -y "$mpg_file"
}
svcd_encode_ntsc ()
{
/usr/bin/ffmpeg -i "$movie" -target ntsc-svcd -sameq -aspect 4:3 -y "$mpg_file"
}
svcd_encode_pal ()
{
/usr/bin/ffmpeg -i "$movie" -target pal-svcd -sameq -aspect 4:3 -y "$mpg_file"
}
vcd_encode_ntsc ()
{
/usr/bin/ffmpeg -i "$movie" -target ntsc-vcd -sameq -aspect 4:3 -y "$mpg_file"
}
vcd_encode_pal ()
{
/usr/bin/ffmpeg -i "$movie" -target pal-vcd -sameq -aspect 4:3 -y "$mpg_file"
}
mpeg4_encode ()
{
rm frameno.avi
rm divx2pass.log
if [ "$mpeg4_quality" = "Three_Pass" ]; then
echo "# Converting $movie to MPEG4 \n with 3 pass encode... \n Pass 1 of 3..."
mencoder "$movie" -ovc frameno -oac mp3lame -lameopts vbr=3 -o frameno.avi
echo "# Converting $movie to MPEG4 \n with 3 pass encode... \n Pass 2 of 3..."
mencoder "$movie" -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=$mpeg4_vid_br -vop scale=$mpeg4_resolution -o "$mpeg4_file"
echo "# Converting $movie to MPEG4 \n with 3 pass encode... \n Pass 3 of 3..."
mencoder "$movie" -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=2:vbitrate=$mpeg4_vid_br -vop scale=$mpeg4_resolution -o "$mpeg4_file"
fi
if [ "$mpeg4_quality" = "Very_High_Quality" ]; then
echo "# Converting $movie to MPEG4 \n Using $mpeg4_quality setting..."
mencoder "$movie" -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=$mpeg4_vid_br:mbd=2:mv0:trell:v4mv:cbp:last_pred=3:predia=2:dia=2:vmax_b_frames=2:vb_strategy=1:precmp=2:cmp=2:subcmp=2:preme=2:qns=2 -vop scale=$mpeg4_resolution -oac mp3lame -lameopts vbr=3 -o "$mpeg4_file"
fi
if [ "$mpeg4_quality" = "High_Quality" ]; then
echo "# Converting $movie to MPEG4 \n Using $mpeg4_quality setting..."
mencoder "$movie" -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=$mpeg4_vid_br:mbd=2:trell:v4mv:last_pred=2:dia=-1:vmax_b_frames=2:vb_strategy=1:cmp=3:subcmp=3:precmp=0:vqcomp=0.6:turbo -vop scale=$mpeg4_resolution -oac mp3lame -lameopts vbr=3 -o "$mpeg4_file"
fi
if [ "$mpeg4_quality" = "Fast_Encode" ]; then
echo "# Converting $movie to MPEG4 \n Using $mpeg4_quality setting..."
mencoder "$movie" -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=$mpeg4_vid_br:mbd=2:trell:v4mv:turbo -vop scale=$mpeg4_resolution -oac mp3lame -lameopts vbr=3 -o "$mpeg4_file"
fi
}
xvid_encode ()
{
# /usr/bin/ffmpeg -i "$movie" -f mp4 -s 640x480 -aspect 4:3 -vcodec mpeg4 -b 900 -g 300 -bf 2 -#acodec aac -ab 128 -y "$mpeg4_file".mp4
#/usr/bin/ffmpeg -i "$movie" -f mp4 -s 640x480 -aspect 4:3 -vcodec mpeg4 -b 900 -g 300 -bf 2 -acodec mp2 #-ab 128 -y "$mpeg4_file".mp4
xvid=`echo "$movie" | sed 's/\.\w*$/.avi/'`
ffmpeg -i "$movie" -f avi -vcodec xvid -b 800 -g 300 -bf 2 -acodec mp2 -ab 128 $xvid
}
#Input Selection was AVI Video
if [ "$video_in_type" = "AVI" ]; then
Video_Count=1
while [ $# -gt 0 ]; do
movie=$1
mpg_file=`echo "$movie" | sed 's/\.\w*$/.mpg/'`
mpeg4_file=`echo "$movie" | sed 's/\.\w*$/_MPEG4.avi/'`
xvid_file=`echo "$movie" | sed 's/\.\w*$/_XVID.avi/'`
echo "# Processing AVI Video $movie \n Total: $Video_Count"
if [ "$video_out_type" = "DVD" ]; then
dvd_encode_ntsc
fi
if [ "$video_out_type" = "DVD_PAL" ]; then
dvd_encode_pal
fi
if [ "$video_out_type" = "SVCD_NTSC" ]; then
svcd_encode_ntsc
fi
if [ "$video_out_type" = "SVCD_PAL" ]; then
svcd_encode_pal
fi
if [ "$video_out_type" = "VCD_NTSC" ]; then
vcd_encode_ntsc
fi
if [ "$video_out_type" = "VCD_PAL" ]; then
vcd_encode_pal
fi
if [ "$video_out_type" = "MPEG4" ]; then
mpeg4_encode
fi
if [ "$video_out_type" = "XVID" ]; then
xvid_encode
fi
let Video_Count=Video_Count+1
shift
done |
zenity --progress --pulsate --auto-close --title="Converting AVI Video Files" --text="Converting AVI Video Files..." --percentage=0
fi
#Input Selection was Quicktime Video
if [ "$video_in_type" = "MOV" ]; then
Video_Count=1
while [ $# -gt 0 ]; do
movie=$1
mpg_file=`echo "$movie" | sed 's/\.\w*$/.mpg/'`
mpeg4_file=`echo "$movie" | sed 's/\.\w*$/_MPEG4.avi/'`
xvid_file=`echo "$movie" | sed 's/\.\w*$/_XVID.avi/'`
echo "# Processing Quicktime Video $movie \n Total: $Video_Count"
echo "Movie: $movie"
echo "mpg_file: $mpg_file"
if [ "$video_out_type" = "DVD" ]; then
dvd_encode_ntsc
fi
if [ "$video_out_type" = "DVD_PAL" ]; then
dvd_encode_pal
fi
if [ "$video_out_type" = "SVCD_NTSC" ]; then
svcd_encode_ntsc
fi
if [ "$video_out_type" = "SVCD_PAL" ]; then
svcd_encode_pal
fi
if [ "$video_out_type" = "VCD_NTSC" ]; then
vcd_encode_ntsc
fi
if [ "$video_out_type" = "VCD_PAL" ]; then
vcd_encode_pal
fi
if [ "$video_out_type" = "MPEG4" ]; then
mpeg4_encode
fi
if [ "$video_out_type" = "XVID" ]; then
xvid_encode
fi
let Video_Count=Video_Count+1
shift
done |
zenity --progress --pulsate --auto-close --title="Converting Quicktime Video Files" --text="Converting Quicktime Video Files..." --percentage=0
fi
#Input Selection was MPG Video
if [ "$video_in_type" = "MPG" ]; then
Video_Count=1
while [ $# -gt 0 ]; do
movie=$1
mpg_file=`echo "$movie" | sed 's/\.\w*$/_NTSC-DVD.mpg/'`
mpeg4_file=`echo "$movie" | sed 's/\.\w*$/_MPEG4.avi/'`
xvid_file=`echo "$movie" | sed 's/\.\w*$/_XVID.avi/'`
echo "# Processing MPG Video $movie \n Total: $Video_Count"
if [ "$video_out_type" = "DVD" ]; then
dvd_encode_ntsc
fi
if [ "$video_out_type" = "DVD_PAL" ]; then
dvd_encode_pal
fi
if [ "$video_out_type" = "SVCD_NTSC" ]; then
svcd_encode_ntsc
fi
if [ "$video_out_type" = "SVCD_PAL" ]; then
svcd_encode_pal
fi
if [ "$video_out_type" = "VCD_NTSC" ]; then
vcd_encode_ntsc
fi
if [ "$video_out_type" = "VCD_PAL" ]; then
vcd_encode_pal
fi
if [ "$video_out_type" = "MPEG4" ]; then
mpeg4_encode
fi
if [ "$video_out_type" = "XVID" ]; then
xvid_encode
fi
let Video_Count=Video_Count+1
shift
done|
zenity --progress --pulsate --auto-close --title="Converting MPG Video Files" --text="Converting MPG Video Files..." --percentage=0
fi
#Input Selection was ASF Video
if [ "$video_in_type" = "ASF" ]; then
Video_Count=1
while [ $# -gt 0 ]; do
movie=$1
mpg_file=`echo "$movie" | sed 's/\.\w*$/_NTSC-DVD.mpg/'`
mpeg4_file=`echo "$movie" | sed 's/\.\w*$/_MPEG4.avi/'`
xvid_file=`echo "$movie" | sed 's/\.\w*$/_XVID.avi/'`
echo "# Processing ASF Video $movie \n Total: $Video_Count"
if [ "$video_out_type" = "DVD" ]; then
dvd_encode_ntsc
fi
if [ "$video_out_type" = "DVD_PAL" ]; then
dvd_encode_pal
fi
if [ "$video_out_type" = "SVCD_NTSC" ]; then
svcd_encode_ntsc
fi
if [ "$video_out_type" = "SVCD_PAL" ]; then
svcd_encode_pal
fi
if [ "$video_out_type" = "VCD_NTSC" ]; then
vcd_encode_ntsc
fi
if [ "$video_out_type" = "VCD_PAL" ]; then
vcd_encode_pal
fi
if [ "$video_out_type" = "MPEG4" ]; then
mpeg4_encode
fi
if [ "$video_out_type" = "XVID" ]; then
xvid_encode
fi
let Video_Count=Video_Count+1
shift
done |
zenity --progress --pulsate --auto-close --title="Converting ASF Video Files" --text="Converting ASF Video Files..." --percentage=0
fi
Now, for this to work you need to have installed codecs as per automatrix AND got hold of a version of ffmpeg compiled with xvid support (not the dapper one)
this is the output of ffmpeg -formats in my system:
Code:
File formats:
E 3g2 3gp2 format
E 3gp 3gp format
D 4xm 4X Technologies format
D RoQ Id RoQ format
DE ac3 raw ac3
DE alaw pcm A law format
DE amr 3gpp amr file format
DE asf asf format
E asf_stream asf format
DE au SUN AU Format
DE audio_device audio grab and output
DE avi avi format
E crc crc testing format
D dts raw dts
DE dv DV video format
D dv1394 dv1394 A/V grab
E dvd MPEG2 PS format (DVD VOB)
D ea Electronic Arts Multimedia Format
DE ffm ffm format
D film_cpk Sega FILM/CPK format
D flic FLI/FLC animation format
DE flv flv format
DE gif GIF Animation
DE h261 raw h261
DE h263 raw h263
DE h264 raw H264 video format
D idcin Id CIN format
DE image image sequence
DE image2 image2 sequence
DE image2pipe piped image2 sequence
DE imagepipe piped image sequence
D ipmovie Interplay MVE format
DE m4v raw MPEG4 video format
D matroska Matroska file format
DE mjpeg MJPEG video
E mov mov format
D mov,mp4,m4a,3gp,3g2 QuickTime/MPEG4 format
E mp2 MPEG audio layer 2
DE mp3 MPEG audio layer 3
E mp4 mp4 format
DE mpeg MPEG1 System format
E mpeg1video MPEG video
E mpeg2video MPEG2 video
DE mpegts MPEG2 transport stream format
D mpegvideo MPEG video
E mpjpeg Mime multipart JPEG format
DE mulaw pcm mu law format
D nsv NullSoft Video format
E null null video format
DE nut nut format
DE ogg Ogg Vorbis
E psp psp mp4 format
D psxstr Sony Playstation STR format
DE rawvideo raw video format
D redir Redirector format
DE rm rm format
E rtp RTP output format
D rtsp RTSP input format
DE s16be pcm signed 16 bit big endian format
DE s16le pcm signed 16 bit little endian format
DE s8 pcm signed 8 bit format
D sdp SDP
D shn raw shn
E singlejpeg single JPEG image
D sol Sierra SOL Format
E svcd MPEG2 PS format (VOB)
DE swf Flash format
DE u16be pcm unsigned 16 bit big endian format
DE u16le pcm unsigned 16 bit little endian format
DE u8 pcm unsigned 8 bit format
E vcd MPEG1 System format (VCD)
D video4linux video grab
D vmd Sierra VMD format
E vob MPEG2 PS format (VOB)
DE wav wav format
D wc3movie Wing Commander III movie format
D wsaud Westwood Studios audio format
D wsvqa Westwood Studios VQA format
DE yuv4mpegpipe YUV4MPEG pipe format
Image formats (filename extensions, if any, follow):
DE gif gif
Codecs:
D V 4xm
D V D 8bps
DEA aac
D V D aasc
EA ac3
DEA adpcm_4xm
DEA adpcm_adx
DEA adpcm_ct
DEA adpcm_ea
DEA adpcm_ima_dk3
DEA adpcm_ima_dk4
DEA adpcm_ima_qt
DEA adpcm_ima_smjpeg
DEA adpcm_ima_wav
DEA adpcm_ima_ws
DEA adpcm_ms
DEA adpcm_swf
DEA adpcm_xa
D A alac
DEA amr_nb
DEA amr_wb
DEV D asv1
DEV D asv2
D V D camtasia
D V D cinepak
D V D cljr
D V D cyuv
D A dts
DEV D dvvideo
DEV D ffv1
DEVSD ffvhuff
D A flac
D V D flic
DEVSD flv
DEA g726
DEV D h261
DEVSDT h263
D VSD h263i
EV h263p
DEV DT h264
DEVSD huffyuv
D V D idcinvideo
D V D indeo2
D V indeo3
D A interplay_dpcm
D V D interplayvideo
EV ljpeg
D V D loco
D A mace3
D A mace6
D V D mdec
DEV D mjpeg
D V D mjpegb
DEA mp2
DEA mp3
D A mp3adu
D A mp3on4
DEVSDT mpeg1video
DEVSDT mpeg2video
DEVSDT mpeg4
D A mpeg4aac
D VSDT mpegvideo
DEVSD msmpeg4
DEVSD msmpeg4v1
DEVSD msmpeg4v2
D V D msrle
D V D msvideo1
D V D mszh
DEV pam
DEV pbm
DEA pcm_alaw
DEA pcm_mulaw
DEA pcm_s16be
DEA pcm_s16le
DEA pcm_s8
DEA pcm_u16be
DEA pcm_u16le
DEA pcm_u8
DEV pgm
DEV pgmyuv
DEV png
DEV ppm
D V D qdraw
D V D qpeg
D V D qtrle
DEV rawvideo
D A real_144
D A real_288
D A roq_dpcm
D V D roqvideo
D V D rpza
DEV D rv10
DEV D rv20
D A shorten
D V D smc
DEV snow
D A sol_dpcm
DEA sonic
EA sonicls
D V D sp5x
DEV D svq1
D VSD svq3
D V theora
D V D truemotion1
D V D ultimotion
D V vc9
D V D vcr1
D A vmdaudio
D V D vmdvideo
DEA vorbis
D V vp3
D V D vqavideo
D A wmav1
D A wmav2
DEVSD wmv1
DEVSD wmv2
D V wmv3
D V D wnv1
D A ws_snd1
D A xan_dpcm
D V D xan_wc3
D V D xl
EV xvid
DEV D zlib
Supported file protocols:
file: pipe: udp: rtp: tcp: http:
Frame size, frame rate abbreviations:
ntsc pal qntsc qpal sntsc spal film ntsc-film sqcif qcif cif 4cif
Motion estimation methods:
zero(fastest) full(slowest) log phods epzs(default) x1
Note, the names of encoders and decoders dont always match, so there are
several cases where the above table shows encoder only or decoder only entries
even though both encoding and decoding are supported for example, the h263
decoder corresponds to the h263 and h263p encoders, for file formats its even
worse
If your ffmpeg doesn't show EV xvid
then I don't see how ffmpeg is going to create xvid files for you.
Bookmarks