LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-30-2007, 02:25 PM   #1
-kc-
LQ Newbie
 
Registered: Jun 2007
Distribution: Slackware
Posts: 21

Rep: Reputation: 15
can't compile ffmpeg2theora-0.20


Hi, I tried the official binaries. ffmpeg2theora-0.20.linux.bin (statically linked) doesn't seem to handle ac3 audio, even though both ffmpeg2theora-0.19.linux.bin and ffmpeg2theora-0.20.exe under wine can do it for me.

Compiling v0.19, v0.20 and svn on Slacware 12, kernel 2.6.21.5-smp results in the same error:
Code:
$ ./get_ffmpeg_svn.sh

$ export PKG_CONFIG_PATH=/home/kc/ffmpeg2theora-0.20/ffmpeg:$PKG_CONFIG_PATH

$ ./configure
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /usr/bin/sed
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ld used by gcc... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking for /usr/i486-slackware-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... g77
checking whether we are using the GNU Fortran 77 compiler... yes
checking whether g77 accepts -g... yes
checking the maximum length of command line arguments... 98304
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/i486-slackware-linux/bin/ld
checking if the linker (/usr/i486-slackware-linux/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking for g77 option to produce PIC... -fPIC
checking if g77 PIC flag -fPIC works... yes
checking if g77 static flag -static works... yes
checking if g77 supports -c -o file.o... yes
checking whether the g77 linker (/usr/i486-slackware-linux/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking whether to link statically... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for XIPH... yes
checking for FFMPEG... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating kino_export/Makefile
config.status: executing depfiles commands

$ make

Making all in kino_export
make[1]: Entering directory `/home/kc/ffmpeg2theora-0.20/kino_export'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/kc/ffmpeg2theora-0.20/kino_export'
make[1]: Entering directory `/home/kc/ffmpeg2theora-0.20'
if gcc -DPACKAGE_NAME=\"ffmpeg2theora\" -DPACKAGE_TARNAME=\"ffmpeg2theora\" -DPACKAGE_VERSION=\"0.20\" -DPACKAGE_STRING=\"ffmpeg2theora\ 0.20\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"ffmpeg2theora\" -DVERSION=\"0.20\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -D_FILE_OFFSET_BITS=64 -I. -I.    -I./ffmpeg/libavformat -I./ffmpeg/libavcodec -I./ffmpeg/libavutil -I./ffmpeg/libswscale -I./ffmpeg/libpostproc   -g -O2 -MT ffmpeg2theora-ffmpeg2theora.o -MD -MP -MF ".deps/ffmpeg2theora-ffmpeg2theora.Tpo" -c -o ffmpeg2theora-ffmpeg2theora.o `test -f 'ffmpeg2theora.c' || echo './'`ffmpeg2theora.c; \
        then mv -f ".deps/ffmpeg2theora-ffmpeg2theora.Tpo" ".deps/ffmpeg2theora-ffmpeg2theora.Po"; else rm -f ".deps/ffmpeg2theora-ffmpeg2theora.Tpo"; exit 1; fi
ffmpeg2theora.c: In function ‘main’:
ffmpeg2theora.c:1232: error: ‘AVFormatParameters’ has no member named ‘device’
make[1]: *** [ffmpeg2theora-ffmpeg2theora.o] Error 1
make[1]: Leaving directory `/home/kc/ffmpeg2theora-0.20'
make: *** [all-recursive] Error 1
If anyone knows what I'm missing, I'd appreciate any suggestions.
thanks
kc

Last edited by -kc-; 12-31-2007 at 10:57 AM.
 
Old 01-02-2008, 08:13 AM   #2
-kc-
LQ Newbie
 
Registered: Jun 2007
Distribution: Slackware
Posts: 21

Original Poster
Rep: Reputation: 15
I got some advices from the author, the latest linux binary has to be fixed, the problem is related to an api change in ffmpeg. If you do not need V4L, the simplest way right now would be to remove line 1232 in ffmpeg2theora.c:
Code:
formatParams->device = optarg;
I had also to disable pthreads in ffmpeg (editing get_ffmpeg_svn.sh) to get rid of all errors.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ffmpeg2theora issues(Running OpenSUSE 10.3 on PS3) LoneCanisLupus Linux - Software 2 12-23-2007 06:05 PM
ffmpeg2theora not encoding from v4l device slothpuck Linux - Software 0 12-30-2006 05:02 PM
ffmpeg2theora configure problem fw12 Linux - Software 1 11-08-2006 04:10 PM
make[1]: *** [ffmpeg2theora] Error 1 jeffman Linux - Software 8 01-27-2005 04:00 PM
ffmpeg pipe to ffmpeg2theora Phorem Linux - Software 1 01-11-2005 08:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration