How to update libavcodec

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
sysadmin999
New Cone
New Cone
Posts: 8
Joined: 17 Oct 2016 16:58

How to update libavcodec

Postby sysadmin999 » 18 Oct 2016 19:21

I've been able to compile VLC 100% from start to finish, but only by passing the --disable-avcodec option in the configure. The reason why is I get this error

configure: error: Requested 'libavcodec >= 57.37.100' but version of libavcodec is 56.56.101. Pass --disable-avcodec to ignore this error.


I have two questions
1. Why would this package not be included when I
$ ../bootstrap --host=x86_64-w64-mingw32
$ make prebuilt

2. How can I manually update this lib?
I have tried these things:
a) sudo apt-get install libavcodec-dev
b) sudo apt-get install ffmpeg
c) getting the ffmpeg source and extracting the files to everywhere I can find libavcodec
d) 100 other things

I cannot figure out what to do, and this is my only issue

Thank you.

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to update libavcodec

Postby Rémi Denis-Courmont » 19 Oct 2016 11:03

1. libavcodec is definitely included in all prebuilt contribs.
2. None of the above. That would work for native builds only. You need to build it from contrib, or build it in similar fashion than contrib does.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sysadmin999
New Cone
New Cone
Posts: 8
Joined: 17 Oct 2016 16:58

Re: How to update libavcodec

Postby sysadmin999 » 19 Oct 2016 15:48

I followed the wiki guide https://wiki.videolan.org/Win32Compile/ to a tee, from a new Ubuntu 16.04 installation with nothing on it. It definitely comes with 56.56.101. I can see this in my contrib/lib folder. So I'm not sure what to do

Rémi Denis-Courmont
Developer
Developer
Posts: 15268
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: How to update libavcodec

Postby Rémi Denis-Courmont » 19 Oct 2016 15:54

And you are building what? prebuilt should work for the current official releases (VLC 2.2.x).
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

sysadmin999
New Cone
New Cone
Posts: 8
Joined: 17 Oct 2016 16:58

Re: How to update libavcodec

Postby sysadmin999 » 19 Oct 2016 23:10

I am building for Windows 64 bit standalone installer with NSIS.

I followed this guide start to finish https://wiki.videolan.org/Win32Compile/

I made no changes other than appropriately changing the host triplet. I can get through it all the way to an installer, but only if I pass --disable-avcodec, as my version is 56.56.101. It says right in the configure, as a comment, that we need >= 57.xx.xx

sysadmin999
New Cone
New Cone
Posts: 8
Joined: 17 Oct 2016 16:58

Re: How to update libavcodec

Postby sysadmin999 » 20 Oct 2016 19:34

I finally understand.. I was checking out the HEAD revision of VLC. To get to 2.2... I did this

sudo git clone http://git.videolan.org/git/vlc.git vlc && cd vlc && git checkout ddba52206f69bb123bea8ed4d4ada07b3cb1223c

However this means that the HEAD revision has an out of date prebuilt, right?

VLAN-Lover
New Cone
New Cone
Posts: 8
Joined: 30 Nov 2016 10:32

Re: How to update libavcodec

Postby VLAN-Lover » 30 Nov 2016 16:31

THAT HELPS!! Thank you, sysadmin999

I burnt hours reading useless pages like this or this and always end with the same
configure: error: Requested 'libavcodec >= 57.37.100' but version of libavcodec is 56.56.101. Pass --disable-avcodec to ignore this error.
Thanks to your feedback and your line:

Code: Select all

sudo git clone http://git.videolan.org/git/vlc.git vlc && cd vlc && git checkout ddba52206f69bb123bea8ed4d4ada07b3cb1223c
the compilation runs a little bit further, but ends with an error at:
../../extras/package/win32/../../../modules/access/dshow/dshow.cpp:1729:52: error: ‘MEDIASUBTYPE_I420’ was not declared in this scope
mtr.subtype = MEDIASUBTYPE_I420;
^~~~~~~~~~~~~~~~~
What do I have to do additionally to cross-compile the official, unchanged VLC 2.2.4 in Ubuntu for Windows 32bit?
(There are no more hints at https://wiki.videolan.org/Win32Compile/)

VLAN-Lover
New Cone
New Cone
Posts: 8
Joined: 30 Nov 2016 10:32

Re: How to update libavcodec

Postby VLAN-Lover » 30 Nov 2016 16:58

If I try it with

Code: Select all

sudo git clone git://git.videolan.org/vlc/vlc-2.2.git vlc
the compilation runs much longer, but also never finish because of this error:
../../../config.h:800:0: warning: ignoring #pragma STDC FP_CONTRACT [-Wunknown-pragmas]
# pragma STDC FP_CONTRACT ON

In file included from ../../../../extras/package/win32/../../../modules/gui/qt4/dialogs/open.hpp:35:0,
from ../../../../extras/package/win32/../../../modules/gui/qt4/dialogs_provider.hpp:36,
from ../../../../extras/package/win32/../../../modules/gui/qt4/qt4.cpp:36:
./ui/open.h:14:29: fatal error: QtWidgets/QAction: No such file or directory
#include <QtWidgets/QAction>
^
compilation terminated.
I give up.

Can please someone tell me what I have to do to cross-compile the official, unchanged VLC 2.2.4 in Ubuntu for Windows 32bit?

ryantheseer
Blank Cone
Blank Cone
Posts: 15
Joined: 16 Feb 2017 20:19

Re: How to update libavcodec

Postby ryantheseer » 23 Feb 2017 17:54



Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 41 guests