# HG changeset patch # User michael # Date 1077582675 0 # Node ID d8890a065727fe2865757c08217bcc4c6d8486d8 # Parent 1c268fb0503de6599cc88151634394680e92d18a vd_ffmpeg to set repeat-first-field patch by (Zoltan Hidvegi ) diff -r 1c268fb0503d -r d8890a065727 DOCS/man/en/mplayer.1 --- a/DOCS/man/en/mplayer.1 Mon Feb 23 21:12:06 2004 +0000 +++ b/DOCS/man/en/mplayer.1 Tue Feb 24 00:31:15 2004 +0000 @@ -3058,9 +3058,8 @@ Only the luma plane is used to find the frame breaks. If a field has no match, it is deinterlaced with simple linear approximation. -If the source is MPEG-2, libmpeg2 must be used for decoding (not -ffmpeg2!), and this must be the first filter to allow access to the -field-flags set by the MPEG-2 decoder. +If the source is MPEG-2, and this must be the first filter to allow +access to the field-flags set by the MPEG-2 decoder. Depending on the source mpeg, you may be fine ignoring this advice, as long as you do not see lots of "Bottom-first field" warnings. With no options it does normal inverse telecine, and should be used @@ -3130,8 +3129,7 @@ If you want to use the ivtc or detc filter on movies that are partly soft telecined, inserting this filter before them should make them more reliable. Currently only libmpeg2 exports the needed flags. -If used on material that does not set them or if using ffmpeg12, the -filter does nothing. +If used on material that does not set them, the filter does nothing. .TP .B telecine[=start] Apply 3:2 'telecine' process to increase framerate by 20%. diff -r 1c268fb0503d -r d8890a065727 libmpcodecs/vd_ffmpeg.c --- a/libmpcodecs/vd_ffmpeg.c Mon Feb 23 21:12:06 2004 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Tue Feb 24 00:31:15 2004 +0000 @@ -837,6 +837,7 @@ mpi->fields = MP_IMGFIELD_ORDERED; if(pic->interlaced_frame) mpi->fields |= MP_IMGFIELD_INTERLACED; if(pic->top_field_first ) mpi->fields |= MP_IMGFIELD_TOP_FIRST; + if(pic->repeat_pict == 1) mpi->fields |= MP_IMGFIELD_REPEAT_FIRST; #endif return mpi;