[FFmpeg-devel] x11 output device for libavdevice

Paul B Mahol onemda at gmail.com
Mon Apr 15 23:09:49 CEST 2013


On 4/15/13, Moguillansky, Jeff <Jeff.Moguillansky at am.sony.com> wrote:
> Hi Paul,
> are you referring to this code in sdl.c for querying the formats:
>
>
> } sdl_overlay_pix_fmt_map[] = {
>     { AV_PIX_FMT_YUV420P, SDL_IYUV_OVERLAY },
>     { AV_PIX_FMT_YUYV422, SDL_YUY2_OVERLAY },
>     { AV_PIX_FMT_UYVY422, SDL_UYVY_OVERLAY },
>     { AV_PIX_FMT_NONE,    0                },
> };
>
> ...
>
>  for (i = 0; sdl_overlay_pix_fmt_map[i].pix_fmt != AV_PIX_FMT_NONE; i++) {
>         if (sdl_overlay_pix_fmt_map[i].pix_fmt == encctx->pix_fmt) {
>             sdl->overlay_fmt = sdl_overlay_pix_fmt_map[i].overlay_fmt;
>             break;
>         }
>     }
>
> Are there sample videos that I can use for testing with these formats?

There is Xv query function which returns supported formats by Xv.
(it could support more than yuv420p/I420 like BGRA)

See xv code that is in mpv/mplayer... (This is second time I mention this)

For testing you just set -pix_fmt that is equivalent of Xv one and
swscale/ffmpeg do
conversion for you - no need for special files.

>
> Thanks,
> Jeff
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list