From: Limin Wang To: ffmpeg-devel@mplayerhq.hu Reply-To: FFmpeg development discussions and patches Subject: [Ffmpeg-devel] [PATCH] let ffplay can play more pixel format Date: Wed, 14 Feb 2007 19:13:45 +0800 Sender: ffmpeg-devel-bounces@mplayerhq.hu Organization: GNU/Debian Linux User-Agent: Mutt/1.5.12 (2006-07-20) Hi there, It's very useful to preview the raw video by ffplay I think. The patch will support ffplay to play yuv422p, yuv444p, etc instead of yuv420 only. Please review it. * How to test it: lmwang@laptop:~/yuvad/open/h264/x264$ ./x264 --progress --frames 100 -o /tmp/foremean_cif.h264 /home/lmwang/download/test_sequence/foreman_cif.yuv 352x288 lmwang@laptop:~/yuvad/open/h264/ffmpeg$ ./ffmpeg -i /tmp/foreman_cif.h264 -pix_fmt yuv422p /tmp/2.yuv lmwang@laptop:~/yuvad/open/h264/ffmpeg$ ./ffplay -x 352 -y 288 -pix_fmt yuv422p /tmp/2.yuv In addition, how about to add -pix_fmt help option for ffmpeg and ffplay? It's very crazy to find out what's the pixel format name from the code. Thanks, Limin