Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello, i want to encode mpeg-2 video files from my ubuntu gutsy computer to xvids. I've seen some of the torrents where they get a whole movie in around 700mb, and the video quality is very great.
How do i achieve such quality? When i try to encode, the quality is just so so.
I've been scouring the web for good command line examples but have really not found anything. I have been able to find great lengthy tutorials, but i just want something simple as most of it is gibberish to me.
The most important thing is to use multipass. Without it, the bitrate won't be adhered to, so the final size will be way off. Here's the script I use for ripping dvd's (for a target size of 750meg, and 192kbps mp3 audio):
There's plenty of other options for xvidencopts in the manpage. Have a play around to see what you want. The above is fine from my point of view. You may decide you want better quality.
I think multiple threads will decrease quality. If the MPEG-2 has a lot of noise or is blocky, the xVid encoder will have a hard time guessing. I suggest use video filters to smooth out the noise. I have used hqdn3d with values 2:1.5:3 to clean out noisy videos (mainly DVD movies). Other video filters can be used to enhance the compression algorithm of xVid.
If the video is a DVD movie or came from a PVR card, you will have to worry about the interlace material in it. This means you will have to worry about catching all the frames and de-interlace the video if you want a progressive video.
Interesting, I didn't know about multiple threads hurting quality. To be honest the xvid encoder doesn't seem to scale over multiple threads well at highish quality. I'll have a play myself to see if it's worth it.
OK, so my content is from a pvr-500 tuner but i'm using my cable box and connecting it to the svideo port. --how do i apply these so called filters?
-Also, what other filters can i try? I want to try to find a one size fits all setting so that it just works for each video file and i don't have to fiddle with it for every encoding i do.
For MPEG-2 content from a PVR card might be different on applying video filters. I suggest check the MPlayer manual to know how to use the video filter and know what they do.
Let us assume that hqdn3d=2:1.5:3 is a good way to clean up MPEG-2 and yadif=1 is a good decent de-interlacer. I would say that the following should work ok for most content.
Code:
mplayer -vf yadif=1,hqdn3d=2:1.5:3,scale=-1:-1:0
Maybe adding -ssf ls=100 will increase the sharpness of the content to bring out the details of the video. With mencoder, it is a little different on what options you can use compared to mplayer, so play around with the settings.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.