[MPlayer-users] Re: Telecine output - needed for NTSC DVD encoding

Bruno nc41530a at vizzavi.pt
Tue Mar 9 17:56:06 CET 2004


On Tue, 9 Mar 2004 16:08:44 +0100, Tobias Diedrich <ranma at gmx.at> wrote:

>
> Well, the real problem with this is, that mencoder and mplayer can not
> properly handle a video filter chain that outputs more frames than it
> was fed.
> I remember now, that when I wrote softpulldown I also patched
> vo_yuv4mpeg so that it will output the increases framerate and used
> mplayer and a stream.yuv pipe to get it working.
> (See http://www.sim.uni-hannover.de/~td/smdiff.html)
>
> Maybe it would be easier to teach libavcodec to insert the right field
> flags for 24000/1001 fps video.
>
> So, to really make softpulldown useful for your case, apply the
> following patch
>
> ------cut-----------
> Index: libvo/vo_yuv4mpeg.c
> ===================================================================
> RCS file: /cvsroot/mplayer/main/libvo/vo_yuv4mpeg.c,v
> retrieving revision 1.15
> diff -u -r1.15 vo_yuv4mpeg.c
> --- libvo/vo_yuv4mpeg.c	2 Sep 2003 17:40:41 -0000	1.15
> +++ libvo/vo_yuv4mpeg.c	9 Mar 2004 14:21:27 -0000
> @@ -275,6 +275,10 @@
>
>  static void flip_page (void)
>  {
> +}
> +
> +static void do_flip_page (void)
> +{
>  	uint8_t *upper_y, *upper_u, *upper_v, *rgb_buffer_lower;
>  	int rgb_stride, uv_stride, field_height;
>  	unsigned int i, low_ofs;
> @@ -383,6 +387,7 @@
>  			}
>  			break;
>  	}
> +	do_flip_page();
>  	return 0;
>  }
> -----------cut-----------
>
> And then use:
>
> mkfifo stream.yuv
> mplayer -nosound -fps 30000/1001 -vo yuv4mpeg -vf softpulldown dvd://1
> mencoder -ovc lavc -of rawvideo -o output.m2v \
>          -lavcopts vcodec=mpeg2video:ildct:vbitrate=5000 stream.yuv
>
> (BTW: To use -of rawvideo you need to update to todays CVS version.
> Alternatively you can use -of mpeg).
>

Tobias,

Some more testing and Richard's help were enough :)

Read it here: http://article.gmane.org/gmane.comp.video.mplayer.user/27180

Basically my problem was that by using the denoiser in the -include file 
and softpulldown in the command line the denoiser was loading first. 
Lesson learned :)

Thanks anyway.

Bruno




More information about the MPlayer-users mailing list