[Cin] SVT-AV1 encoding quite fast on x86_64
Terje J. Hanssen
terjejhanssen at gmail.com
Tue Jan 2 04:30:08 CET 2024
Den 02.01.2024 03:46, skrev Andrew Randrianasulu:
>
>
> вт, 2 янв. 2024 г., 05:27 Terje J. Hanssen via Cin
> <cin at lists.cinelerra-gg.org>:
>
>
>
> Den 02.01.2024 02:06, skrev Phyllis Smith:
>>
>>
>> Am I the only one getting errors when rendering using
>> av1-svt.webm (video only) as shown in bold below? or am I doing
>> something wrong?
>
> No, you are not the only one. I get similar error messages, see my
> output at the bottom here.
>
> CinGG rendering from hdv1080i25 8bit to respectively AV1 8bit
> yuv420p and 10bit yuvp10le and Opus.
> The difference in speed is 64.430 fps vs 56.568 fps, that is only
> 13% lesser for 10bit.
>
> The Opus Audio listening seemingly is clean (not the continuous
> sound sctrach as with Vorbis).
> (A third test with Opus_FFmpeg audio caused a lot more error messages)
>
> IMO AV1 CPU rendering speed 2.5x and 2.2x Realtime playback are
> pleasing default time vs quality (higher quality for GPU rendering).
>
> Yet I wonder if Preset 6 and CRF 26 are really used?, when the
> rendering output say (Preset 10 and CRF 35 are defaults):
>
>
> no, you need to delete # sign before those lines, by default they
> commented out.
Thank you for the clarification. I thought the # were info-comments to
what was used.
By the way, it make sense to use the default parameters by default.
https://gitlab.com/AOMediaCodec/SVT-AV1/-/blob/master/Docs/Parameters.md
Another thing I forgot to point out:
When I render the same hdv input file with FFmpeg directly, FFmpeg
reports 10240 frames at the end while the CinGG output say 10452 frames.
Maybe not so important, but I wonder why FFmpeg counts fewer frames?
(Are some lost or added?)
If different count methods are used, CinGG seems to be equivalent to
querying Mediainfo;
mediainfo --Output="Video;%FrameCount%" hdv07_05.m2t
10441
>
> * Svt[info]: SVT [config]: preset / tune / pred
> struct : 10 / PSNR /
> random access
> * Svt[info]: SVT [config]: BRC mode / rate
> factor : CRF / 35
>
>
>>
>> Cinelerra is free software, covered by the GNU General Public
>> License,
>> and you are welcome to change it and/or distribute copies of it
>> under
>> certain conditions. There is absolutely no warranty for Cinelerra.
>>
>> Svt[info]: -------------------------------------------
>> Svt[info]: SVT [version]: SVT-AV1 Encoder Lib v1.8.0
>> Svt[info]: SVT [build] : GCC 10.3.1 20210422 (Red Hat
>> 10.3.1-1) 64 bit
>> Svt[info]: LIB Build date: Jan 1 2024 16:24:53
>> Svt[info]: -------------------------------------------
>> Svt[info]: Number of logical cores available: 16
>> Svt[info]: Number of PPCS 76
>> Svt[info]: [asm level on system : up to avx2]
>> Svt[info]: [asm level selected : up to avx2]
>> Svt[info]: -------------------------------------------
>> Svt[info]: SVT [config]: main profile tier (auto) level (auto)
>> Svt[info]: SVT [config]: width / height / fps numerator / fps
>> denominator : 1440 / 1080 / 30000 / 1001
>> Svt[info]: SVT [config]: bit-depth / color format
>> : 8 / YUV420
>> Svt[info]: SVT [config]: preset / tune / pred struct
>> : 10 / PSNR / random access
>> Svt[info]: SVT [config]: gop size / mini-gop size / key-frame
>> type : 161 / 16 / key frame
>> Svt[info]: SVT [config]: BRC mode / rate factor
>> : CRF / 35
>> Svt[info]: -------------------------------------------
>> *Svt[warn]: Failed to set thread priority: Invalid argument
>> FFStream::encode_frame: encode failed.*
>> file: /tmp/svt8.webm
>> *err: Resource temporarily unavailable
>> FFMPEG::mux_video err: Operation not permitted
>> FFStream::encode_frame: encode failed.
>> *file: /tmp/svt8.webm
>> * err: Resource temporarily unavailable
>> FFMPEG::mux_video err: Operation not permitted*
>> Render::render_single: Session finished.
>> ** rendered 1656 frames in 25.363 secs, 65.292 fps
>> FFMPEG::open_decoder: some stream times estimated: /tmp/svt8.webm
>> FFMPEG::open_decoder: some stream times estimated: /tmp/svt8.webm
>
> Rendering to yuv420p and Opus
> .............................
>
> Svt[info]: -------------------------------------------
> Svt[info]: SVT [version]: SVT-AV1 Encoder Lib v1.8.0
> Svt[info]: SVT [build] : GCC 13.2.1 20230801 64 bit
> Svt[info]: LIB Build date: Dec 29 2023 10:28:50
> Svt[info]: -------------------------------------------
> Svt[info]: Number of logical cores available: 8
> Svt[info]: Number of PPCS 59
> Svt[info]: [asm level on system : up to avx2]
> Svt[info]: [asm level selected : up to avx2]
> Svt[info]: -------------------------------------------
> Svt[info]: SVT [config]: main profile tier (auto) level (auto)
> Svt[info]: SVT [config]: width / height / fps numerator / fps
> denominator : 1440 / 1080 / 25 / 1
> Svt[info]: SVT [config]: bit-depth / color format
> : 8 / YUV420
> Svt[info]: SVT [config]: preset / tune / pred struct
> : 10 / PSNR / random access
> Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type
> : 161 / 16 / key frame
> Svt[info]: SVT [config]: BRC mode / rate factor :
> CRF / 35
> Svt[info]: -------------------------------------------
> FFStream::encode_frame: encode failed.
> file:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p+opus.webm
> err: Resource temporarily unavailable
> FFMPEG::mux_video err: Operation not permitted
> FFStream::encode_frame: encode failed.
> file:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p+opus.webm
> err: Resource temporarily unavailable
> FFMPEG::mux_video err: Operation not permitted
> FFStream::encode_frame: encode failed.
> file:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p+opus.webm
> err: Resource temporarily unavailable
> FFMPEG::mux_video err: Operation not permitted
> FFStream::encode_frame: encode failed.
> file:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p+opus.webm
> err: Resource temporarily unavailable
> FFMPEG::mux_video err: Operation not permitted
> Render::render_single: Session finished.
> FFMPEG::open_decoder: some stream times estimated:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p+opus.webm
> ** rendered 10452 frames in 162.222 secs, 64.430 fps
>
> FFMPEG::open_decoder: some stream times estimated:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p+opus.webm
> FFMPEG::open_decoder: some stream times estimated:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p+opus.webm
> audio0 pad 128 -335 (463)
> FFMPEG::open_decoder: some stream times estimated:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p+opus.webm
>
> ##############################################
>
> Rendering to yuv420p10le and Opus
> ...................................
> Svt[info]: -------------------------------------------
> Svt[info]: SVT [version]: SVT-AV1 Encoder Lib v1.8.0
> Svt[info]: SVT [build] : GCC 13.2.1 20230801 64 bit
> Svt[info]: LIB Build date: Dec 29 2023 10:28:50
> Svt[info]: -------------------------------------------
> Svt[info]: Number of logical cores available: 8
> Svt[info]: Number of PPCS 59
> Svt[info]: [asm level on system : up to avx2]
> Svt[info]: [asm level selected : up to avx2]
> Svt[info]: -------------------------------------------
> Svt[info]: SVT [config]: main profile tier (auto) level (auto)
> Svt[info]: SVT [config]: width / height / fps numerator / fps
> denominator : 1440 / 1080 / 25 / 1
> Svt[info]: SVT [config]: bit-depth / color format
> : 10 / YUV420
> Svt[info]: SVT [config]: preset / tune / pred struct
> : 10 / PSNR / random access
> Svt[info]: SVT [config]: gop size / mini-gop size / key-frame type
> : 161 / 16 / key frame
> Svt[info]: SVT [config]: BRC mode / rate factor :
> CRF / 35
> Svt[info]: -------------------------------------------
> FFStream::encode_frame: encode failed.
> file:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p10le+opus.webm
> err: Resource temporarily unavailable
> FFMPEG::mux_video err: Operation not permitted
> FFStream::encode_frame: encode failed.
> file:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p10le+opus.webm
> err: Resource temporarily unavailable
> FFMPEG::mux_video err: Operation not permitted
> Render::render_single: Session finished.
> FFMPEG::open_decoder: some stream times estimated:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p10le+opus.webm
> ** rendered 10452 frames in 184.768 secs, 56.568 fps
>
> FFMPEG::open_decoder: some stream times estimated:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p10le+opus.webm
> audio0 pad 128 -335 (463)
> FFMPEG::open_decoder: some stream times estimated:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p10le+opus.webm
> FFMPEG::open_decoder: some stream times estimated:
> /run/media/terje/home_lp15/terje/Videoklipp/AV1/hdv07_05_m2t_cingg_svt-av1_pr6_yuv420p10le+opus.webm
>
> ..............
>
> --
> Cin mailing list
> Cin at lists.cinelerra-gg.org
> https://lists.cinelerra-gg.org/mailman/listinfo/cin
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240102/c67ce7d7/attachment-0001.htm>
More information about the Cin
mailing list