压制最大码率不能超过20M?
shanaencoder吧
全部回复
仅看楼主
level 1
Goasahinaw 楼主
拍了一段4k风景视频,默认码率54M。因为是倒着拍的,需要把它弄正,只能重编码压制。
但发现用ShanaEncoder压制4K hevc,最大码率不能超过20M,超过就报错。
这是什么原因?
2025年05月19日 08点05分 1
level 10
f5查看错误日志
2025年05月19日 08点05分 2
level 6
十几兆就够了 h265
2025年05月19日 09点05分 3
level 1
Goasahinaw 楼主
回复 @SHIZHE史哲>> 编码开始时间:2025/5/22 9:38:14
* 输入文件名:VideoPro_20250518_185946.mp4
Stream mapping:
Stream
#0:1 -> #
0:0 (h264 (native) -> hevc (hevc_nvenc))
Stream
#0:0 -> #
0:1 (aac (native) -> aac (libfdk_aac))
Incompatible pixel format 'yuv420p10le' for codec 'hevc_nvenc', auto-selecting format 'p010le'
[hevc_nvenc @ 0000028e585ec840] 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!
* 编码错误已经发生。
>> 速度 0x 已耗时 00:00:00
码率低于23000可以正常编码压制,超过23000就报错了
2025年05月22日 01点05分 4
日志中提到了level这个,看这设置的多少,改用auto,不同的level有支持最高码率,超过就会出错
2025年05月22日 01点05分
@SHIZHE史哲 还真是这样,非常感谢!
2025年05月22日 02点05分
level 6
重新封装,不用压缩,拍摄角度旋转,选180度,播放的时候就是正的
2025年05月22日 12点05分 5
1