[FFmpeg-devel] FFplay on iPhone

Jai Menon jmenon86
Sun Apr 19 09:43:41 CEST 2009


On Sun, Apr 19, 2009 at 1:08 PM, Yonas . <googelly.eyes at gmail.com> wrote:
> Howdy,
>
> I'm working with "ducngoc" from ffmpeg4iphone to get video output
> working on the iPhone/iPod Touch. He made some changes,
> http://pastebin.com/m72856e01
>
> which moves us from no video to bad quality/distorted output. The
> original problem was SDL error "YUV overlays are not supported in
> OpenGL mode" in alloc_picture().
>
> His comment about his modifications:
>
> "So I changed dst_pix_fmt from PIX_FMT_YUV420P to PIX_FMT_RGB24,
> called sws_scale to
> convert the src_frame into a RGB AVPicture. Then I used
> SDL_CreateRGBSurfaceFrom to
> make a SDL_Surface from that picture and displayed it on screen with
> the combination
> of SDL_DisplayFormat, SDL_BlitSurface and SDL_Flip.
>
> The result: now I got the video images, but the quality is terrible
> (bad color and
> the screen keeps blinking). Besides, the app crashes after playing for
> a few seconds.
> I'm not a computer graphics guy so it's a bit tough for me to figure
> out the reasons.
>
> Do you have a better approach to display a SDL_Surface on screen than using
> SDL_BlitSurface and SDL_Flip?"

Just get a pointer to the framebuffer and write directly, or is that impossible?

-- 
Regards,

Jai



More information about the ffmpeg-devel mailing list