SVT-HEVC
SVT-HEVC copied to clipboard
No parameter for interlaced HEVC encoding on ffmpeg plugin
Hi,
I do not see a parameter to make an interlaced HEVC encoding (1080i29.97). For example, I could generate interlaced HEVC encoding with x265 with below command. What would be a command for SVT? SVT sample application has a parameter ("-interlaced-video") to signal interlaced video though.
Parameter for x265: -x265-params interlace=1
SVT FFMPEG help message (built on top of ffmpeg 4.1)
/tools/ffmpeg_4.1_svt-hevc -h encoder=libsvt_hevc
ffmpeg version n4.1-64-gbcfd82b Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.10) 20160609
configuration: --prefix=/root/ffmpeg_build --extra-cflags=-I/root/ffmpeg_build/include --pkg-config='pkg-config --static' --extra-ldflags=-L/root/ffmpeg_build/lib --bindir=/root/bin --enable-gpl --enable-nonfree --enable-libsvthevc
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
Encoder libsvt_hevc [SVT-HEVC(Scalable Video Technology for HEVC) encoder]:
General capabilities: delay threads
Threading capabilities: auto
Supported pixel formats: yuv420p yuv420p10le
libsvt_hevc AVOptions:
-vui
@jsunintel Please help with the request here. Thanks.
I have checked SVT HEVC, and although it has the interface, it doesn't support interlace in lib. With it being 0 or 1, the coded data are the same. Only the related flags are different in the bitstream: "general_progressive_source_flag" & "general_interlaced_source_flag".
@hassount please correct me if I got it wrong.
@jsunintel Yes, you are correct. The logic of formatting of input data is at application level, not svt lib. Do you think the ffmpeg plugin can process interlaced data?
@jsunintel Yes, you are correct. The logic of formatting of input data is at application level, not svt lib. Do you think the ffmpeg plugin can process interlaced data?
Let me have a check.
I doubt HEVC interlacing is supported in anything besides https://sourceforge.net/p/mjpeg/mailman/message/9927377/ and LG, Panasonic TVs. Even mediainfo has this issue: https://github.com/MediaArea/MediaInfoLib/issues/1092 Iasue in ffmpeg https://trac.ffmpeg.org/ticket/5514
Music Box Russia channel over satellite transmits in HEVC 1920x1080 25fps interlaced - and after recording VLC recognizes file as 50 fps, and resolution 1920x540 - half a height. But on satellite tuner the player works ok - it plays the file as 1920x1080 25fps... When we can expect support for HEVC/H265 interlaced?
Hi @xsistema, could you test below command line SvtHevcEncApp -i interlaced.yuv -w 1920 -h 540 -interlaced-video 1 -b out.bin to see if it works? If so, we will work on exposing the -interlaced-video interface through ffmpeg.