[MPlayer-dev-eng] [PATCH] Fix yuv4mpeg output, remove spurious first frame.
Glen Nakamura
glen at imodulo.com
Fri Jun 20 18:42:38 CEST 2003
> "-vo yuv4mpeg" currently outputs a spurious all-zero (i.e. fully
> saturated green - *ugly*) first frame. This patch gets rid of this. Now
> "-ss <some time> -frames 13" for example will give you exactly 13 frames
> in the stream.yuv file.
the blank frames have helped me with a/v sync in the past. e.g. i wouldn't
have to specify an offset when multiplexing the a/v streams.
but, i didn't like them being green so i use the following patch
to make them black...
- glen
diff -Nru3p MPlayer-0.90.orig/libvo/vo_yuv4mpeg.c MPlayer-0.90/libvo/vo_yuv4mpeg.c
--- MPlayer-0.90.orig/libvo/vo_yuv4mpeg.c 2002-12-14 17:12:40.000000000 +0000
+++ MPlayer-0.90/libvo/vo_yuv4mpeg.c 2002-12-14 17:12:40.000000000 +0000
@@ -126,6 +126,8 @@ static uint32_t config(uint32_t width, u
image_y = image;
image_u = image_y + image_width * image_height;
image_v = image_u + image_width * image_height / 4;
+ memset(image_y, 16, image_width * image_height);
+ memset(image_u, 128, image_width * image_height / 2);
// This isn't right.
// But it should work as long as the file isn't interlaced
More information about the MPlayer-dev-eng
mailing list