mplayer

Nigel Weeks nigel at e-easy.com.au
Tue Oct 14 14:31:38 PDT 2003


Here's the process I use.

Attached is the sequence I go through to recode DVD's to 700MB CD's
Each step has comments and reasoning, as this cannot be done automatically,
especially determining cropmarks and bitrates.



> -----Original Message-----
> From: owner-freebsd-advocacy at freebsd.org 
> [mailto:owner-freebsd-advocacy at freebsd.org] On Behalf Of Eric Anderson
> Sent: Wednesday, 15 October 2003 8:07
> To: Michal Pasternak
> Cc: freebsd-advocacy at freebsd.org
> Subject: Re: mplayer
> 
> 
> Michal Pasternak wrote:
> 
> >Hi,
> >
> >I suppose, that we all like to watch movies in divx format - 
> or share short
> >.avis or .mpegs among our friends. As I recall, I've seen 
> many cases, that
> >Windows user was either unable to watch the movie I've 
> sent/borrowed to
> >him/her or had many problems with installing correct codecs 
> (or even finding
> >them).
> >
> >Did you have similar experiences? If the answer is "yes" - 
> well, here's one
> >more point for "FreeBSD on desktop" advocates: users 
> encounter less problems
> >with movies while running FreeBSD.
> >
> Agreed - mplayer on FreeBSD runs flawlessly (for me anyway), and I've 
> played several types of movies and media with it.
> 
> However, I'd love for someone to write up a "converting your 
> mpeg stream 
> to divx on FreeBSD" article.  I don't know how to do this really, but 
> I'd love to help figure it out.  I'd love to be able to take 
> my favorite 
> movie with me on my laptop when I'm traveling, without having 
> to carry 
> the DVD disc around..
> 
> Eric
> 
> -- 
> ------------------------------------------------------------------
> Eric Anderson	   Systems Administrator      Centaur Technology
> All generalizations are false, including this one.
> ------------------------------------------------------------------
> 
> 
> _______________________________________________
> freebsd-advocacy at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-advocacy
> To unsubscribe, send any mail to 
> "freebsd-advocacy-unsubscribe at freebsd.org"
> 
-------------- next part --------------
# Examples
rm frameno.avi - remove this file, which can come from a previous 3-pass encoding (it interferes with current one)
mencoder -dvd 1 -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3:vol=6
mencoder -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vpass=1 -oac copy -o movie.avi
mencoder -dvd 1 -ovc lavc -lavcopts vcodec=mpeg4:vpass=2 -oac copy -o movie.avi

# Usually set the language - saves spending hours recoding spanish
... -alang en

#Optionally, use cropdetect to get the optimal crop detection settings
#Usually, run it for a while, and the intro's are typically a different aspect to the movie(You need the scaling info, as the crop info returned is dependent on them

... -vop cropdetect,scale -zoom -xy 450

# Optionally crop the black bands from the top and bottom(if you want to)
... -vop crop=714:548:0:14,scale ...

# Usually rescale video for slower machine(less data)
... ,scale -zoom -xy 450






# The usual commands for running on a P2 300MHz Thinkpad

# Audio only encode+framing info
mencoder -dvd 1 -alang en -ovc frameno -o frameno.avi -oac mp3lame -lameopts vbr=3:vol=6


# Get the crop marks set up(Run for a few minutes(after intro))
mencoder -dvd 1 -alang en -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=<Reported by first pass> -vop cropdetect,scale -zoom -xy 450 -o movie.avi

# First pass video recode
mencoder -dvd 1 -alang en -sws 2 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vhq:vpass=1:vbitrate=<Reported by first pass> -vop crop=720:424:0:76,scale -zoom -xy 450 -o movie.avi


# Second pass video recode
mencoder -dvd 1 -alang en -sws 2 -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vhq:vpass=2:vbitrate=<Reported by first pass> -vop crop=720:424:0:76,scale -zoom -xy 450 -o movie.avi

# 
# EXAMPLES
#

# Good one for Lord of the Rings(Fellowship), on one 700MB CDR:
mencoder -dvd 1 -alang en -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vpass=1:vbitrate=441 -vop crop=450:190:0:30,scale -zoom -xy 450 -o movie.avi

# Waking Ned Divine
700MB CD: 991 bitrate
Cropping(450px movie): -vop crop=450:192:0:72A
mencoder -dvd 1 -alang en -oac copy -ovc lavc -lavcopts vcodec=mpeg4:vhq:vpass=1:vbitrate=991 -vop crop=450:190:0:72,scale -zoom -xy 450 -o movie.avi


More information about the freebsd-advocacy mailing list