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 use ffmpeg (Version 4.2.4) and HandBrakeCli (Version 1.3.1) but they produce slightly different aspect ratios for the encoded output, here's the relevant info:
Code:
Input vob file (from a dvd)
FFprobe of the vob file:
ffprobe: Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, top first),
720x576 [SAR 16:15 DAR 4:3], 4000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
ffmpeg process
=========
The command:
ffmpeg -i V/Title-9.vob -vf yadif -crf 28 -c:v libx265 -preset medium ff-09.mp4
ffprobe of the output:
Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), yuv420p(tv, progressive),
720x576 [SAR 16:15 DAR 4:3], 567 kb/s, 25 fps, 25 tbr, 12800 tbn, 25 tbc (default)
HandBrakeCli process
==============
The command:
HandBrakeCLI -i V/*.iso -t 9 -e x265 --x265-preset medium -2 -T -q 28 -d -m -o hb-09.mp4
ffprobe of the output:
Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, smpte170m/bt470bg/bt709),
700x576 [SAR 16:15 DAR 35:27], 549 kb/s, 24.99 fps, 25 tbr, 90k tbn, 25 tbc (default)
I can see that HandBrake works out the DAR values differently from the vob file.
The question is what settings do I need to get HandBrake to preserve the aspect ratio? I don't want to enter the width and height, I'd rather HandBrake did this for me. I've tried the obvious like --keep-display-aspect and other flags but to no affect.
On my system, handbrake doesn't even depend on ffmpeg, so it's not surprising that results differ slightly.
Not getting the aspect ratio right despite "--keep-display-aspect" is more than lightly, though. Maybe the pixel aspect is not 1:1?
Last edited by ondoho; 11-01-2020 at 01:16 AM.
Reason: differs lightly = differ slightly
On my system, handbrake doesn't even depend on ffmpeg, so it's not surprising that results differs lightly.
Not getting the aspect ratio right despite "--keep-display-aspect" is more than lightly, though. Maybe the pixel aspect is not 1:1?
On my system as well, HandBrake doesn't depend on ffmpeg - both run independently
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.