Page 1 of 1

How to install a bug patch?

PostPosted: Tue Jan 31, 2017 4:13 pm
by mixelpix
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:

/Users/mixelpix/Library/Caches/Homebrew/ffmpeg--git/libavdevice/avfoundation.m

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.

Re: How to install a bug patch?

PostPosted: Tue Jan 31, 2017 8:25 pm
by llogan
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
./ffmpeg

Re: How to install a bug patch?

PostPosted: Wed Feb 01, 2017 6:22 am
by mixelpix
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!!!