Compile FFMPEG with SDL support for integrate in winform

For the developers that use FFmpeg in Windows software.

Compile FFMPEG with SDL support for integrate in winform

Postby plaguebreath » Thu Oct 13, 2011 6:24 pm

Basically I would like to know how to make ffmpeg work with SDL support and if anyone already did something similar to what I like to do. Basically I've a form with let's say a black texture that will be fill with SDL and then use FFMPEG for output a movie stream to SDL form. But I'm really a beginner so would like any help anyone can give me on compiling stuff, thank you all !
plaguebreath
 
Posts: 22
Joined: Wed Sep 14, 2011 6:45 pm

Re: Compile FFMPEG with SDL support for integrate in winform

Postby TheSHEEEP » Fri Oct 14, 2011 7:58 am

Maybe this tutorial will tell you what you need to know.
It does use SDL and ffmpeg ;)
TheSHEEEP
 
Posts: 34
Joined: Fri Sep 16, 2011 9:12 am
Location: Berlin

Re: Compile FFMPEG with SDL support for integrate in winform

Postby plaguebreath » Fri Oct 14, 2011 8:31 am

Ah I am reading dranger tutorial, my problem is I'm in need to build and compile ffmpeg for soing that stuff ^^
plaguebreath
 
Posts: 22
Joined: Wed Sep 14, 2011 6:45 pm

Re: Compile FFMPEG with SDL support for integrate in winform

Postby TheSHEEEP » Fri Oct 14, 2011 8:37 am

Hmm.. I'm pretty sure you can find some prebuilt ffmpeg libraries.

If you are on windows (which I guess since you're in this forum), you can get them from this very site, under "Builds".
TheSHEEEP
 
Posts: 34
Joined: Fri Sep 16, 2011 9:12 am
Location: Berlin

Re: Compile FFMPEG with SDL support for integrate in winform

Postby plaguebreath » Fri Oct 14, 2011 8:39 am

From my test but maybe I'm wrong the build here is not with SDL enabled, I'm wrong ?
plaguebreath
 
Posts: 22
Joined: Wed Sep 14, 2011 6:45 pm

Re: Compile FFMPEG with SDL support for integrate in winform

Postby TheSHEEEP » Fri Oct 14, 2011 8:50 am

FFmpeg does not natively support SDL. It is pure C code, using no external libraries like SDL.

It does not care what you do with the data you get from using it. If you want to use data you get from ffmpeg with SDL, you'll have to do it yourself :)

Which is very hard to do if you have no experience, but thankfully, that tutorial exists.
Last edited by TheSHEEEP on Fri Oct 14, 2011 9:09 am, edited 1 time in total.
TheSHEEEP
 
Posts: 34
Joined: Fri Sep 16, 2011 9:12 am
Location: Berlin

Re: Compile FFMPEG with SDL support for integrate in winform

Postby plaguebreath » Fri Oct 14, 2011 8:56 am

On the documentation on FFMPEG site it state under
16. Output Devices

16.3 sdl

SDL (Simple Directmedia Layer) output device.

This output devices allows to show a video stream in an SDL window. Only one SDL window is allowed per application, so you can have only one instance of this output device in an application.

To enable this output device you need libsdl installed on your system when configuring your build.

For more information about SDL, check: http://www.libsdl.org/

So my question is, how to build it with SDL support ? Offcurse I will need to incorporate SDL inside my C# project and use the output from ffmpeg with it.
plaguebreath
 
Posts: 22
Joined: Wed Sep 14, 2011 6:45 pm

Re: Compile FFMPEG with SDL support for integrate in winform

Postby TheSHEEEP » Fri Oct 14, 2011 9:14 am

Oh, that's nice. Didn't know ffmpeg supported some output devices directly.
But since I have no idea about SDL, all I can help you with is that tutorial. Sry :)
TheSHEEEP
 
Posts: 34
Joined: Fri Sep 16, 2011 9:12 am
Location: Berlin

Re: Compile FFMPEG with SDL support for integrate in winform

Postby plaguebreath » Fri Oct 14, 2011 9:18 am

Heheeh never mind, I really read a lot about but not able to achieve it :(
plaguebreath
 
Posts: 22
Joined: Wed Sep 14, 2011 6:45 pm

Re: Compile FFMPEG with SDL support for integrate in winform

Postby Vladimir » Fri Oct 14, 2011 9:40 am

First of all you should study FFmpeg sources to find where and how it uses SDL. It is very possible, that it won't satisfy you.

Then, if you find this SDL usage suiting your needs
1. Download and install MinGW.

2. Download and build with your MinGW installation all needed libraries (listed on the "Builds" page under "Current Zeranoe FFmpeg Builds External Libraries"). Probably, you won't need all of them, so, I think, it is safe to skip some. Missing libraries cause just missing codecs and muxers/demuxers in the FFmpeg build.

3. Download and build the SDL with your MinGW installation.

4. Build FFmpeg with your MinGW installation. To find switches for its configure script, you can search this forum and the main site, they are listed somewhere.
Also carefully study the configure output to find out if you're missing something.
Vladimir
 
Posts: 29
Joined: Tue Sep 27, 2011 1:15 pm

Next

Return to Using FFmpeg In Windows Software

Who is online

Users browsing this forum: No registered users and 2 guests