id,summary,reporter,owner,description,type,status,priority,component,version,resolution,keywords,cc,blockedby,blocking,reproduced,analyzed
2190,yuv4mpegpipe does not preserve interlaced settings,ulatekh,,"Summary of the bug:

I first noticed this in ffmpeg 0.10.6 from the Fedora Core 17 yum repos, but I reproduced it with the latest version from git too.

I'm trying to package a raw YUV video file in some sort of container so that kdenlive will accept it.  The video is interlaced (miniDV camcorder source).  But every attempt to package it produces a file that says it's progressive video!

How to reproduce:

""head -1 clip.yuv"" outputs ""YUV4MPEG2 W720 H480 F30000:1001 Ib A10:11 C411"" -- notice the bottom-field-first interlacing.  All the lossless codecs I tried (huffyuv, ffvhuff, ffv1, and even rawvideo) produced progressive output.

""ffmpeg -i clip.yuv -vcodec huffyuv clip.avi"" followed by ""ffmpeg -i clip.avi -vcodec rawvideo -f yuv4mpegpipe - | head -1"" outputs ""YUV4MPEG2 W720 H480 F30000:1001 Ip A10:11 C422 XYSCSS=422""

""ffmpeg -i clip.yuv -vcodec ffvhuff clip.avi"" followed by ""ffmpeg -i clip.avi -vcodec rawvideo -f yuv4mpegpipe - | head -1"" outputs ""YUV4MPEG2 W720 H480 F30000:1001 Ip A10:11 C422 XYSCSS=422""

""ffmpeg -i clip.yuv -vcodec ffv1 clip.avi"" followed by ""ffmpeg -i clip.avi -vcodec rawvideo -f yuv4mpegpipe - | head -1"" outputs ""YUV4MPEG2 W720 H480 F30000:1001 Ip A10:11 C411 XYSCSS=411""

""ffmpeg -i clip.yuv -vcodec rawvideo clip.avi"" followed by ""ffmpeg -i clip.avi -vcodec rawvideo -f yuv4mpegpipe - | head -1"" outputs ""YUV4MPEG2 W720 H480 F30000:1001 Ip A10:11 C411 XYSCSS=411""

Here's the header from ffmpeg when it's run:

ffmpeg version 1.1.git Copyright (c) 2000-2013 the FFmpeg developers
  built on Jan 25 2013 19:23:47 with gcc 4.7.2 (GCC) 20120921 (Red Hat 4.7.2-2)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib --mandir=/usr/share/man --arch=athlon --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=athlon -fasynchronous-unwind-tables' --enable-bzlib --disable-crystalhd --enable-gnutls --enable-libass --enable-libcdio --enable-libcelt --enable-libdc1394 --disable-indev=jack --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-openal --enable-libopenjpeg --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libxvid --enable-x11grab --enable-avfilter --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib --cpu=athlon --enable-runtime-cpudetect
  libavutil      52. 16.100 / 52. 16.100
  libavcodec     54. 91.100 / 54. 91.100
  libavformat    54. 61.104 / 54. 61.104
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 33.101 /  3. 33.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
",defect,open,normal,avformat,git-master,,yuv4mpeg,,,,1,0
