Problem with video h264 on raspberry 3

I have the video converted with ffmpeg and cuda:
-hwaccel nvdec -hwaccel_output_format cuda
-c:v h264_nvenc -rc vbr_hq
-acodec ac3 -ac 6 -strict experimental -ar 48000 -b:a 1536k -metadata:s0 language=ita

See my scripts 1080p

OSMC on RaspBerry don’t work, audio ok…video no.

MediaInfo from file is:

Try encoding without CUDA

Format profile : Main@L5

You may also try to use a lower encoding level, for example level 4.

Anything useful on the log?

I think if you went with profile High@4.1 you would find the sweet spot with compatibility.

my version ffmpeg is N-95441-g0ae6fb276b and not find options

how can i solve, thanks.

[h264_nvenc @ 0x560428bbebc0] InitializeEncoder failed: invalid param (8): Invalid Level.
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
Conversion failed!

I’d guess that CUDA is doing something funky to the video.

on pc with vlc is ok.
on osmc rp3 don’t work.

Encode with ffmpeg in SW first.

You are comparing apples and bananas