think tank forum

technology » VLC on linux

Chiken's avatar
15 years ago
link
Chiken
Don't Let Your Walls Down
anyone ever compiled VLC on linux before?

I'm trying to get VLC to work on my CentOS 5.3 install. normally it would be pretty easy i guess, just yum install vlc, buuuuuuut I'm without the luxury of an internet connection so I'm forced to find, dl, the compile all the dependencies.

Finally after 4 days of getting all the dependencies set up, I tried to install VLC today buuuut of course there was an error after going through the make process. heres the output:

ffmpeg.c: In function ‘LibavcodecCallback’:
ffmpeg.c:361: warning: assignment discards qualifiers from pointer target type
ffmpeg.c: At top level:
ffmpeg.c:457: error: ‘PIX_FMT_YUV422’ undeclared here (not in a function)
ffmpeg.c:466: error: ‘PIX_FMT_RGBA32’ undeclared here (not in a function)
make[6]: *** [libffmpeg_a-ffmpeg.o] Error 1
make[6]: Leaving directory `/usr/local/src/vlc-0.8.6c/modules/codec/ffmpeg'
make[5]: *** [all-modules] Error 1
make[5]: Leaving directory `/usr/local/src/vlc-0.8.6c/modules/codec/ffmpeg'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/usr/local/src/vlc-0.8.6c/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/usr/local/src/vlc-0.8.6c/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/vlc-0.8.6c/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/vlc-0.8.6c'
make: *** [all] Error 2

I've got no clue as to what this means or where to go to fix it. All I can assume is that ‘PIX_FMT_YUV422’ and ‘PIX_FMT_RGBA32’ are not in the ffmpeg.c file. Why would ffmpeg compile and install without an error, then the ./configure of VLC go off without a hitch? I'm stumped to say the least.
Carpetsmoker's avatar
15 years ago
link
Carpetsmoker
Martin
No missing header errors above this error? (i.e. This is the first error message you see)?
Chiken's avatar
15 years ago
link
Chiken
Don't Let Your Walls Down
those are the first error messages i see through the whole process, starting with all the dependencies.

a dev on the vlc forums said i'm getting the errors because i'm using the newest version of ffmpeg and such an old version of vlc.

now i just have to find a way to get qt4 installed on my box so i can use the newest version of vlc. the dl is over 200mb, a little to much for a 56k connection.
Chiken's avatar
15 years ago
link
Chiken
Don't Let Your Walls Down
ahha! while configuring 0.8.6i i get an error during the ./configure process

error: your ffmpeg installation is missing the img_resample() function.

i'm guessing that is what the PIX things go to!
Chiken's avatar
15 years ago
link
Chiken
Don't Let Your Walls Down
well think i found a fix, and that is to configure ffmpeg with amr support.

buuuuuut to do that, i have to add 1000+ lines of code back into the ffmpeg source. this is gonna be a fun day!
asemisldkfj's avatar
15 years ago
link
asemisldkfj
the law is no protection
this seems like more trouble than it is worth. isn't there a way with yum to like get a binary package to store on a usb drive or something? or even the patched source? or does it suck that much?
Chiken's avatar
15 years ago
link
Chiken
Don't Let Your Walls Down
i've pretty much given up on vlc. i tried 0.8.6i and it wants me to disable swscale in FFMPEG, but from what i can tell, there is no way to disable swscale in ffmpeg (or at least there is no option in ./configure --help)

i dled the latest version of xine and a gui for it. all it took to fix a similar error was going into vi, the line the error was on and /%s/PIX_FMT_RGBA32/PIX_FMT_RGB32

now i just need to figure out how to uninstall all the vlc crap :(

i guess what i can feel halfway happy about is the fact that i have just about every codec out there on my linux box now. there aint nothin i can't play or convert.
phi_'s avatar
15 years ago
link
phi_
... and let the Earth be silent after ye.
Why not just use mplayer?
Chiken's avatar
15 years ago
link
Chiken
Don't Let Your Walls Down
mplayer doesn't seem to be working very well for movies for some reason. it will play everything, but for dvd's, it will turn to a green screen halfway through and audio will be fine. for avi's it will throw an error (the same one) about every 15 minutes but playback will continue just fine. also for a couple of my avi files, it throws an error right at the beginning about it being encoded with an older divx format but will still play. so i guess the reason i don't use it for video playback is because well, it's kind of annoying.

im thinking it might be using an internal ffmpeg resource which would be older and possibly causing the errors. i dont remember but there may have been an option such as --enable-external-ffmpeg like with xine that i didn't use.

this was actually my first time setting all this up on a linux machine, it's kind of a mess but at least i've learned how to do it properly and it will be much more organized my next go around.

(still gonna try to get vlc to work for shits and giggles. need to find a version that uses qt3 instead of qt4).