如何将 AVS3 8KHDR 视频转码为 HEVC 8KHDR 视频?

2023-01-20 17:15:14 +08:00
 starryloki
在询问 ChatGPT 以及对结果各种修正后得到下面的一条命令:

ffmpeg -i input.ts -max_muxing_queue_size 999999 -pix_fmt yuv420p10le -c:v libx265 -x265-params "profile=main10:high-tier=true:colorprim=bt2020:transfer=smpte2084:colormatrix=bt2020nc" -c:a copy output.mkv

随后运行提示 “[mpegts @ 000002098fdd71c0] Could not find codec parameters for stream 0 (Video: avs3 (libuavs3d) ([212][0][0][0] / 0x00D4), yuv420p10le): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options”

后续报错 "[buffer @ 00000209ac41c040] Unable to parse option value "0x0" as image size
[buffer @ 00000209ac41c040] Error setting option video_size to value 0x0.
[graph 0 input from stream 0:0 @ 00000209909a7bc0] Error applying options to the filter.
Error reinitializing filters!
Error while filtering: Invalid argument
Finishing stream 0:0 without any data written to it."

这个视频使用 MPC-HC 播放器可以正常播放,ffmpeg 的解码器有 libuavs3d ,请问应该如何正确解码这个视频?
1677 次点击
所在节点    FFmpeg
6 条回复
xtreme1
2023-01-20 17:28:36 +08:00
报错说的挺清楚啊, 缺这两个参数
这两个是输入流的参数, 加在 input 之前
ffmpeg -analyzeduration 100M -probesize 100M -i input.ts ......
diguoemo
2023-01-20 17:33:50 +08:00
这个转码估计得转很久很久吧,只能用到双核,又不能显卡加速
starryloki
2023-01-20 17:43:55 +08:00
@xtreme1 我把这两个数值提高到很大仍然会提示 “Consider increasing the value”,并且大到一定程度就会提示 “Failed to allocate buffers for seekback” ,跑一段时间后仍然继续报一样的错
starryloki
2023-01-20 17:45:24 +08:00
@diguoemo 看了一下占用确实是只有两个核心跑满了😄
bigtan
2023-01-20 19:57:54 +08:00
转码 CCTV 的春晚直播?
starryloki
2023-01-20 23:52:16 +08:00
@bigtan 这是 da 的开幕式

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/910059

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX