LinuxQuestions.org
Review your favorite Linux distribution.
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 05-07-2005, 09:02 AM   #1
freebies
LQ Newbie
 
Registered: Feb 2005
Posts: 27

Rep: Reputation: 15
cant compile transcode


hello,

i've insdtalled ffmpeg --enable-shared (/usr/local/lib/ffmpeg, /usr/local/includes)

and now cannot compile transcode:

./configure --disable-lame --disable-libdvdread --with-ffmpeg-libs-includes=/usr/local --with-ffmpeg-libs-libs=/usr/local

those paths to ffmpeg -- seem configure automatically ads /lib & /include after the path (but i tried with them too -no success)

then i do "make"

and get this error:

------------------------
gcc -DHAVE_CONFIG_H -I. -I. -I.. -D_REENTRANT -DMOD_PATH=\"/usr/local/lib/transcode\" -I.. -I../src -I../libac3 -I../avilib -I/usr/local/include -I../libvo -I../libioaux -I../libxio -Wall -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -g -O2 -MT export_ffmpeg.lo -MD -MP -MF .deps/export_ffmpeg.Tpo -c export_ffmpeg.c -fPIC -DPIC -o .libs/export_ffmpeg.o
export_ffmpeg.c: In function `export_ffmpeg_init':
export_ffmpeg.c:677: structure has no member named `frame_rate'
export_ffmpeg.c:678: structure has no member named `frame_rate_base'
export_ffmpeg.c:681: structure has no member named `frame_rate'
export_ffmpeg.c:682: structure has no member named `frame_rate_base'
export_ffmpeg.c:685: structure has no member named `frame_rate'
export_ffmpeg.c:686: structure has no member named `frame_rate_base'
export_ffmpeg.c:689: structure has no member named `frame_rate'
export_ffmpeg.c:690: structure has no member named `frame_rate_base'
export_ffmpeg.c:693: structure has no member named `frame_rate'
export_ffmpeg.c:694: structure has no member named `frame_rate_base'
export_ffmpeg.c:697: structure has no member named `frame_rate'
export_ffmpeg.c:698: structure has no member named `frame_rate_base'
export_ffmpeg.c:701: structure has no member named `frame_rate'
export_ffmpeg.c:702: structure has no member named `frame_rate_base'
export_ffmpeg.c:705: structure has no member named `frame_rate'
export_ffmpeg.c:706: structure has no member named `frame_rate_base'
export_ffmpeg.c:712: structure has no member named `frame_rate'
export_ffmpeg.c:713: structure has no member named `frame_rate_base'
export_ffmpeg.c:717: structure has no member named `frame_rate'
export_ffmpeg.c:718: structure has no member named `frame_rate_base'
export_ffmpeg.c:735: structure has no member named `frame_rate'
export_ffmpeg.c:736: structure has no member named `frame_rate_base'
export_ffmpeg.c:739: structure has no member named `frame_rate'
export_ffmpeg.c:740: structure has no member named `frame_rate_base'
export_ffmpeg.c:743: structure has no member named `frame_rate'
export_ffmpeg.c:744: structure has no member named `frame_rate_base'
export_ffmpeg.c:747: structure has no member named `frame_rate'
export_ffmpeg.c:748: structure has no member named `frame_rate_base'
export_ffmpeg.c:751: structure has no member named `frame_rate'
export_ffmpeg.c:752: structure has no member named `frame_rate_base'
export_ffmpeg.c:755: structure has no member named `frame_rate'
export_ffmpeg.c:756: structure has no member named `frame_rate_base'
export_ffmpeg.c:759: structure has no member named `frame_rate'
export_ffmpeg.c:760: structure has no member named `frame_rate_base'
export_ffmpeg.c:763: structure has no member named `frame_rate'
export_ffmpeg.c:764: structure has no member named `frame_rate_base'
make[2]: *** [export_ffmpeg.lo] Error 1
make[2]: Leaving directory `/root/vid/transcode-0.6.14/export'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/vid/transcode-0.6.14'
make: *** [all] Error 2
------------------


any ideas ???

thank you
 
Old 05-07-2005, 03:24 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
try putting the full path to those ffmpeg includes and libs like you have at the top of your post
(just a thought)

strange thing is the gcc command doesn't seem to be linking to any libs and the header directory /usr/local/includes is in there (-I) so it might just be some weird gcc version incompatability thing with the source code.

seems like if it wasn't finding a header file it would say file not found or whatever

ffmpeg.c does contain a struct ffmpeg with AVCodecContext *c; then
c->frame_rate = rate;
c->frame_rate_base = 1;

so if the transcode code creates a ffmpeg object that object should pick up these members from the ffmpeg headers

and ffmpeg.h has struct ffmpeg and
#ifdef HAVE_FFMPEG
#include <avcodec.h>
#endif

this is with <*.h> and not "*.h"
so check if this file avcodec.h is in /usr/local/include or /usr/include or what
possibly make a link to it if it's not in /usr/local/include like the other one or make a link to the /usr/local/include one in /usr/include or something and see if they can find each other


Last edited by foo_bar_foo; 05-07-2005 at 03:50 PM.
 
Old 05-18-2005, 12:50 PM   #3
Nitrox
Member
 
Registered: Aug 2004
Location: Detroit.
Distribution: Slack 12.1 - Vector (exp)
Posts: 51

Rep: Reputation: 15
Did you ever find a solution to this??

Same problem here, tried everything I can think of.
 
Old 06-01-2005, 11:11 AM   #4
jhcatch22
LQ Newbie
 
Registered: Apr 2004
Location: Manitoba
Distribution: Mandrake 9.2 & 9.1
Posts: 12

Rep: Reputation: 0
One thing I noticed when I ran into this problem is that the current CVS version (as of the time of this writing) of ffmpeg has an avcodec.h file that has a different structure definition than older versions. The structure in question is AVCodecContext which doesn't have the member variables "frame_rate" and "frame_rate_base". Older versions (non CVS versions) of ffmpeg have the proper member variables in this structure. Note however, when I tried using an older non CVS version I ran into a compiler error.... this was last night and I have yet to resolve my secondary issue.

You might have better luck, so why don't you try installing ffmpeg-0.4.9-pre1 overtop of your other version of ffmpeg that you previously installed. Let me know if it works out for you.

jh
 
Old 06-25-2005, 12:10 AM   #5
shevegen
Member
 
Registered: May 2004
Distribution: Slackware / Debian
Posts: 90

Rep: Reputation: 15
Oh well, i ran into this problem too and havent found a solution yet.

My Libs and headers are stored in one dir, and this dir has symlinks which point at the proper location.

I wonder why there is a need to call --with-ffmpeg-libs-includes=


Hopefully one day I will solve this problem, I remember quite some months ago
on debian i managed to compile transcode without a problem.... *sigh*

export_ffmpeg.c: In function `export_ffmpeg_init':

Last edited by shevegen; 06-25-2005 at 12:11 AM.
 
Old 07-01-2005, 10:14 AM   #6
allyourbase
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
export_ffmpeg.c:759: error: structure has no member named `frame_rate'
export_ffmpeg.c:760: error: structure has no member named `frame_rate_base'
export_ffmpeg.c:763: error: structure has no member named `frame_rate'
export_ffmpeg.c:764: error: structure has no member named `frame_rate_base'
make[2]: *** [export_ffmpeg.lo] Error 1
make[2]: Leaving directory `/home/fescue/src/transcode-0.6.14/export'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/fescue/src/transcode-0.6.14'
make: *** [all] Error 2


Has anyone ever found a way around this? I have tried old and new verions of ffmpeg, configure with and without

--with-ffmpeg-libs-includes=/usr/local --with-ffmpeg-libs-libs=/usr/local

still no joy

help!
ayb
 
Old 07-01-2005, 10:50 AM   #7
zapoteco
LQ Newbie
 
Registered: Jul 2005
Posts: 1

Rep: Reputation: 0
I have the same problem, solved.

i think is a problem with the version of libavcodec(ffmpeg), i solve adding:

1819
1820 int frame_rate;
1821 int frame_rate_base;



to avcodec.h, in that line number
 
Old 07-01-2005, 01:22 PM   #8
allyourbase
LQ Newbie
 
Registered: Oct 2004
Posts: 3

Rep: Reputation: 0
ok not sure if I got you correctly or not, you are saying that I should add these two lines

int frame_rate;
int frame_rate_base;

at line numbers 1820 and 1821 of avcodec.h in the ffmpeg source?

then make clean, and reconfigure, rebuild, and reinstall ffmpeg.
then,
make clean transcode and reconfigure, and rebuild.

right?

here is what I added in bold at those line numbers, seems wrong to me but I know nothing about coding.

Anyway I tried what I defined above and still get the same errors compiling transcode

thanks
ayb



/**
* AVOption.
*/
typedef struct AVOption {
/** options' name */
const char *name; /* if name is NULL, it indicates a link to next */
/** short English text help or const struct AVOption* subpointer */
const char *help; // const struct AVOption* sub;
int frame_rate;
int frame_rate_base;

/** offset to context structure where the parsed value should be stored */
int offset;
/** options' type */
int type;
#define FF_OPT_TYPE_BOOL 1 ///< boolean - true,1,on (or simply presence)
#define FF_OPT_TYPE_DOUBLE 2 ///< double
#define FF_OPT_TYPE_INT 3 ///< integer
#define FF_OPT_TYPE_STRING 4 ///< string (finished with \0)
#define FF_OPT_TYPE_MASK 0x1f ///< mask for types - upper bits are various flags
//#define FF_OPT_TYPE_EXPERT 0x20 // flag for expert option
#define FF_OPT_TYPE_FLAG (FF_OPT_TYPE_BOOL | 0x40)
#define FF_OPT_TYPE_RCOVERRIDE (FF_OPT_TYPE_STRING | 0x80)
/** min value (min == max -> no limits) */
double min;
/** maximum value for double/int */
double max;
/** default boo [0,1]l/double/int value */
double defval;
/**
* default string value (with optional semicolon delimited extra option-list
* i.e. option1;option2;option3
* defval might select other then first argument as default
*/
const char *defstr;
#define FF_OPT_MAX_DEPTH 10
} AVOption;
 
Old 10-05-2005, 09:51 AM   #9
Garp
Member
 
Registered: Jul 2003
Location: Oahu, Hawaii, USA
Distribution: Ubuntu, Debian, RHES
Posts: 57

Rep: Reputation: 15
Anyone had any joys with this yet? i'm just bashing my head against it now with a Gentoo box.
 
Old 10-05-2005, 11:58 AM   #10
Nitrox
Member
 
Registered: Aug 2004
Location: Detroit.
Distribution: Slack 12.1 - Vector (exp)
Posts: 51

Rep: Reputation: 15
I gave up. I just decided to use mencoder.
I usually dont quit til I get something working..
But after the feedback I got, mencoder works better
for my needs anyway.

GL to ya.
 
Old 12-18-2005, 04:55 AM   #11
bturner01
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
Wink avcodec.h

The mod to avcodec.h seems to have worked, at least transcode is now compiling. Gentoo system sync'd this morning.
 
  


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
gentoo - transcode compile with nasm support anus Linux - Software 4 06-11-2005 11:27 PM
Transcode compile error asalford Linux - Software 3 12-17-2003 06:34 PM
nothing I compile (xine, transcode, avifile, etc) can see the installed xvid codec ontherun Linux - Software 0 12-17-2003 04:29 AM
Need help with transcode mascool Linux - General 3 10-16-2003 06:42 PM
transcode kev82 Linux - Software 4 08-30-2003 11:59 PM


All times are GMT -5. The time now is 06:10 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration