NVIDIA / VideoProcessingFramework

Set of Python bindings to C++ libraries which provides full HW acceleration for video decoding, encoding and GPU-accelerated color space and pixel format conversions
Apache License 2.0
1.32k stars 233 forks source link

High Bit Depth Encoding not supported while input video is 8-bit (incorrect error message?) #469

Closed Renzzauw closed 1 year ago

Renzzauw commented 1 year ago

Describe the bug I try to encode a video in my pipeline that uses VPF. The input video has multiple video streams, but they all have 8 bits depth, so I would expect no issues while encoding. I'm not sure if the correct encoding error is being thrown, so perhaps this is a bug. I've managed to reproduce this issue simply by running the SamplePytorch script (since I'm also converting from and to PyTorch in my code).

Maybe another question I have is, what is the expected decoding behavior in case of multiple video streams in one single container?

To Reproduce Steps to reproduce the behavior:

  1. Run SamplePytorch.py on attached video
  2. See error High Bit Depth Encoding not supported in console

Expected behavior The video should be encoded with zero issues or raise the correct or a more clear error message what is wrong with the input video.

Screenshots NA

Desktop (please complete the following information):

Additional context Video related to my issue

rnaskulwar commented 1 year ago

taking a look

Renzzauw commented 1 year ago

Hi @rnaskulwar, appreciate the help! Do you have any updates on this issue by any chance? I've updated the attached video link, as the previous download link has expired.

KrabbyPattie commented 1 year ago

Hi @Renzzauw,

I stumbled across this thread as I also had this issue on Windows. After delving into the docs a bit, I started changing the parameters available in the constructor. Changing the codec to hevc instead of h264 solved my issue. Hopefully it works!

Renzzauw commented 1 year ago

This issue seems to be fixed after pulling the latest commit