Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
------------------
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 02:50 PM.
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.
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
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;
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.