How to decode HEVC files to YUV?

后端 未结 4 837
伪装坚强ぢ
伪装坚强ぢ 2021-01-19 11:28

I would like to decode HEVC encoded files to YUV files.

Is there any simple way to do this yet? An executable would be nice but I would make do with source code that

4条回答
  •  轮回少年
    2021-01-19 11:53

    Alternatively, you can use libde265 as a much faster decoder.

    1. Get the latest version from its github release page.
    2. Configure with ./configure --disable-sherlock265
    3. Compile: make

    Generate the YUV file with

    ./dec265/dec265 hevc-file.bin -o output.yuv -t4
    

    The option -t4 is for multi-threaded decoding. You can also do more things like input NAL-unit streams, dump the headers, directly display the video, or check the SEI hashes.

提交回复
热议问题