decord icon indicating copy to clipboard operation
decord copied to clipboard

Get the sample rate of the audio from a video

Open lematt1991 opened this issue 4 months ago • 0 comments

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?

lematt1991 avatar Jan 11 '24 18:01 lematt1991