Opened 3 years ago

Closed 3 years ago

#5271 closed defect (fixed)

avid dv100: wrong resolutions

Reported by: ami_stuff Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: avid mov dvvideo aspect
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

FFmpeg reports 1280x720 files as 960x720 and 1980x1080 as 1440x1080.

http://www.datafilehost.com/d/7da40874

C:\>ffmpeg -i 1280_720.mov out.avi
ffmpeg version N-78598-g98a0053 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --
enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-lib
x265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-d
ecklink --enable-zlib
  libavutil      55. 18.100 / 55. 18.100
  libavcodec     57. 24.103 / 57. 24.103
  libavformat    57. 25.101 / 57. 25.101
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 34.100 /  6. 34.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1280_720.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2016-02-25 00:26:10
    com.apple.quicktime.software: Sorenson Squeeze
    com.apple.quicktime.comment: Encoded by
  Duration: 00:00:01.52, start: 0.000000, bitrate: 48006 kb/s
    Stream #0:0(eng): Video: dvvideo (AVd1 / 0x31645641), yuv422p(tv), 960x720 [
SAR 1:1 DAR 4:3], 48000 kb/s, 25 fps, 25 tbr, 600 tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2016-02-25 00:26:10
      handler_name    : Procedura obs│ugi skr≤t≤w danych Apple
      encoder         : DV100  709
Output #0, avi, to 'out.avi':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    com.apple.quicktime.comment: Encoded by
    com.apple.quicktime.software: Sorenson Squeeze
    ISFT            : Lavf57.25.101
    Stream #0:0(eng): Video: mpeg4 (FMP4 / 0x34504D46), yuv420p, 960x720 [SAR 1:
1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
    Metadata:
      creation_time   : 2016-02-25 00:26:10
      handler_name    : Procedura obs│ugi skr≤t≤w danych Apple
      encoder         : Lavc57.24.103 mpeg4
    Side data:
      cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: -1
Stream mapping:
  Stream #0:0 -> #0:0 (dvvideo (native) -> mpeg4 (native))
Press [q] to stop, [?] for help
frame=   38 fps=0.0 q=31.0 Lsize=     182kB time=00:00:01.52 bitrate= 980.4kbits
/s speed=4.93x
video:175kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing o
verhead: 3.726926%

Change History (3)

comment:1 Changed 3 years ago by ami_stuff

https://www.reddit.com/r/VideoEditing/comments/1nnsql/need_help_from_you_guys/

"Avid DV100 Codec — Avid's implementation of the DVCPro HD codec. DVCPro HD has 8-bit color depth and has chroma subsapling of 4:2:2. It's a lossy codec, and typically only works at 29.97FPS or 25FPS. Resolutions are either 960x720 for 720p video or 1440x1080 for 1080i video. Bitrate is locked at 100MbPS."

so maybe avid codec really stores 960x720 and 1440x1080 resolutions in the file, but at decoding rescales video to hd and full hd (that's why quicktime reports 1280x720 and 1920x1080).

http://avid.force.com/pkb/articles/en_US/Download/en423319

comment:2 Changed 3 years ago by cehoyos

  • Component changed from undetermined to avformat
  • Keywords avid mov dvvideo added
  • Reproduced by developer set
  • Status changed from new to open
  • Version changed from unspecified to git-master

Patch sent.

comment:3 Changed 3 years ago by cehoyos

  • Keywords aspect added
  • Resolution set to fixed
  • Status changed from open to closed

Fixed in 2355b7458e637a56a8eb878ee9dbe1e06dfd69b2
Thank you for the samples!

Note: See TracTickets for help on using tickets.