[c/c++] video library...

hi everybody!!
i would like to write a program that can open, show and modify a video.
actually at the beginning it would be enough to me also beeing able to play the sound of the videos.
do you know if there is a library that can help me opening these formats FLV and MP4?

thanks a lot.
Marco
I believe SDL has an extension library.
http://www.gamedev.net/community/forums/topic.asp?topic_id=348801

Edit: as for modifying; I really don't know. But SDL will be able to play the video.
Last edited on
VLC is an alternative for playing video.
what is vlc??
VideoLanClient
There's a surprisingly large amount of information on how to use libav* with SDL. Very interesting stuff.
ok, i'll try... thanks!!

ps: i didnt understand about vlc, were you suggesting me to look at vlc source code?
VLC (the player) uses a framework called libVLC.
ok, i'll look at this too.
thanks!
For anyone who's interested, here's a complete example player that plays a video from beginning to end, using FFmpeg and SDL.
Requirements:
SDL
SDL_mixer
libav*
MinGW GCC 4.x (Windows only)
http://www.fileden.com/files/2008/6/22/1971683/FFmpeg_example.7z

Here's the libav* library:
http://www.fileden.com/files/2008/6/22/1971683/ffmpeg-0.5.tar.bz2
Configure with ./configure --enable-gpl --enable-nonfree --disable-ffmpeg --disable-ffplay --disable-ffserver --enable-postproc --enable-swscale --disable-network --disable-ipv6 --enable-memalign-hack --enable-debug --disable-stripping (--enable-memalign-hack is only necessary for MinGW)
On Windows, just use DirectShow or MM apis.
Dozens of samples on MSDN (SDK)
Why the hell would you bother when Helios just posted a cross-platform working solution to go along with the other cross-platform solutions; such as using libVLC?

I'm starting to agree with whoever it was that asked if you were a microsoft advertising AI... you seem to constantly post windows-only solutions... but this is the General (read: windows or (gasp!) some operating other than windows) forum, not the "windows programming" board. If you want to post your overt pro-microsoft rubbish, go there. Everyone else there pretty much uses or has used windows. They might even agree with you... I'm not trying to start a flame war but I think it's ridiculous and, forgive me, idiotic at best, to post a windows-only solution when several other, better, solutions have been posted.
calm down guys, please...

I did not specify the OS, so i think both windows and other platforms info are ok, and I really appreciate the info that helios and george135 posted...

so thank you helios, thank you george135, and thanks to all the others!

I will see which one is easier ;)

if anybody else has other methods or specifications please post them, they will be usefull as well.
Topic archived. No new replies allowed.