Opened 7 years ago

Closed 6 years ago

Last modified 6 years ago

#6145 closed defect (fixed)

v210 in mov needs a clap atom

Reported by: dave rice Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: mov
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:

I am trying to create files valid to https://developer.apple.com/library/content/technotes/tn2162/_index.html with ffmpeg, but although the clap atom is required for uncompressed yuv in quicktime, there is no way to create it.

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%

The resulting file is missing the clap atom.

From table 2, in TN2162, the clap atom is 'always required' for uncompressed yuv in quicktime.

Change History (5)

comment:1 by Carl Eugen Hoyos, 7 years ago

Summary: uncompressed yuv in mov needs a clap atomv210 in mov needs a clap atom

comment:2 by MoMo, 7 years ago

Addressing this ticket would help greatly in creating v210 .mov files that are TN2162 compliant

comment:3 by kieranjol, 7 years ago

I agree with av_morgan - this would be useful.

comment:5 by dave rice, 6 years ago

Last edited 6 years ago by Carl Eugen Hoyos (previous) (diff)
Note: See TracTickets for help on using tickets.