V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
starryloki
V2EX  ›  FFmpeg

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

  •  
  •   starryloki · 2023-01-20 17:15:14 +08:00 · 1657 次点击
    这是一个创建于 458 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在询问 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 ,请问应该如何正确解码这个视频?
    6 条回复    2023-01-20 23:52:16 +08:00
    xtreme1
        1
    xtreme1  
       2023-01-20 17:28:36 +08:00
    报错说的挺清楚啊, 缺这两个参数
    这两个是输入流的参数, 加在 input 之前
    ffmpeg -analyzeduration 100M -probesize 100M -i input.ts ......
    diguoemo
        2
    diguoemo  
       2023-01-20 17:33:50 +08:00 via Android
    这个转码估计得转很久很久吧,只能用到双核,又不能显卡加速
    starryloki
        3
    starryloki  
    OP
       2023-01-20 17:43:55 +08:00
    @xtreme1 我把这两个数值提高到很大仍然会提示 “Consider increasing the value”,并且大到一定程度就会提示 “Failed to allocate buffers for seekback” ,跑一段时间后仍然继续报一样的错
    starryloki
        4
    starryloki  
    OP
       2023-01-20 17:45:24 +08:00
    @diguoemo 看了一下占用确实是只有两个核心跑满了😄
    bigtan
        5
    bigtan  
       2023-01-20 19:57:54 +08:00 via iPhone
    转码 CCTV 的春晚直播?
    starryloki
        6
    starryloki  
    OP
       2023-01-20 23:52:16 +08:00
    @bigtan 这是 da 的开幕式
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5421 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 06:54 · PVG 14:54 · LAX 23:54 · JFK 02:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.