How To Reduce / Improve Pixelated Result from FFMPEG?
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.
How To Reduce / Improve Pixelated Result from FFMPEG?
I had converted several hundreds flv video to mpg using ffmpeg.
The screen resolution of the flv and mpg files are exactly the
same (ie 320x240 pixel).
Everything is OK, only in several video, the result is
"Pixelated" or small squares appear on the picture.
Is it possible to change ffmpeg parameters to reduce / eliminate
this "pixelated" effect?
Post the ffmpeg command that you used and we can probably give you a better idea of what to do, but here are a couple of ideas:
-try using a different codec (xvid maybe? - do you *need* the output video to be mpg?)
-try increasing the bit rate (use "-b XXXk" where XXX is your desired bitrate in kbps)
-try multiple pass encoding, run the same command twice, the first time with the "-pass 1" option and the second time with the "-pass 2" option
-try blurring the video a bit with "-qblur XXX" where XXX is some number (try values between 0.3-1.0)
I've had this problem again and again, and I finally had to reverse engineer a video that I had seen transcoded properly. Its bit rate was around 2572k. So I took my audio and video streams and muxed them with the command below. The pixellation finally disappeared.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.