I have an application exposing thousands of video files (mp4). I would like to embed a VLC media player, allowing the user to play movies, embedded on the form showing the movie items (on a flow panel).
This video show how to do it using Visual Basic and .NET https://www.youtube.com/watch?v=w9jCxmazVjw
Apparently, when installing VLC, COM objects are available in order to automate the player. Is it also possible to embed it on a VCL form?
I have no experience with COM objects in C++ Builder XE3.
Related
MPEG is a really nice format, specially because it really compress the file to unimaginable sizes. A 140Mb raw AVI is now only 4Mb and the quality is still very good. With the Animation Control Windows provides I can play only raw AVI but I would really like to play a MPEG instead, due to the the sizes of the video file.
Now, how would I do that with C++ and WINAPI? Do I have to use some ActiveX components? How do I make sure other users can run my application without being harassed about missing plug-ins/codecs/third-party programs? Can I use the Animation Control someway for displaying the MPEG video?
Thanks
I took a look at the MSDN documentation and it looks like you can not use the Animation Control to play MPEG video, you seem to have two choices:
1. DirectShow.
2 The newer Microsoft Media Foundation.
Both choices based on COM (and not ActiveX as I stated earlier).
As for making sure your users can run your application, see this page on Building DirectShow Applications which answers that questions for DirectShow. For Microsoft Media Foundation your users need to be running MS Vista or later.
i want to develop a windows application in c++ that could be draw multiple video streams that come from network in one window (like video conference applications).
in another words, i want to have one window and split this window into sections that each section show a video stream.(like what we see in video conference applications like oovoo or webex).
how i can start learning and witch subject important here i Google the net but can not find any article or example about this subject.
please guide me
thanks a lot
I did a similiar project, which shows 4 different videos in window. These videos were coming from network(TCP/IP) connection. I used VLC for encoding the videos. (Videos are in mp4 format.) Also I used QT for GUI design. Since QT has phonon framework after qt release 4.5, I guess you can use QT for both encoding videos and gui design.
You can check it here:
http://qt-project.org/doc/qt-4.8/phonon-overview.html
The WinRT API surface in Windows 8 seems to have the ability to load and save Playlists, and capture audio. What I'm looking for is somewhat simpler: does WinRT have the ability to play audio from a file? If not, what's the recommended API for native code (C++) to play audio from a file in a Windows 8 metro app?
If you're in a WWA, you want to use the HTML tag to play audio. In xaml, you want to use a MediaElement.
If you're using low level C++, you want to use the MediaFoundation APIs.
Does anyone have a working example of a video player built using Qt phonon? (in C++ )
See my related question here . I am unable to build one using Python.
A working example of a video player built using Qt phonon: Dragon Player
And here you find the Mplayer created with Phonen too, including all the sources: Phonon MPlayer. You need to login, then you can browse the source code by clicking on "Source" and then "Browse".
EDIT: Oh, and of course the Media Player Example in the Qt Assistant, you should have a look at this, too. It plays both audio and video.
I have written a Simple Video Player using QT. The soure of the player is also hardcoded for this example. See here
Most qt and kde video players these days(not vlc).
Looking for phonon reverse dependencies on ubuntu I find
amarok(music player with videos
support)
minitube
kmplayer
bangarang
dragonplayer
non video players
okular(documents with embeded videos)
web browsers w/html5 video I think
libqtwebkit4
libkonq5
ktorrent(I think torrent film previews)
gwenview(play videos in picture viewer?)
dolphin(file preview)
Im currently using wxMediaCtrl to play videos in my app. The api is unfortunately a little buggy, and doesn't playback all media types i need to support (e.g. wmv).
I am wondering if there is an alternative c++ api, that will allow me to do this. I am currently just concerned with supporting windows.
What do people normally use to embedd video in their apps? Also i need to be in control, i.e. tell the video, where to play in time, pause/stop, i dont need any shuttle controls, as i have my own.
Thanks in advance.
wxMediaControl uses DirectShow on Windows, it should be able to play wmv files. If you can play a media file with GraphStudio, you should be able to play it with wxMediaControl.
If not, you need to install the proper video codecs. Have you tried installing FFDShow?
You can try Video Control, and here is a sample on how you can play a video file.
If you want something without DirectShow, you can take a look at VLC ActiveX.
As a word of caution regarding the use of GPL plugins (FFDShow or VLC ActiveX) in non-GPL applications you should read this.
Qt uses Phonon for cross-platform media playback. On Windows Phonon utilizes DirectShow, so it can play anything Windows can (.wmv). It has all the capability you mentioned. It's also very easy to implement and use. I recommend highly.