How do you apply the patch to ffmpeg

2,524 views
Skip to first unread message

Verdi

unread,
May 21, 2010, 11:24:51 AM5/21/10
to WebM Discussion
I was able to download and install ffmpeg using instructions here:
http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html

But I don't know how to apply the patch with webm support. Can anyone
help?
Thanks,
Michael

Verdi

unread,
May 21, 2010, 12:31:18 PM5/21/10
to WebM Discussion
I got this reply and it seems to have worked:

cd ffmpeg-source-dir

for i in patchdir/*.diff; do patch -p0 < $i; done

Justin Clift

unread,
May 21, 2010, 12:31:24 PM5/21/10
to WebM Discussion
Hi Michael,

There's doesn't seem to be any guides online for MacOS X yet, however
someone has written patching instructions for Ubuntu Linux here:

http://lardbucket.org/blog/archives/2010/05/19/vp8-webm-and-ffmpeg/

Looking at the link you gave for Mac OSX with FFmpeg, I think you should
be able to manage it.

Not sure if you have git installed on your system, you might be able to
use a libvpx source code release instead. That would probably make it
simpler. :)

Would you be interested in making a note of the steps you take, and then
sharing them with us? They would probably make a good start for a Mac
OSX "HOW-TO" guide.

Regards and best wishes,

Justin Clift


> Thanks,
> Michael


--
Salasaga - Open Source eLearning IDE
http://www.salasaga.org

Alex Converse

unread,
May 21, 2010, 12:36:24 PM5/21/10
to Verdi, WebM Discussion
On Fri, May 21, 2010 at 12:31 PM, Verdi <michae...@gmail.com> wrote:
> I got this reply and it seems to have worked:
>
> cd ffmpeg-source-dir
>
> for i in patchdir/*.diff; do patch -p0 < $i; done
>

Sorry I meant to send that to everyone, is it possible to make these
lists reply back to the list by default?

--Alex Converse

Justin Clift

unread,
May 21, 2010, 12:43:09 PM5/21/10
to webm-d...@webmproject.org
On 05/22/2010 02:36 AM, Alex Converse wrote:
<snip>>
> Sorry I meant to send that to everyone, is it possible to make these
> lists reply back to the list by default?

Um.... please don't?

(My preference is the other way around)

:)

> --Alex Converse

Fabricio Zuardi

unread,
May 21, 2010, 2:56:46 PM5/21/10
to Justin Clift, WebM Discussion

On May 21, 2010, at 1:31 PM, Justin Clift wrote:

> On 05/22/2010 01:24 AM, Verdi wrote:
>> I was able to download and install ffmpeg using instructions here:
>> http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html
>>
>> But I don't know how to apply the patch with webm support. Can anyone
>> help?
>
> Hi Michael,
>
> There's doesn't seem to be any guides online for MacOS X yet, however someone has written patching instructions for Ubuntu Linux here:
>
> http://lardbucket.org/blog/archives/2010/05/19/vp8-webm-and-ffmpeg/

I followed that guide only changing the target to:

./configure --target=x86_64-darwin9-gcc

And it worked on my Mac. Although I am not very confident if that was the proper target for my machine or not (MacBookPro5,2 Intel Core 2 Duo running Snow Leopard).

The step of manually copying the .h files to /usr/include/ was necessary, and I've used different config parameters for compiling the ffmpeg here, I am using revision 23197 too and I have skipped the "sudo checkinstall…" part as well, I did a regular make, then sudo make install here.

Good luck! :)

[]s
Fabricio

LiquidMeson

unread,
May 22, 2010, 11:04:07 AM5/22/10
to WebM Discussion
for anyone looking to convert video's to webm
http://meson.us/x/vp8ffmpeg64.tar.gz these packages are for 64bit
debian/ubuntu
extract them and
"bash installLibvpx" in the terminal
and install the other two deb's by clicking on them.
proceed to
ffmpeg -i original.avi new.webm


example. http://meson.us/video/linux.webm
with the firefox daily build you might have to save the video locally,
and then reopen it in ff

Lachlan Hunt

unread,
May 23, 2010, 10:46:08 AM5/23/10
to WebM Discussion
On 2010-05-21 18:31, Justin Clift wrote:
> There's doesn't seem to be any guides online for MacOS X yet, however
> someone has written patching instructions for Ubuntu Linux here:
>
> http://lardbucket.org/blog/archives/2010/05/19/vp8-webm-and-ffmpeg/

I followed those instructions and adapted them for compiling on Mac OS,
based on these other Mac specific instructions for ffmpeg.

http://stephenjungels.com/jungels.net/articles/ffmpeg-howto.html

Although I excluded x264 and a few other components I don't have
installed, and omitted the corresponding options, like --enable-libx264.
But when I tried to compile it, I get the following errors:


$ ./configure --enable-gpl --enable-version3 --enable-nonfree
--enable-postproc --enable-pthreads --enable-libfaac --enable-libfaad
--enable-libmp3lame --enable-x11grab --enable-libvpx-vp8
...
$ make
...
libavcodec/libvpxenc.c: In function ‘vp8_init’:
libavcodec/libvpxenc.c:266: error: ‘IMG_FMT_I420’ undeclared (first use
in this function)
libavcodec/libvpxenc.c:266: error: (Each undeclared identifier is
reported only once
libavcodec/libvpxenc.c:266: error: for each function it appears in.)
make: *** [libavcodec/libvpxenc.o] Error 1

I can see that these references to IMG_FMT_I420 are added to libvpxenc.c
by the patches, and that it's declared in vpx_image.h, which was indeed
copied to /usr/include/ as per the instructions, so I can't see why it
would be a problem. Does anyone know why this error may be occurring?

--
Lachlan Hunt - Opera Software
http://lachy.id.au/
http://www.opera.com/

John Koleszar

unread,
May 23, 2010, 11:02:01 AM5/23/10
to Lachlan Hunt, WebM Discussion
The IMG_FMT_* enum values got moved to VPX_IMG_FMT_*. There's a
change[1] pending that tries to restore the old names in a deprecated
manner, but it hasn't been merged to the master branch yet.

[1]: http://review.webmproject.org/#change,12
Reply all
Reply to author
Forward
0 new messages