Home/News | About | Download | Documentation | Forum | Bug Reports | Contact | Donations | Consulting | Projects | Legal | Security | FATE

This forum has not been maintained for a long time and will probably get deleted in the near future.
For faster responses to your questions, please use StackOverflow instead and tag your questions with "FFmpeg".
If you need a backup of the posts from this forum, please contact me directly.

How to install a bug patch?

Who doesn't love them :) But for faster response on your Bug Reports, please visit: http://www.ffmpeg.org/bugreports.html
Forum rules
First of all, please remember that all the developers working on FFmpeg are volunteers, we are not paid for analyzing, debugging, fixing and answering bug reports. While we try our best to create high quality software and be responsive, if you should not get an answer, please consider the above and be aware of the fact that we receive many bug reports and the amount of time it takes to deal with them can be substantial. Nevertheless most issues get resolved, just please understand that there are no guarantees nor promises.

How to install a bug patch?

Postby mixelpix » Tue Jan 31, 2017 4:13 pm

I have run into the same problem as identified in this bug report: https://trac.ffmpeg.org/ticket/5654

using FFmpeg on macOS (installed with Homebrew), the AV Foundation option for screen captures is unable to capture screen resolutions of 1366x768 - specifically the width of 1366.

This is the suggested patch: https://trac.ffmpeg.org/attachment/tick ... 5654.patch

But I don't know the patch line commands or procedure.

I have found the file in question which needs patching:


Can someone walk me through the process or point me in the direction of a tutorial? I've looked at the man pages for the patch command, but I don't understand the overall process - for example, will I also need to use make commands to re-compile the ffmpeg executable in
/usr/local/Cellar/ffmpeg/HEAD-3405d6c/bin/ffmpeg ?

Thank you.
Posts: 6
Joined: Tue Jan 31, 2017 5:03 am

Re: How to install a bug patch?

Postby llogan » Tue Jan 31, 2017 8:25 pm

Get the source code. There are several options to do so on the download page.

Optional: If you used git to download source code, or if you downloaded the git snapshot, you can make a branch.
Code: Select all
cd ffmpeg
git checkout -b 5654

Download patch:
Code: Select all
curl -O https://trac.ffmpeg.org/raw-attachment/ticket/5654/fix-5654.patch

Apply it (or use "git apply" if you prefer):
Code: Select all
git am fix-5654.patch

Now you can configure and make:
Code: Select all
./configure <your configure options> && make

Then run ffmpeg:
Code: Select all
Get an answer more quickly by providing your actual ffmpeg command and the complete console output. Use the code button to format your command and output or your question will be ignored.
Posts: 2363
Joined: Fri Jan 25, 2013 9:47 pm
Location: Alaska

Re: How to install a bug patch?

Postby mixelpix » Wed Feb 01, 2017 6:22 am

llogan wrote:Get the source code. There are several options to do so on the download page.

Thank you so very much - this is a very helpful reply!!!
Posts: 6
Joined: Tue Jan 31, 2017 5:03 am

Return to Bugs, bugs, bugs :)

Who is online

Users browsing this forum: No registered users and 1 guest