[SOLVED] ffmpeg re-scaling results in a ripple effect
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.
I'm re-encoding and resizing a few videos from .mpg to .mp4 using ffmpeg, from 704x576 to 640x524
Code:
-vf "scale=640:-1"
this results in a rippling effect on any rapid movement in that part of the video.
Removing the -vf scale switch and the mp4 re-encoded file is fine.
Anyone have a few pointers as to what I should look for, ddg hasn't uncovered any clues.
I have difficulty understanding "ripple effect", a sample video would be nice.
Transcoding is never without pitfalls and requires careful adjustment for each type of video (codec, compression/bitrate, resolution).
I can imagine all sorts of artifacts popping up, esp. with relatively small (704 => 640) changes.
I have difficulty understanding "ripple effect", a sample video would be nice.
Transcoding is never without pitfalls and requires careful adjustment for each type of video (codec, compression/bitrate, resolution).
I can imagine all sorts of artifacts popping up, esp. with relatively small (704 => 640) changes.
Cheers,
I'll put together a n example but imagine as the camera pans down say, and a diagonal line will appear as a wavy line as the camera pans, if I don't scale, but simply re-encode at a lower video bitrate (to reduce the size of the video) it's straight line as the camera pans
You have not shown what you are doing. What video codec are you using inside of that mp4 container? Both of those ratios are about 1.22:1. Why that ratio, and why 640x524?
Quote:
I'm re-encoding and resizing a few videos from .mpg to .mp4
What kind of video, what kind of audio, how many fps in/out, at what bitrate?
That's aac audio at 192k, volume made a little louder, x264 video using a -crf preset, maxrate of 3000k, a 1MB buffer that allows changing 30 fps to 24, resized to 640x524.
The DVD I'm re-encoding is 704x576. it's one of the many official sizes for DVDs or broadcast media and I try to standardise my rips to a width of 640 - no reason why, the height of 524 is calculated by ffmpeg when you use scale=640:-1 - simples
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.