[Slackbuilds-users] FFmpeg update

Christoph Willing chris.willing at iinet.net.au
Wed Jun 3 02:07:06 UTC 2015



On 02/06/15 23:31, Christoph Willing wrote:
>
>
> On 02/06/15 21:00, David Spencer wrote:
>>> Any chance we could backport the ffmpeg fixes to 2.1.x?
>>
>> "Challenge accepted" :D
>> It looked really difficult two nights ago, but I've had coffee since
>> then...
>>
>
> There may be an easier way.
>
> I have just compiled vlc-2.1.6 with ffmpeg-2.6.3 by modifying vlc's
> configure.ac and running 'autoreconf -f' prior to runing configure etc.
> The patch with the modification is attached if anyone would like to test
> it. It just changes the disallowed .so version from 56 to 57 so that the
> libavcodec.so.56.26.100 from ffmpeg-2.6.3 is not rejected. After the
> patch & autoreconf, configuration and compilation both proceed normally
> - quite a few warnings about use of deprecated functions but no errors
> (also no bad noises about cairo/librsvg, libdvdread or taglib, as was
> the case with vlc-2.2.1).
>
> So far I've tested playback only on a single video but it played fine in
> the VM I was testing in. I can do some more testing tomorrow morning but
> I think this patch is doing the job OK.

After some more build testing, I've found another patch is necessary. It 
addresses an installation failure caused by vlc-cache-gen 
loading/unloading the gobject shared object too many times (once for 
each plugin which uses gobject) eventually resulting in seg fault. This 
is strictly speaking a glib problem but that is unlikely to be fixed, so 
the workaround is the attached patch which loads just once and then 
reuses the gobject.

Please try both patches - in the absence of any problems found with 
them, I'm happy to include both patches in the vlc 2.1.6 SlackBuild to 
support new ffmpeg-2.6.3.

chris

-------------- next part --------------
--- bin/Makefile.am.orig	2015-06-03 10:49:51.266282736 +1000
+++ bin/Makefile.am	2015-06-03 10:50:20.469282310 +1000
@@ -72,6 +72,10 @@
 vlc_cache_gen_DEPENDENCIES = vlc_win32_rc.$(OBJEXT)
 endif
 
+if HAVE_GOBJECT
+vlc_cache_gen_LDADD += $(GOBJECT_LIBS)
+endif
+
 #
 # Plug-ins cache
 #
--- configure.ac.orig	2015-06-03 10:53:22.299279657 +1000
+++ configure.ac	2015-06-03 09:44:33.338339889 +1000
@@ -762,6 +762,12 @@
     ])
 ])
 
+dnl
+dnl Check for gobject
+dnl
+have_gobject="no"
+PKG_CHECK_MODULES([GOBJECT], [gobject-2.0], [ have_gobject="yes" ])
+AM_CONDITIONAL(HAVE_GOBJECT, [ test "${have_gobject}" = "yes" ])
 
 dnl
 dnl Check for zlib.h and -lz along with system -lminizip if available


More information about the SlackBuilds-users mailing list