What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Coding some c. (FFmpeg/libavcodec)

Coding some c. (FFmpeg/libavcodec)
Author: Message:
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. Coding some c. (FFmpeg/libavcodec)
I'm trying to put in libavcodec but the compiler (gcc) is always saying "undefined reference to `avcodec_init'" or any other avcodec function :/

Everything compiles properly but it just comes to a stop when I call a libavcodec function.

Everything is set up properly I hope..

c code:
#include <stdio.h>
#include <libavcodec/avcodec.h>
#include <libavformat/avformat.h>

int main(){
// example code .. but i hope you know what i mean
avcodec_init();
av_register_all();
}

If anyone can help me that would be great :happy:

My makefile has the -lavcodec and -lavformat in it.
I searched Google for two hours...

This post was edited on 02-04-2009 at 07:44 AM by roflmao456.
[quote]
Ultimatess6
: What a noob mod
02-04-2009 07:41 AM
Profile PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: Coding some c. (FFmpeg/libavcodec)
ok, i managed to compile it successfully and now it won't load at all o_o

(PSP btw.)
[quote]
Ultimatess6
: What a noob mod
02-06-2009 01:36 AM
Profile PM Web Find Quote Report
TheSteve
Full Member
***

Avatar
The Man from Japan

Posts: 179
Reputation: 23
40 / Male / Flag
Joined: Aug 2005
RE: Coding some c. (FFmpeg/libavcodec)
Have you compiled FFmpeg for the PSP's processor? (rather than the typical intel processor)
02-09-2009 01:03 AM
Profile PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: Coding some c. (FFmpeg/libavcodec)
quote:
Originally posted by TheSteve
Have you compiled FFmpeg for the PSP's processor? (rather than the typical intel processor)
I don't know, I just svn download, ./configure --enable-shared, make :P

I looked up the error that the PSP was spitting out and it was "Library not found" o_O
[quote]
Ultimatess6
: What a noob mod
02-09-2009 05:12 AM
Profile PM Web Find Quote Report
TheSteve
Full Member
***

Avatar
The Man from Japan

Posts: 179
Reputation: 23
40 / Male / Flag
Joined: Aug 2005
RE: Coding some c. (FFmpeg/libavcodec)
For it to work on the PSP, you need to compile the library in a machine language that the PSP understands.  Which means you'll need to either need to figure out how hack the package in to use the psptoolchain, or find someone else who's already ported the library to the PSP.

If it's a static library which will be linked in to a PSP executable, it might be possible to use the MIPS instruction set option for configure, but it may not work.

If it's a shared library, then you're going to have to do some work to convert it to a prx library.
02-09-2009 03:01 PM
Profile PM Web Find Quote Report
roflmao456
Skinning Contest Winner
****

Avatar

Posts: 955
Reputation: 24
30 / Male / Flag
Joined: Nov 2006
Status: Away
O.P. RE: Coding some c. (FFmpeg/libavcodec)
i see. I'll try and find a port. Thanks
[quote]
Ultimatess6
: What a noob mod
02-12-2009 03:18 AM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On