SDL render into a MFC window

Hi all,

I want to develop a media-player based on FFMPEG and SDL.
At present I can use ffmpeg to play the AV data (h264 and aac) with SDL to
show the decoded data.
Now my requiment is to put the SDL surface into a MFC window ( or widget)
because the mediaplayer is
only a part of the big application.
I know that SDL is not developed to do this kind of thing but now I have no
other choice. The media-player
is modified based on the ffplayer provied by FFMPEG and in that program SDL
is used as video displaying and audio
process.
I hope to get some help from this maillist about SDL+MFC development.
If someone can give me a sample code that
would be great. And as return I can give you the guide and code of
ffmplayer, which can support play local MP4 file. For
RTP player it is also possible after some modification.
Thanks.

Regards
Eric

To embed an SDL surface into another widget I use the SDL_WINDOWID environment
variable. Add this URL to your bookmarks:
http://www.libsdl.org/cgi/docwiki.cgi/. It has the docs for SDL and a few
addon SDL libraries,

Here is the URL to the SDL_WINDOWID environment variable (scroll down the
page): http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars

Oh, also I don’t use MFC. I’m mainly use Linux and FLTK.

AlvinOn Wednesday 05 November 2008 01:42:41 jianhua zhou wrote:

Hi all,

I want to develop a media-player based on FFMPEG and SDL.
At present I can use ffmpeg to play the AV data (h264 and aac) with SDL to
show the decoded data.
Now my requiment is to put the SDL surface into a MFC window ( or widget)
because the mediaplayer is
only a part of the big application.
I know that SDL is not developed to do this kind of thing but now I have no
other choice. The media-player
is modified based on the ffplayer provied by FFMPEG and in that program SDL
is used as video displaying and audio
process.
I hope to get some help from this maillist about SDL+MFC development.
If someone can give me a sample code that
would be great. And as return I can give you the guide and code of
ffmplayer, which can support play local MP4 file. For
RTP player it is also possible after some modification.
Thanks.

Regards
Eric

That’s not going to work under 1.3 when we’ve got multiple windows. Does anyone know how it’s going to be managed then?From: alvinbeach@gmail.com (Alvin Beach)
Subject: Re: [SDL] SDL render into a MFC window

To embed an SDL surface into another widget I use the SDL_WINDOWID environment
variable. Add this URL to your bookmarks:
http://www.libsdl.org/cgi/docwiki.cgi/. It has the docs for SDL and a few
addon SDL libraries,

Here is the URL to the SDL_WINDOWID environment variable (scroll down the
page): http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars

Hi Alvin,

Thanks for your idea and I will have a try.

Regards,
Eric

2008/11/5 Alvin > On Wednesday 05 November 2008 01:42:41 jianhua zhou wrote:

Hi all,

I want to develop a media-player based on FFMPEG and SDL.
At present I can use ffmpeg to play the AV data (h264 and aac) with SDL
to
show the decoded data.
Now my requiment is to put the SDL surface into a MFC window ( or widget)
because the mediaplayer is
only a part of the big application.
I know that SDL is not developed to do this kind of thing but now I have
no
other choice. The media-player
is modified based on the ffplayer provied by FFMPEG and in that program
SDL
is used as video displaying and audio
process.
I hope to get some help from this maillist about SDL+MFC development.
If someone can give me a sample code that
would be great. And as return I can give you the guide and code of
ffmplayer, which can support play local MP4 file. For
RTP player it is also possible after some modification.
Thanks.

Regards
Eric

To embed an SDL surface into another widget I use the SDL_WINDOWID
environment
variable. Add this URL to your bookmarks:
http://www.libsdl.org/cgi/docwiki.cgi/. It has the docs for SDL and a
few
addon SDL libraries,

Here is the URL to the SDL_WINDOWID environment variable (scroll down the
page): http://www.libsdl.org/cgi/docwiki.cgi/SDL_envvars

Oh, also I don’t use MFC. I’m mainly use Linux and FLTK.

Alvin


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org