[FFmpeg-devel] FFplay on iPhone
Sun Apr 19 09:38:07 CEST 2009
I'm working with "ducngoc" from ffmpeg4iphone to get video output
working on the iPhone/iPod Touch. He made some changes,
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
make a SDL_Surface from that picture and displayed it on screen with
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?"
Perhaps an alternative to SDL_BlitSurface and SDL_Flip would correct
Thanks for your help!
More information about the ffmpeg-devel