New submission from Dave Rice <[email protected]>:

When using an input that has a -pix_fmt not supported by the ffv1 encoder (in
this case uyvy422), use a comparable -pix_fmt instead of defaulting to yuv420p.
I'd expect (or 'assume') ffv1 will be lossless when possible by default, adding
-pix_fmt yuv422p makes this happen.
Dave


ffmpeg -y -i input.mov -vcodec ffv1 -acodec copy outffv1.mov
FFmpeg version git-5fce60c, Copyright (c) 2000-2011 the FFmpeg developers
  built on Feb  2 2011 15:19:31 with gcc 4.2.1 (Apple Inc. build 5664)
  configuration: --enable-libopenjpeg --enable-gpl
  libavutil    50. 36. 0 / 50. 36. 0
  libavcore     0. 16. 1 /  0. 16. 1
  libavcodec   52.108. 0 / 52.108. 0
  libavformat  52. 94. 0 / 52. 94. 0
  libavdevice  52.  2. 3 / 52.  2. 3
  libavfilter   1. 74. 0 /  1. 74. 0
  libswscale    0. 12. 0 /  0. 12. 0

Seems stream 0 codec frame rate differs from container frame rate: 30000.00
(30000/1) -> 29.97 (30000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    creation_time   : 1970-01-01 00:00:00
    date            : Wednesday, February 25, 2009 11:24:51 PM
    date-eng        : Wednesday, February 25, 2009 11:24:51 PM
    encoder         : Lavf52.94.0
  Duration: 00:01:00.00, start: 0.000000, bitrate: 169220 kb/s
    Stream #0.0(eng): Video: rawvideo, uyvy422, 720x486, 167793 kb/s, PAR 59:64
DAR 295:216, 29.97 fps, 29.97 tbr, 30k tbn, 30k tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
    Stream #0.1(eng): Audio: pcm_s16be, 48000 Hz, 2 channels, s16, 1536 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
[buffer @ 0x100d018b0] w:720 h:486 pixfmt:uyvy422
[ffsink @ 0x100d01af0] auto-inserting filter 'auto-inserted scaler 0' between
the filter 'src' and the filter 'out'
[scale @ 0x100d01d20] w:720 h:486 fmt:uyvy422 -> w:720 h:486 fmt:yuv420p
flags:0xa0000004
[mov @ 0x101022c00] Warning, using MS style video codec tag, the file may be
unplayable!
Output #0, mov, to 'outffv1.mov':
  Metadata:
    major_brand     : qt  
    minor_version   : 512
    compatible_brands: qt  
    creation_time   : 1970-01-01 00:00:00
    date            : Wednesday, February 25, 2009 11:24:51 PM
    date-eng        : Wednesday, February 25, 2009 11:24:51 PM
    encoder         : Lavf52.94.0
    Stream #0.0(eng): Video: ffv1, yuv420p, 720x486 [PAR 59:64 DAR 295:216],
q=2-31, 200 kb/s, 30k tbn, 29.97 tbc
    Metadata:
      creation_time   : 1970-01-01 00:00:00
    Stream #0.1(eng): Audio: pcm_s16be, 48000 Hz, 2 channels, 1536 kb/s
    Metadata:
      creation_time   : 1970-01-01 00:00:00
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=   12 fps=  1 q=0.0 size=    2257kB time=0.38 bitrate=48149.8kbits/s

----------
messages: 13650
priority: normal
status: new
substatus: new
title: have ->ffv1 processes be lossless by default where possible (with 
uyvy422)
type: feature_request

________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/issue2597>
________________________________________________

Reply via email to