HEVC encoding errors

I upgraded my server to a Windows 11 with Intel UHD Graphics 630. This supports hardware accelerated HEVC encoding, but ffmpeg in Channels does not seem to use it (“Use HEVC for transcoding” selected in “Experimental”).

I see the server tries using “hevc_mf”, shouldn’t it be using “hevc-qsv” for Intel systems?

I get this errors and the stream never starts:

[hevc_mf @ 0000000001bd00c0] format negotiation failed (1/0)

(encoder=hevc_mf, resolution=720, deinterlacer=blend, bitrate=2094, segment_size=0.01)

Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

Out of range weight is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.

For testing purposes, I tried encoding a sample file with "hevc_qsv" using the ffmpeg version included with Channels, and it does the job perfectly fine.

Any help? Thanks

EDIT: Also, If I switch to Software encoding (HEVC transcoding selected), the stream starts but falls to h264.

You may need to install HEVC codec from the Microsoft store

Installed. But same thing...
(This is trying to stream from iPad)

2023/02/07 12:00:11.820770 [HLS] ffmpeg: ch104.1-dANY-ip10.10.11.81-19-hevc-aac-copy--2094-128-720-0-0---false-false-0.01-0:  Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
2023/02/07 12:00:11.824404 [HLS] ffmpeg: ch104.1-dANY-ip10.10.11.81-19-hevc-aac-copy--2094-128-720-0-0---false-false-0.01-0:  [aac @ 00000000013ba500] 2 frames left in the queue on closing
2023/02/07 12:00:11.877392 [ENC] Encoder stopped for ch104.1 in C:\-- Channels DVR\Streaming\ch104.1-dANY-ip10.10.11.81-927816411\encoder-20-3921161948 after starting from 20 without encoding any segments. Marked segment as failed.
2023/02/07 12:00:11.905846 [ENC] Starting encoder for ch104.1 in C:\-- Channels DVR\Streaming\ch104.1-dANY-ip10.10.11.81-927816411\encoder-21-4285166990 at 21 (20.070056) (encoder=hevc_mf, resolution=720, deinterlacer=blend, bitrate=2094, segment_size=0.01)
2023/02/07 12:00:12.222141 [HLS] ffmpeg: ch104.1-dANY-ip10.10.11.81-20-hevc-aac-copy--2094-128-720-0-0---false-false-0.01-0:  [hevc_mf @ 0000000001335380] format negotiation failed (1/0)

Okay, I guess MediaFoundation api is not working for some reason. We can check it out. That's why its experimental.

Thanks, let me know if you need any logs.

This broke a month or so ago on Linux as well.

Will need a lot more information. We have tests for hevc on Linux which are working.

This is what is shown on the channels page when trying to view any channel over cellular. (I currently have about 40 Mbit on a speed test on Cellular.) "Watching ch6010 from Will iPhone 11 (174.196.xxx.xx) (Remux Running: 28s @ 1.2x (36.14fps)): buf=0% drop=0%" On the iPhone it is just the spinning circle. Same on all remote clients when the setting is enabled. I just saw in the logs a hardware-false-false for ffmpg which is odd, the processor has x265. This all used to work fine so I'm not sure what could have changed.

9e3ab944-12b3-405e-9b78-c59f48cb353b

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.