Hi,
I’m trying to use torchaudio.io.StreamReader(), followed by add_basic_video_stream and add_basic_audio_stream, to stream video and audio from the webcam/microphone simultaneously on Linux.
There are a few tutorials out there on how to do this on Windows or Mac, but there seems to be none for Linux. Specifically, I’m confused about what I should select as format= and src= in StreamReader(). Through a bit of trial and error, I have figured out that I can use src=/dev/video0 and format=v4l2 to stream video, but can’t figure out what src and format I should use to have both streams - video and audio - simultaneously.
Any help would be greatly appreciated