[FFmpeg-user] flag YUV input as interlaced

Mark Himsley mark at mdsh.com
Sat May 14 19:20:02 CEST 2011


On 14/05/2011 10:26, Stefano Sabatini wrote:
> On date Thursday 2011-05-12 17:07:09 +0100, Mark Himsley encoded:
> [...]
>> Anyway...
>>
>> What I need is a way to flag rawvideo media when its used as an
>> input into ffmpeg. Anyone?
> 
> Mark, did you try with -top?

Hi Stefano,

Yes. Sorry, I should have said that -top was my first guess, but your
showinfo filter says the rawvideo file is flagged as progressive when I
have -top 1 in the input files settings.

./ffmpeg -f rawvideo -s 720x576 -r 25 -pix_fmt uyvy422 -top 1 -i
~/Videos/Clock10tone.uyvy422 -vf showinfo -vcodec dvvideo -pix_fmt
yuv420p ~/Videos/junk.mov
ffmpeg version git-N-29944-gc0b1cae, Copyright (c) 2000-2011 the FFmpeg
developers
  built on May 14 2011 17:01:50 with gcc 4.5.2
  configuration: --prefix=/usr/local --enable-ffplay --enable-ffprobe
--enable-ffserver --enable-gpl --enable-nonfree --enable-pthreads
--enable-runtime-cpudetect --enable-libdirac --enable-libfaac
--enable-libgsm --enable-libmp3lame --enable-libopenjpeg
--enable-libschroedinger --enable-libspeex --enable-libtheora
--enable-libvorbis --enable-libxvid --enable-libx264 --enable-x11grab
  libavutil    51.  2. 1 / 51.  2. 1
  libavcodec   53.  5. 0 / 53.  5. 0
  libavformat  53.  0. 3 / 53.  0. 3
  libavdevice  53.  0. 0 / 53.  0. 0
  libavfilter   2.  5. 0 /  2.  5. 0
  libswscale    0. 14. 0 /  0. 14. 0
  libpostproc  51.  2. 0 / 51.  2. 0
[rawvideo @ 0x97f02c0] Estimating duration from bitrate, this may be
inaccurate
Input #0, rawvideo, from '/home/mdsh/Videos/Clock10tone.uyvy422':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0.0: Video: rawvideo, uyvy422, 720x576, 25 tbr, 25 tbn, 25 tbc
[buffer @ 0x97f0180] w:720 h:576 pixfmt:uyvy422 tb:1/1000000 sar:0/1
[showinfo @ 0x97dfe00] auto-inserting filter 'auto-inserted scaler 0'
between the filter 'src' and the filter 'Parsed filter 0 showinfo'
[scale @ 0x97e04a0] w:720 h:576 fmt:uyvy422 -> w:720 h:576 fmt:yuv420p
flags:0xa2000004
Output #0, mov, to '/home/mdsh/Videos/junk.mov':
  Metadata:
    encoder         : Lavf53.0.3
    Stream #0.0: Video: dvvideo, yuv420p, 720x576, q=2-31, 200 kb/s, 25
tbn, 25 tbc
Stream mapping:
  Stream #0.0 -> #0.0
Press [q] to stop encoding
[showinfo @ 0x97dfe00] n:0 pts:0 pts_time:0.000000 pos:0 fmt:yuv420p
sar:0/1 s:720x576 i:P iskey:1 type:? crc:154113476 plane_crc:[1658531253
4049777664 4049777664 0]
[showinfo @ 0x97dfe00] n:1 pts:40000 pts_time:0.040000 pos:829440
fmt:yuv420p sar:0/1 s:720x576 i:P iskey:1 type:? crc:154113476
plane_crc:[1658531253 4049777664 4049777664 0]
[...]
[showinfo @ 0x97dfe00] n:249 pts:9960000 pts_time:9.960000 pos:206530560
fmt:yuv420p sar:0/1 s:720x576 i:P iskey:1 type:? crc:154113476
plane_crc:[1658531253 4049777664 4049777664 0]
frame=  250 fps= 50 q=0.0 Lsize=   35158kB time=10.00 bitrate=28801.3kbits/s
video:35156kB audio:0kB global headers:0kB muxing overhead 0.004647%

-- 
Mark


More information about the ffmpeg-user mailing list