Opened 7 years ago

Closed 6 years ago

#6146 closed defect (fixed)

use ImageDescription version>=2 with v210 in quicktime

Reported by: dave rice Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: mov
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

When writing uncompressed yuv into quicktime, ffmpeg writes a version 0 ImageDescription, although TN2162 requires a version 2 of the ImageDescription, though version 0 is ok for 2vuy and yuv2. See: https://developer.apple.com/library/content/technotes/tn2162/_index.html#//apple_ref/doc/uid/DTS40013070-CH1-TNTAG3.

How to reproduce:

ffmpeg -f lavfi -i smptebars=s=720x486:r=30000/1001 -movflags write_colr -color_primaries smpte170m -color_trc bt709 -colorspace smpte170m -color_range mpeg -vf "setfield=bff,setdar=4/3" -c:v v210 -vframes 1 -y tn2162_v210.mov
ffmpeg version git-2017-02-12-79d232f Copyright (c) 2000-2017 the FFmpeg developers
  built with Apple LLVM version 8.0.0 (clang-800.0.42.1)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-79d232f --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-chromaprint --enable-ffplay --enable-libcaca --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtesseract --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-opencl --disable-lzma --enable-vda
  libavutil      55. 46.100 / 55. 46.100
  libavcodec     57. 79.100 / 57. 79.100
  libavformat    57. 66.102 / 57. 66.102
  libavdevice    57.  2.100 / 57.  2.100
  libavfilter     6. 73.100 /  6. 73.100
  libavresample   3.  2.  0 /  3.  2.  0
  libswscale      4.  3.101 /  4.  3.101
  libswresample   2.  4.100 /  2.  4.100
  libpostproc    54.  2.100 / 54.  2.100
Input #0, lavfi, from 'smptebars=s=720x486:r=30000/1001':
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x486 [SAR 1:1 DAR 40:27], 29.97 tbr, 29.97 tbn, 29.97 tbc
Output #0, mov, to 'tn2162_v210.mov':
  Metadata:
    encoder         : Lavf57.66.102
    Stream #0:0: Video: v210 (v210 / 0x30313276), yuv422p(tv, smpte170m/smpte170m/bt709), 720x486 [SAR 9:10 DAR 4:3], q=2-31, 200 kb/s, 29.97 fps, 30k tbn, 29.97 tbc
    Metadata:
      encoder         : Lavc57.79.100 v210
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> v210 (native))
Press [q] to stop, [?] for help
[swscaler @ 0x7fe2cc03a200] Warning: data is not aligned! This can lead to a speedloss
frame=    1 fps=0.0 q=-0.0 Lsize=     912kB time=00:00:00.00 bitrate=226411636.4kbits/s speed=0.00533x    
video:911kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.088735%

Patches should be submitted to the ffmpeg-devel mailing list and not this bug tracker.

Change History (2)

comment:1 by Carl Eugen Hoyos, 7 years ago

Summary: use ImageDescription version>=2 with uncompressed yuv in quicktimeuse ImageDescription version>=2 with v210 in quicktime

comment:2 by Carl Eugen Hoyos, 6 years ago

Component: undeterminedavformat
Resolution: fixed
Status: newclosed
Version: unspecifiedgit-master

I believe this was fixed in 1e5f9234166408daf536407117499d3affa34234

Note: See TracTickets for help on using tickets.