Unfortunately it seems from a quick look like the ffmpeg programmers have
changed their code, without making it backwards compatible.

For example, CodecID seems to have become AVCodecID...

avcodec_open() has been deprecated in favour of avcodec_open2()...

etc.

Extensive patching will be required.


I don't have time at the moment, I am writing my Masters dissertation.


But if somebody else wanted to create a patch, a good start would be to
look here:


http://git.videolan.org/?p=ffmpeg.git;a=blob;f=libavcodec/version.h;h=44c9f927cef477b5c575c1f9ac5911a222af288b;hb=4059c7836a57df95821505dd67322a31ee99f9e8





Then I think the symbols there can be used, eg. put in asf_decoder.c:

#include <libavcodec/version.h>

// copied from version.h in case we dont have it

#ifndef FF_API_CODEC_ID
#define FF_API_CODEC_ID          (LIBAVCODEC_VERSION_MAJOR < 56)
#endif


// workaround for AVCodecID
#if FF_API_CODEC_ID
typedef CodecID AVCodecID
#endif


// then replace all CodecID with AVCodecID...



etc.




Gabriel.





http://lives.sourceforge.net
https://www.ohloh.net/accounts/salsaman


On Fri, May 24, 2013 at 11:08 AM, Javi <[email protected]> wrote:

> Ok,
>
> familiar errors again:
>
> asf_decoder.c:66:21: error: return type is an incomplete type
> asf_decoder.c: In function ‘ff_codec_get_id’:
> asf_decoder.c:71:7: warning: ‘return’ with a value, in function
> returning void
> asf_decoder.c:74:5: warning: implicit declaration of function ‘toupper’
> asf_decoder.c:78:7: warning: ‘return’ with a value, in function
> returning void
> asf_decoder.c:80:3: warning: ‘return’ with a value, in function
> returning void
> asf_decoder.c: In function ‘attach_stream’:
> asf_decoder.c:1351:30: error: void value not ignored as it ought to be
> asf_decoder.c:2006:3: warning: implicit declaration of function
> ‘avcodec_open’
> asf_decoder.c: In function ‘get_frame’:
> asf_decoder.c:2494:4: warning: format ‘%ld’ expects type ‘long int’, but
> argument 4 has type ‘int64_t’
> make[3]: *** [asf_decoder_la-asf_decoder.lo] Error 1
> make[3]: se sale del directorio
> «/home/javi/Lives/trunk/lives-plugins/plugins/decoders»
> make[2]: *** [all-recursive] Error 1
> make[2]: se sale del directorio
> «/home/javi/Lives/trunk/lives-plugins/plugins»
> make[1]: *** [all-recursive] Error 1
> make[1]: se sale del directorio «/home/javi/Lives/trunk/lives-plugins»
> make: *** [all-recursive] Error 1
>
>
> I started to comment stuff that gave me errors. Put lots of // and /* at
> mkv_decoder even. Shited all, rmrfed all the trunk and downloaded the
> entire code again from the svn.
>
> Still in the painful compiling loop
>
> Thx.
> Javi
>
> On 24/05/13 14:45, salsaman wrote:
> > You havent commented it out properly:
> >
> > ->
> > gtk_scale_set_has_origin(....
> >
> > ->
> > //gtk_scale_set_has_origin(....
> >
> >
> > Gabriel.
> >
> >
> >
> >
> > http://lives.sourceforge.net
> > https://www.ohloh.net/accounts/salsaman
> >
> >
> > On Fri, May 24, 2013 at 9:28 AM, Javi <[email protected]
> > <mailto:[email protected]>> wrote:
> >
> >     Commented.
> >
> >     Now:
> >
> >     widget-helper.o: In function `lives_standard_hruler_new':
> >     /home/javi/Lives/trunk/src/widget-helper.c:2661: undefined reference
> to
> >     `gtk_scale_set_has_origin'
> >     collect2: ld returned 1 exit status
> >     make[1]: *** [lives-exe] Error 1
> >     make[1]: se sale del directorio «/home/javi/Lives/trunk/src»
> >     make: *** [all-recursive] Error 1
> >
> >
> >
> >
> >     On 24/05/13 13:45, salsaman wrote:
> >      > Just comment that line out.
> >      >
> >      > Regards,
> >      > Gabriel.
> >      >
> >      >
> >      >
> >      > http://lives.sourceforge.net
> >      > https://www.ohloh.net/accounts/salsaman
> >      >
> >      >
> >      > On Thu, May 23, 2013 at 10:24 AM, Javi <[email protected]
> >     <mailto:[email protected]>
> >      > <mailto:[email protected] <mailto:[email protected]>>>
> wrote:
> >      >
> >      >     Pain again, but pushing for the solution.
> >      >
> >      >     Installed a bunch of dev packages. Almost YES in the
> >     configuration
> >      >     prerequisites.
> >      >
> >      >     But new errors appeared:
> >      >
> >      >     libtool: link: gcc -Wstrict-aliasing=0 -DHAVE_MJPEGTOOLS=1
> >      >     -DHAVE_LDVGRAB=1 -I libavc1394/avc1394.h -I
> >     libraw1394/raw1394.h -I
> >      >     libraw1394/rom1394.h -I/usr/include/liboil-0.3 -DENABLE_OIL=1
> >      >     -DIS_LINUX_GNU=1 -DENABLE_OSC=1 -I/usr/include/alsa
> -DALSA_MIDI=1
> >      >     -I/usr/include/libpng12 -DUSE_LIBPNG=1 -I/usr/local/include
> >      >     -I/usr/local/include -DUSE_SWSCALE=1 -DENABLE_JACK
> >      >     -DENABLE_JACK_TRANSPORT -DHAVE_PULSE_AUDIO=1 -DENABLE_GIW=1
> >      >     -DHAVE_UNICAP=1 -DLIVES_LIBDIR=\"/usr/lib\" -DHAVE_WEBM=1 -g
> >     -O2 -Wall
> >      >     -pthread -pthread -o .libs/lives-exe widget-helper.o main.o
> >     support.o
> >      >     effects.o plugins.o effects-weed.o effects-data.o framedraw.o
> >      >     interface.o paramspecial.o paramwindow.o rfx-builder.o
> >     lives-yuv4mpeg.o
> >      >     preferences.o rte_window.o gui.o htmsocket.o merge.o dialogs.o
> >      >     saveplay.o audio.o events.o resample.o osc.o omc-learn.o
> >     callbacks.o
> >      >     colourspace.o keyboard.o utils.o multitrack.o stream.o
> cvirtual.o
> >      >     startup.o pangotext.o videodev.o jack.o pulse.o ldvgrab.o
> >     ldvcallbacks.o
> >      >     ldvinterface.o giwknob.o giwvslider.o giwled.o giwtimeline.o
> >      >     -L/usr/lib/i386-linux-gnu /usr/lib/libgtk-3.so
> >     /usr/lib/libgdk-3.so
> >      >     /usr/lib/i386-linux-gnu/libatk-1.0.so <http://libatk-1.0.so>
> >     <http://libatk-1.0.so>
> >      >     /usr/lib/libcairo-gobject.so
> >      >     /usr/lib/i386-linux-gnu/libgio-2.0.so <http://libgio-2.0.so>
> >     <http://libgio-2.0.so>
> >      >     /usr/lib/i386-linux-gnu/libpangoft2-1.0.so
> >     <http://libpangoft2-1.0.so> <http://libpangoft2-1.0.so>
> >      >     /usr/lib/i386-linux-gnu/libpangocairo-1.0.so
> >     <http://libpangocairo-1.0.so>
> >      >     <http://libpangocairo-1.0.so> -lgdk_pixbuf-2.0
> >      >     /usr/lib/libcairo.so /usr/lib/i386-linux-gnu/libpango-1.0.so
> >     <http://libpango-1.0.so>
> >      >     <http://libpango-1.0.so>
> >      >     /usr/lib/i386-linux-gnu/libfreetype.so -lfontconfig
> >      >     /usr/lib/i386-linux-gnu/libgobject-2.0.so
> >     <http://libgobject-2.0.so> <http://libgobject-2.0.so>
> >      >     /usr/lib/i386-linux-gnu/libgmodule-2.0.so
> >     <http://libgmodule-2.0.so> <http://libgmodule-2.0.so>
> >      >     /usr/lib/i386-linux-gnu/libgthread-2.0.so
> >     <http://libgthread-2.0.so> <http://libgthread-2.0.so>
> >      >     /usr/lib/i386-linux-gnu/libglib-2.0.so
> >     <http://libglib-2.0.so> <http://libglib-2.0.so>
> >      >     -loil-0.3 -lX11
> >      >     /usr/lib/libmjpegutils.so -L/home/javi/Lives/trunk/libOSC
> >      >     /home/javi/Lives/trunk/libOSC/.libs/libOSC.a
> >      >     -L/home/javi/Lives/trunk/libOSC/client
> >      >     /home/javi/Lives/trunk/libOSC/client/.libs/libOSC_client.a
> -ljack
> >      >     /usr/lib/libavc1394.so /usr/lib/libraw1394.so
> >     /usr/lib/librom1394.so
> >      >     /usr/lib/libasound.so -lpulse -lpng12 -L/usr/local/lib
> -lswscale
> >      >     -lavutil /home/javi/Lives/trunk/libweed/.libs/libweed_slice.so
> >      >     /home/javi/Lives/trunk/libweed/.libs/libweed-utils.so -lm
> >      >     /usr/lib/libunicap.so -lrt -ldl -pthread
> >      >     widget-helper.o: In function `lives_standard_hruler_new':
> >      >     /home/javi/Lives/trunk/src/widget-helper.c:2661: undefined
> >     reference to
> >      >     `gtk_scale_set_has_origin'
> >      >     collect2: ld returned 1 exit status
> >      >     make[1]: *** [lives-exe] Error 1
> >      >     make[1]: se sale del directorio «/home/javi/Lives/trunk/src»
> >      >     make: *** [all-recursive] Error 1
> >      >
> >      >     Thanks again
> >      >
> >      >     On 16/05/13 01:03, Doug Webb wrote:
> >      >      > You should probably use the latest version as it will have
> >     the most
> >      >      > features and bug fixes.
> >      >      >
> >      >      > There is a list of prerequisite libraries needed to
> >     compile in the
> >      >      > README file that came with the distro. You don't want to
> >     compile any
> >      >      > libraries if you can help it.  Use synaptic package
> >     manager or sudo
> >      >      > apt-get install .... to add the rest of the needed
> >     libraries from the
> >      >      > list in the output from ./configure. You need the libraries
> >      >     themselves
> >      >      > as well as the -dev or -devel include files to compile
> >     against the
> >      >      > libraries. When ./configure finishes you scroll up past
> >     the creating
> >      >      > ..... lines and to the Checking for SDL. You'll want to
> >     have most of
> >      >      > those files installed to handle all the different formats.
> >     DV and
> >      >     1394
> >      >      > functionality only install if you have DV camera that
> >     attaches with
> >      >      > firewire. All the way down to WEED_PLUGIN_UTILS.
> >      >      >
> >      >      > When you have them installed run ./configure again and
> >     check that
> >      >     they
> >      >      > were all installed correctly. Then run make and sudo make
> >     install.
> >      >      >
> >      >      > Doug
> >      >      >
> >      >      >
> >      >      >
> >      >      >
> >      >      >
> >      >      > On 13-05-15 02:17 PM, Javi wrote:
> >      >      >> Hello!,
> >      >      >>
> >      >      >> I'm unable to compile 2.0.4 source code.
> >      >      >>
> >      >      >> I compiled ffmpeg from source to get the newest version
> and
> >      >     didn't have
> >      >      >> luck :|
> >      >      >>
> >      >      >> tried over a box with Ubuntu 11.04
> >      >      >>
> >      >      >> Any clue?
> >      >      >>
> >      >      >> My prompt:
> >      >      >>
> >      >      >> ....AR_T=1 -DHAVE_WINT_T=1 -DHAVE_INTMAX_T=1
> >     -DHAVE_POSIX_PRINTF=1
> >      >      >> -DHAVE_STDINT_H=1 -DHAVE_STDINT_H=1 -DHAVE_STDDEF_H=1
> >      >     -DHAVE_STDLIB_H=1
> >      >      >> -DHAVE_STRING_H=1 -DHAVE_ASPRINTF=1 -DHAVE_FWPRINTF=1
> >      >     -DHAVE_PUTENV=1
> >      >      >> -DHAVE_SETENV=1 -DHAVE_SETLOCALE=1 -DHAVE_SNPRINTF=1
> >     -DHAVE_WCSLEN=1
> >      >      >> -DHAVE_DECL__SNPRINTF=0 -DHAVE_DECL__SNWPRINTF=0
> >      >      >> -DHAVE_DECL_GETC_UNLOCKED=1 -DHAVE_LANGINFO_CODESET=1
> >      >      >> -DHAVE_LC_MESSAGES=1 -DENABLE_NLS=1 -DHAVE_GETTEXT=1
> >      >     -DHAVE_DCGETTEXT=1
> >      >      >> -DHAVE_LIBDL=1 -DHAVE_POSIX_MEMALIGN=1
> >     -DHAVE_LINUX_JOYSTICK_H=1
> >      >      >> -DHAVE_JACK_JACK_H=1 -DHAVE_JACK_TRANSPORT_H=1
> >     -DHAVE_GLEE_H=1
> >      >      >> -DHAVE_LINUX_VIDEODEV2_H=1 -I. -fPIC -DPIC
> >     -I/usr/local/include
> >      >      >> -I/usr/local/include -Wno-deprecated-declarations -g -O2
> >     -Wall -MT
> >      >      >> asf_decoder_la-asf_decoder.lo -MD -MP -MF
> >      >      >> .deps/asf_decoder_la-asf_decoder.Tpo -c asf_decoder.c
>  -fPIC
> >      >     -DPIC -o
> >      >      >> .libs/asf_decoder_la-asf_decoder.o
> >      >      >> asf_decoder.c:66:21: error: return type is an incomplete
> type
> >      >      >> asf_decoder.c: In function 'ff_codec_get_id':
> >      >      >> asf_decoder.c:71:7: warning: 'return' with a value, in
> >     function
> >      >      >> returning void
> >      >      >> asf_decoder.c:74:5: warning: implicit declaration of
> function
> >      >     'toupper'
> >      >      >> asf_decoder.c:78:7: warning: 'return' with a value, in
> >     function
> >      >      >> returning void
> >      >      >> asf_decoder.c:80:3: warning: 'return' with a value, in
> >     function
> >      >      >> returning void
> >      >      >> asf_decoder.c: In function 'attach_stream':
> >      >      >> asf_decoder.c:1351:30: error: void value not ignored as
> >     it ought
> >      >     to be
> >      >      >> asf_decoder.c:2006:3: warning: implicit declaration of
> >     function
> >      >      >> 'avcodec_open'
> >      >      >> asf_decoder.c: In function 'get_frame':
> >      >      >> asf_decoder.c:2494:4: warning: format '%ld' expects type
> >     'long
> >      >     int', but
> >      >      >> argument 4 has type 'int64_t'
> >      >      >> make[3]: *** [asf_decoder_la-asf_decoder.lo] Error 1
> >      >      >> make[3]: se sale del directorio
> >      >      >>
> «/home/javi/Lives/lives-2.0.4/lives-plugins/plugins/decoders»
> >      >      >> make[2]: *** [all-recursive] Error 1
> >      >      >> make[2]: se sale del directorio
> >      >      >> «/home/javi/Lives/lives-2.0.4/lives-plugins/plugins»
> >      >      >> make[1]: *** [all-recursive] Error 1
> >      >      >> make[1]: se sale del directorio
> >      >     «/home/javi/Lives/lives-2.0.4/lives-plugins»
> >      >      >> make: *** [all-recursive] Error 1
> >      >      >>
> >      >      >>
> >      >      >>
> >      >
> >
> ------------------------------------------------------------------------------
> >      >      >> AlienVault Unified Security Management (USM) platform
> >     delivers
> >      >     complete
> >      >      >> security visibility with the essential security
> capabilities.
> >      >     Easily and
> >      >      >> efficiently configure, manage, and operate all of your
> >     security
> >      >     controls
> >      >      >> from a single console and one unified framework. Download
> >     a free
> >      >     trial.
> >      >      >> http://p.sf.net/sfu/alienvault_d2d
> >      >      >> _______________________________________________
> >      >      >> Lives-users mailing list
> >      >      >> [email protected]
> >     <mailto:[email protected]>
> >      >     <mailto:[email protected]
> >     <mailto:[email protected]>>
> >      >      >> https://lists.sourceforge.net/lists/listinfo/lives-users
> >      >      >>
> >      >      >
> >      >      >
> >      >      >
> >      >
> >
> ------------------------------------------------------------------------------
> >      >      > AlienVault Unified Security Management (USM) platform
> delivers
> >      >     complete
> >      >      > security visibility with the essential security
> capabilities.
> >      >     Easily and
> >      >      > efficiently configure, manage, and operate all of your
> >     security
> >      >     controls
> >      >      > from a single console and one unified framework. Download
> >     a free
> >      >     trial.
> >      >      > http://p.sf.net/sfu/alienvault_d2d
> >      >      > _______________________________________________
> >      >      > Lives-users mailing list
> >      >      > [email protected]
> >     <mailto:[email protected]>
> >      >     <mailto:[email protected]
> >     <mailto:[email protected]>>
> >      >      > https://lists.sourceforge.net/lists/listinfo/lives-users
> >      >      >
> >      >
> >      >
> >      >     --
> >      >     Javier Galán Rico
> >      >     illustration, 3d, design & animation
> >      >
> >      > (+34)699 58 15 80 <tel:%28%2B34%29699%2058%2015%2080>
> >     <tel:%28%2B34%29699%2058%2015%2080>
> >      > http://www.javiergalanrico.com
> >      >
> >      >
> >
> ------------------------------------------------------------------------------
> >      >     Try New Relic Now & We'll Send You this Cool Shirt
> >      >     New Relic is the only SaaS-based application performance
> >     monitoring
> >      >     service
> >      >     that delivers powerful full stack analytics. Optimize and
> >     monitor your
> >      >     browser, app, & servers with just a few lines of code. Try
> >     New Relic
> >      >     and get this awesome Nerd Life shirt!
> >      > http://p.sf.net/sfu/newrelic_d2d_may
> >      >     _______________________________________________
> >      >     Lives-users mailing list
> >      > [email protected]
> >     <mailto:[email protected]>
> >      >     <mailto:[email protected]
> >     <mailto:[email protected]>>
> >      > https://lists.sourceforge.net/lists/listinfo/lives-users
> >      >
> >      >
> >      >
> >      >
> >      >
> >
> ------------------------------------------------------------------------------
> >      > Try New Relic Now & We'll Send You this Cool Shirt
> >      > New Relic is the only SaaS-based application performance
> >     monitoring service
> >      > that delivers powerful full stack analytics. Optimize and monitor
> >     your
> >      > browser, app, & servers with just a few lines of code. Try New
> Relic
> >      > and get this awesome Nerd Life shirt!
> >     http://p.sf.net/sfu/newrelic_d2d_may
> >      >
> >      >
> >      >
> >      > _______________________________________________
> >      > Lives-users mailing list
> >      > [email protected]
> >     <mailto:[email protected]>
> >      > https://lists.sourceforge.net/lists/listinfo/lives-users
> >      >
> >
> >
> >     --
> >     Javier Galán Rico
> >     illustration, 3d, design & animation
> >
> >     (+34)699 58 15 80 <tel:%28%2B34%29699%2058%2015%2080>
> >     http://www.javiergalanrico.com
> >
> >
> ------------------------------------------------------------------------------
> >     Try New Relic Now & We'll Send You this Cool Shirt
> >     New Relic is the only SaaS-based application performance monitoring
> >     service
> >     that delivers powerful full stack analytics. Optimize and monitor
> your
> >     browser, app, & servers with just a few lines of code. Try New Relic
> >     and get this awesome Nerd Life shirt!
> >     http://p.sf.net/sfu/newrelic_d2d_may
> >     _______________________________________________
> >     Lives-users mailing list
> >     [email protected]
> >     <mailto:[email protected]>
> >     https://lists.sourceforge.net/lists/listinfo/lives-users
> >
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > Try New Relic Now & We'll Send You this Cool Shirt
> > New Relic is the only SaaS-based application performance monitoring
> service
> > that delivers powerful full stack analytics. Optimize and monitor your
> > browser, app, & servers with just a few lines of code. Try New Relic
> > and get this awesome Nerd Life shirt!
> http://p.sf.net/sfu/newrelic_d2d_may
> >
> >
> >
> > _______________________________________________
> > Lives-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/lives-users
> >
>
>
> --
> Javier Galán Rico
> illustration, 3d, design & animation
>
> (+34)699 58 15 80
> http://www.javiergalanrico.com
>
>
> ------------------------------------------------------------------------------
> Try New Relic Now & We'll Send You this Cool Shirt
> New Relic is the only SaaS-based application performance monitoring service
> that delivers powerful full stack analytics. Optimize and monitor your
> browser, app, & servers with just a few lines of code. Try New Relic
> and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
> _______________________________________________
> Lives-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/lives-users
>
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Lives-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/lives-users

Reply via email to