decord
decord copied to clipboard
Get the sample rate of the audio from a video
Is there a way of getting the sample rate of the audio from a video?
reader = AudioReader(<file>)
reader.get_info()
Will print the sample rate to stdout, but is there a way to return the integer value? Or do I need to capture stdout to a string and parse it?