AVC-Intra Invalid Formats
I'm trying to create an AVC-Intra x264 file at 1080i 59.94fps. There are validity checks applied when creating an AVC-Intra file which throw an error saying
FPS 60000/1001i not compatible with AVC-Intra
Valid formats (source):
1920 × 1080 (23.98p / 25p / 29.97p / 50i / 59.94i), 1280 × 720 (23.98p / 25p / 29.97p / 50p / 59.94p)
The list of valid formats (avcintra_lut) is declared on line 695 of encoder/encoder.c
It looks like it's permitting 1080p59.97 and 1080p50 instead of 1080i59.97 and 1080i50 (lines 733,735)
733 { 60000, 1001, 0, 7444, x264_cqm_avci100_1080_4ic, x264_cqm_avci100_1080p_8iy },
734 { 30000, 1001, 0, 7444, x264_cqm_avci100_1080_4ic, x264_cqm_avci100_1080p_8iy },
735 { 50, 1, 0, 8940, x264_cqm_avci100_1080_4ic, x264_cqm_avci100_1080p_8iy },
Here's an ffmpeg command to create a video
ffmpeg -i input.mp4 -vf scale=1920:1080 -ar 48000 -r 60000/1001 -g 1 -pix_fmt yuv422p10le -c:v libx264 -vb 100M -flags +ildct+ilme -tune psnr -color_range 2 -top 1 -avcintra-class 100 -color_primaries bt709 -color_trc bt709 -colorspace bt709 -vtag ai12 output.mxf