-
Notifications
You must be signed in to change notification settings - Fork 439
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video medias in magnum #327
Comments
Hi! Yes, this is possible if you write the decoding on your own and then pass the decoded frame data via an ImageView to some texture. More integrated support for en/decoding video with ffmpeg is planned (audio as well, see mosra/magnum-plugins#55), but at the moment nothing prevents you from doing the decoding directly. IIRC there are also some OpenGL extensions and ffmpeg APIs that should allow you to do the decoding on the GPU and pass the decoded frames directly, without extra copies. |
Are there any exemples I can inspire myself from? |
Ah okay, sorry for assuming you already know all this :) Hopefully this will give you something to start from: I don't have any ready-made ffmpeg code for decoding frame data, unfortunately. When I was learning it myself (for the audio) I studied various code snippets scattered on the internet (but be aware that these are of varying quality and some of them make use of long-deprecated features). Then there's an example section in the ffmpeg documentation including a plain C video decoder, so maybe that helps? :) Once you get the raw frame data, pass them to the |
Ok that is a better explanation but I still need to understand all of the technical term. Maybe the results of my searches can be of any help to you. I will list all the great resources I found https://github.com/mpenkov/ffmpeg-tutorial |
Not sure what's the question here? :) I do know my way around ffmpeg, I just don't have any example code with ffmpeg+magnum for you. From the links, I think this is the one you're looking for. |
I have found an App which makes use of ImGui and FFMPEG pushing videos in OpenGL with the source code. I'm trying to gather the whole information that I need before starting my project. The part I wanted to understand is the ImGui and FFMPEG but it was not easy to find something uncomplicated until today. Now the part with ImGui+FFMPEG is covered since Magnum is also integrating ImGui. What is remaining now is to create a basic prototype With Magnum, Imgui and take the part from the other project and try to push the FFMPEG in Magnum,ImGui. I hope this will not be a pain in the butt. |
Anything left to be done here? Otherwise I'd suggest to close this issue. For general questions, discussion and asking for help please use the Gitter channel instead (you can log in with your GitHub account), issues are more suited for feature requests or bug reports -- and I'm trying to be nice to the almost 200 people watching the repository, since each of them gets an e-mail notification for every comment ;) |
Yes you can close this ticket. Let us know when video support is on its way. |
Greetings to all!
I wanted to know if there is a way to render ffmpeg decoded frame inside Magnum or if it is possible to display video file like in a browser simply.
Thanx
The text was updated successfully, but these errors were encountered: