Page 1 of 1

ffmpeg revision for vlc-1.0.5

Posted: 06 Apr 2010 05:12
by wqzzwq
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

Re: ffmpeg revision for vlc-1.0.5

Posted: 06 Apr 2010 17:02
by VLC_help
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.

Re: ffmpeg revision for vlc-1.0.5

Posted: 07 Apr 2010 04:31
by wqzzwq
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?

Re: ffmpeg revision for vlc-1.0.5

Posted: 07 Apr 2010 16:32
by VLC_help
It show some errors about the data structrue
Could you paste the errors here?

Re: ffmpeg revision for vlc-1.0.5

Posted: 09 Apr 2010 04:42
by wqzzwq
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 .)

Re: ffmpeg revision for vlc-1.0.5

Posted: 09 Apr 2010 17:18
by VLC_help

Re: ffmpeg revision for vlc-1.0.5

Posted: 10 Apr 2010 17:17
by wqzzwq
Thanks very much.
But the problem is how can I get the right ffmpeg copy ?Any place can I get the ffmpeg source code?

Re: ffmpeg revision for vlc-1.0.5

Posted: 11 Apr 2010 15:34
by VLC_help
Any place can I get the ffmpeg source code?
http://ffmpeg.org/download.html

Re: ffmpeg revision for vlc-1.0.5

Posted: 13 Apr 2010 05:22
by wqzzwq
Thank you !I have resovle it

Re: ffmpeg revision for vlc-1.0.5

Posted: 11 Jan 2011 04:28
by henrymark
Would you please share the solution ? (About the ffmpeg's parameters of configure, or some infomation to resolve.)Thanks a lot.

Re: ffmpeg revision for vlc-1.0.5

Posted: 09 Feb 2011 04:18
by henrymark
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.