ffmpeg revision for vlc-1.0.5

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.
wqzzwq
Blank Cone
Blank Cone
Posts: 12
Joined: 23 Mar 2010 01:54

ffmpeg revision for vlc-1.0.5

Postby wqzzwq » 06 Apr 2010 05:12

I can not find ffmpeg revision for vlc-1.0.5. I want to recompile the ffmpeg lib in vlc.
Anyone who knows ,please tell me

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: ffmpeg revision for vlc-1.0.5

Postby VLC_help » 06 Apr 2010 17:02

It isn't easy. I would guess you have to build libavcodec first and then whole VLC, since DLL files build with different compiler environments don't seem to work together correctly.

wqzzwq
Blank Cone
Blank Cone
Posts: 12
Joined: 23 Mar 2010 01:54

Re: ffmpeg revision for vlc-1.0.5

Postby wqzzwq » 07 Apr 2010 04:31

I do something with infomation run by command :make -n in the directory /home/moko/vlc-1.0.3/extras/contrib/src/Makefile:

/usr/bin/svn co svn://svn.ffmpeg.org/ffmpeg/trunk ffmpeg -r 20342
(cd ffmpeg; patch -p0 < ../Patches/ffmpeg-svn-win32.patch)
(cd ffmpeg; patch -p1 < ../Patches/eac3_spectral.patch)
/usr/bin/wget -c --passive http://user.cs.tu-berlin.de/~jutta/gsm/ ... .12.tar.gz
rm -rf gsm || true
gunzip -c gsm-1.0.12.tar.gz | tar xf - --exclude='[*?:<>\|]'
mv gsm-1.0-* gsm || true
(patch -p0 < patches/gsm-cross.patch)
(cd gsm; CC="gcc -mno-cygwin -isystem /usr/include/mingw" CXX="g++ -mno-cygwin -isystem /usr/include/mingw" make && cp inc/gsm.h /home/moko/vlc-1.0.3/extras/contrib/include && cp lib/libgsm.a /home/moko/vlc-1.0.3/extras/contrib/lib)
touch .gsm
(cd ffmpeg; CC="gcc -mno-cygwin -isystem /usr/include/mingw" CXX="g++ -mno-cygwin -isystem /usr/include/mingw" ./configure --target-os=mingw32 --enable-memalign-hack --cpu=i686 -arch=i686 --enable-libmp3lame --enable-libgsm --disable-debug --enable-gpl --enable-postproc --disable-ffserver --disable-ffmpeg --disable-ffplay --disable-devices --disable-protocols --disable-network --disable-bzlib --disable-decoder=dca --prefix=/home/moko/vlc-1.0.3/extras/contrib --extra-cflags="-I/home/moko/vlc-1.0.3/extras/contrib/include -mno-cygwin -isystem /usr/include/imgw -DNDEBUG -mno-cygwin -isystem /usr/include/mingw -isystem /home/moko/vlc-1.0.3/extras/contrib/include " --extra-ldflags="-L/home/moko/vlc-1.0.3/extras/contrib/lib -mno-cygwin" --target-os=mingw32 --memalign-hack --cpu=i686 --arch=i686 --enable-libmp3lame --enable-libgsm --disable-debug --enable-gpl --enable-postproc --disable-ffserver --disable-ffmpeg --disable-ffplay --disable-devices --disable-protocols --disable-network --disable-shared --enable-static && make && make install-libs install-headers)
touch .ffmpeg

ANd I download ffmpeg 20342 from svn, recompile the ffmpeg in the terms of up steps. It show some errors about the data structrue . SO I don not know whether the ffmpeg revision problem?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: ffmpeg revision for vlc-1.0.5

Postby VLC_help » 07 Apr 2010 16:32

It show some errors about the data structrue
Could you paste the errors here?

wqzzwq
Blank Cone
Blank Cone
Posts: 12
Joined: 23 Mar 2010 01:54

Re: ffmpeg revision for vlc-1.0.5

Postby wqzzwq » 09 Apr 2010 04:42

When I compile gsm,it appears such error:
rm: cannot remove './lib/libgsm.a': NO such file or dierctory
make: [lib/libgsm.a] Error 1 (ignored)
./lib/libgsm.a: line 1: syntax error near unexpected token 'newline'
./lib/libgsm.a: line 1: '!<arch>'
make: ***[lib/libgsm.a] Error 2
But there is libgsm.a in ./lib directory,so I donnot modify the gsm but continue to make ffmpeg.

When I execute the 'make' command in the ffmpeg directory, it appears the following errors:
1. libswscale/swscale.c :140: error: conflicting types for 'ff_dither4'
libswscale/swscale_internal.h:447: error: previous declaration of 'ff_dither4' as here
libswscale/swscale.c:140: error: parse error before '[' token

2. libswscale/swscale.c:144: error: parse error before '[' token

3. libswscale/swscale_template.c: In function ' yuv2packed2_MMX2 ';
libswscale/swscale_template.c:1350: error: subscripted value is neither array nor pointer

4. libswscale/swscale_template.c:1935: error : subscripted value is neither array nor pointer

5 libswscale/swscale.c: In funtion ' palToRgbWrapper ':
libswscale/swscale.c:1425: error: 'av_pix_fmt_descriptors ' undeclared (first use in this function)
libswscale/swscale.c:1425: error: <Each undeclared identifier is reported only once
libswscale/swscale.c:1425: error: for each function it appears in .)

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: ffmpeg revision for vlc-1.0.5

Postby VLC_help » 09 Apr 2010 17:18


wqzzwq
Blank Cone
Blank Cone
Posts: 12
Joined: 23 Mar 2010 01:54

Re: ffmpeg revision for vlc-1.0.5

Postby wqzzwq » 10 Apr 2010 17:17

Thanks very much.
But the problem is how can I get the right ffmpeg copy ?Any place can I get the ffmpeg source code?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: ffmpeg revision for vlc-1.0.5

Postby VLC_help » 11 Apr 2010 15:34

Any place can I get the ffmpeg source code?
http://ffmpeg.org/download.html

wqzzwq
Blank Cone
Blank Cone
Posts: 12
Joined: 23 Mar 2010 01:54

Re: ffmpeg revision for vlc-1.0.5

Postby wqzzwq » 13 Apr 2010 05:22

Thank you !I have resovle it

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Re: ffmpeg revision for vlc-1.0.5

Postby henrymark » 11 Jan 2011 04:28

Would you please share the solution ? (About the ffmpeg's parameters of configure, or some infomation to resolve.)Thanks a lot.

henrymark
Blank Cone
Blank Cone
Posts: 46
Joined: 11 Aug 2009 09:55

Re: ffmpeg revision for vlc-1.0.5

Postby henrymark » 09 Feb 2011 04:18

Today I see the whole new VLC page that moves me, I want to say THANKS VERY VERY MUCH for the effort, support , of all of VLC Team.


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 52 guests