Opened 12 years ago

Closed 12 years ago

#1517 closed defect (fixed)

Pixel format autoselection does not choose wisely for yuvj420p

Reported by: Carl Eugen Hoyos Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

If the input pixel format is yuvj420p, pixel format autoselection prefers yuv410p over yuv420p

$ ffmpeg -i fate-suite/svq3/Vertical400kbit.sorenson3.mov -vcodec ffv1 -an outffv1.avi
ffmpeg version N-42365-g36b2bd9 Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul  9 2012 14:02:18 with gcc 4.3.2
  configuration: --cc=/usr/local/gcc-4.3.2/bin/gcc --enable-gpl --enable-libopenjpeg --enable-libvorbis --enable-libspeex --enable-libmp3lame --enable-libtheora --extra-ldflags=-lm --enable-libvpx --enable-libxavs
  libavutil      51. 64.100 / 51. 64.100
  libavcodec     54. 33.100 / 54. 33.100
  libavformat    54. 15.102 / 54. 15.102
  libavdevice    54.  1.100 / 54.  1.100
  libavfilter     3.  1.100 /  3.  1.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x8fc73c0] max_analyze_duration 5000000 reached at 5000998
Guessed Channel Layout for  Input Stream #0.1 : mono
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'fate-suite/svq3/Vertical400kbit.sorenson3.mov':
  Metadata:
    creation_time   : 1931-02-13 09:49:02
    title           : Vertical Online SV3 Demo
    title-eng       : Vertical Online SV3 Demo
    artist          : Logan Kelsey
    artist-eng      : Logan Kelsey
    copyright       : © Vertical Online 2001
    copyright-eng   : © Vertical Online 2001
    encoder         : Sorenson Video 3
    encoder-eng     : Sorenson Video 3
  Duration: 00:00:43.57, start: 0.000000, bitrate: 580 kb/s
    Stream #0:0(eng): Video: svq3 (SVQ3 / 0x33515653), yuvj420p, 320x240, 391 kb/s, 30.02 fps, 30 tbr, 600 tbn, 600 tbc
    Metadata:
      creation_time   : 1931-02-13 09:49:02
      handler_name    : Apple Alias Data Handler
    Stream #0:1(eng): Audio: adpcm_ima_qt (ima4 / 0x34616D69), 44100 Hz, mono, s16, 176 kb/s
    Metadata:
      creation_time   : 1931-02-13 09:49:02
      handler_name    : Apple Alias Data Handler
[graph 0 input from stream 0:0 @ 0x8fce860] w:320 h:240 pixfmt:yuvj420p tb:1/600 fr:30/1 sar:0/1 sws_param:flags=2
[output stream 0:0 @ 0x8fce9a0] No opaque field provided
[auto-inserted scaler 0 @ 0x8fcedc0] w:320 h:240 fmt:yuvj420p sar:0/1 -> w:320 h:240 fmt:yuv410p sar:0/1 flags:0x4
Output #0, avi, to 'outffv1.avi':
  Metadata:
    encoder-eng     : Sorenson Video 3
    INAM            : Vertical Online SV3 Demo
    title-eng       : Vertical Online SV3 Demo
    IART            : Logan Kelsey
    artist-eng      : Logan Kelsey
    ICOP            : © Vertical Online 2001
    copyright-eng   : © Vertical Online 2001
    ISFT            : Lavf54.15.102
    Stream #0:0(eng): Video: ffv1 (FFV1 / 0x31564646), yuv410p, 320x240, q=2-31, 200 kb/s, 30 tbn, 30 tbc
    Metadata:
      creation_time   : 1931-02-13 09:49:02
      handler_name    : Apple Alias Data Handler
Stream mapping:
  Stream #0:0 -> #0:0 (svq3 -> ffv1)
Press [q] to stop, [?] for help
frame= 1308 fps=195 q=0.0 Lsize=   21446kB time=00:00:43.60 bitrate=4029.5kbits/s
video:21409kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.172619%

Change History (2)

comment:1 by Elon Musk, 12 years ago

Isn't this duplication of ticked #1426. (there are probably others too....)

comment:2 by Michael Niedermayer, 12 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.