LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 12-19-2005, 08:34 AM   #1
notolerance
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
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,225

Rep: Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320Reputation: 5320
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.
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:34 PM.

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