Hi there, I’m using StreamReader in torchaudio to process video. However, when using method add_basic_video_stream(), I encountered an error: Failed to create the filter from “fps=1,format=pix_fmts=rgb24” (Invalid argument.).
Here is my source code creating the config:
s = StreamReader(src)
s.add_basic_video_stream(
frames_per_chunk=1,
format="rgb24",
decoder="h264_cuvid",
frame_rate=1,
hw_accel="cuda:0"
)
Here is my torch and torchaudio nightly version:
1.13.0.dev20220914+cu113
0.13.0.dev20220914+cu113
Can someone help me with this? Thank you all in advance.