Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Playing a Video

  • You cannot reply to this topic
4 replies to this topic

#1 dawoodr   Members   -  Reputation: 338

Like
0Likes
Like

Posted Today, 07:22 AM

Hello!

 

I have an application that I have made in Visual Studio 2013 using c++ and DirectX. What I want to do is when you start the application the application should not run immediatly, instead a video should play that is around 10 seconds long and after that the application starts running. So basically what I want to do is just to play a simple video nothing more. How do I do that? Note that I want the video to play in fullscreen mode, not in a window!

 

Regards!



Sponsor:

#2 Gooey   Members   -  Reputation: 451

Like
0Likes
Like

Posted Today, 09:11 AM

Use ffmpeg http://www.ffmpeg.org/

and here is a tutorial although i havent read it but seems to display a video with opengl

http://blog.tomaka17.com/2012/03/libavcodeclibavformat-tutorial/



#3 braindigitalis   Crossbones+   -  Reputation: 2859

Like
0Likes
Like

Posted Today, 09:19 AM

If you're already using DirectX, look at DirectShow. Here is some example code for how to play an avi file. It can play whatever formats you have codecs for installed on the PC.

If you are using some obscure format, your installer would have to install the codec, so stick to mpeg or avi formats which are pretty common.



#4 Fredericvo   Members   -  Reputation: 659

Like
0Likes
Like

Posted Today, 12:20 PM

Isn't Directshow deprecated now?

I think Media Foundation is the new way but I have not tried either yet tbh.



#5 braindigitalis   Crossbones+   -  Reputation: 2859

Like
0Likes
Like

Posted Today, 01:32 PM

Isn't Directshow deprecated now?

I think Media Foundation is the new way but I have not tried either yet tbh.

 

This is true, but that doesn't mean directshow will just stop working. You could use Windows media foundation,  but it's a lot more complex...







PARTNERS