Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Search this Thread
Old 12-19-2005, 08:34 AM   #1
LQ Newbie
Registered: Jan 2004
Posts: 23

Rep: Reputation: 15
mencoder settings for xvid encode

I have been working xvid encoding of 720p & 1080i transport steams via mencoder.

I get excellent results with very little options using the following.

mencoder *.mpg -ovc xvid -vf crop=1248:712:0:0,scale=624:352 -ofps 24000/1001 -sws 2 -xvidencopts pass=1 -nosound -o /dev/null

mencoder *.mpg -ovc xvid -vf crop=1248:712:0:0,scale=624:352 -ofps 24000/1001 -sws 2 -xvidencopts bitrate=1020:pass=2 -nosound -o sample-mencoder.avi

I am encoding the audio and video separately and then merging them together when both are complete; this seems to help keep the audio in sync.

The problem I am having is although the picture is crisp movement is very jittery, meaning if there is very little movement the video looks as good as the source but if there is a quick adjustment it seems as if frames are being missed. From what I read with the standard setting (not really optimized) this should be compensate for.

Can any give me any input on options to use to help this?

You can download the sample output here
Old 12-19-2005, 04:16 PM   #2
Senior Member
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,676

Rep: Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440Reputation: 1440
Obviously, the -ofps ("output framerate") option is the problem.

I assume your source is interlaced? If so, try just deinterlacing rather than altering the frame rate.

If your source was originally shot on film and then converted to video, like anime or a feature film, then instead try using an "ivtc" filter rather than altering the frame rate.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
mencoder config file? and xvid to mpeg bai_design Linux - Software 1 10-29-2004 05:19 PM
mencoder / xvid codec voodoochild117 Linux - Software 1 06-25-2004 02:00 AM
encode XVID with 23.* or 29.* shanenin Linux - Software 0 05-29-2004 12:41 AM
Mencoder: encode so that the result will just fit on a CD? J_Szucs Linux - Software 2 03-09-2004 12:45 PM
mencoder wont encode the sound bignester Linux - Software 4 01-15-2004 09:22 PM

All times are GMT -5. The time now is 01:21 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration