cplusplus.com
C++ : Forum : General C++ Programming : [c/c++] video library...
 
cplusplus.com
Information
Documentation
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs


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

mamo139 (17)
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
chrisname (4916)
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
guestgulkan (2375)
VLC is an alternative for playing video.
mamo139 (17)
what is vlc??
guestgulkan (2375)
VideoLanClient
helios (9402)
There's a surprisingly large amount of information on how to use libav* with SDL. Very interesting stuff.
mamo139 (17)
ok, i'll try... thanks!!

ps: i didnt understand about vlc, were you suggesting me to look at vlc source code?
helios (9402)
VLC (the player) uses a framework called libVLC.
mamo139 (17)
ok, i'll look at this too.
thanks!
helios (9402)
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)
george135 (268)
On Windows, just use DirectShow or MM apis.
Dozens of samples on MSDN (SDK)
chrisname (4916)
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.
mamo139 (17)
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.