20:49
Windows, vscode, Python 3.11.4-64bit
import torch
import torchaudio
print(torch.__version__)
print(torchaudio.__version__)
print(torchaudio._extension._FFMPEG_INITIALIZED)
2.0.1+cu117
2.0.2+cu117
False
and i try
torchaudio._extension._init_ffmpeg()
Traceback (most recent call last):
File "C:\\Users\\USER\\AppData\\Local\\Programs\\Python\\Python311\\Lib\\site-packages\\torchaudio\\_extension\\utils.py", line 85, in _init_ffmpeg
_load_lib("libtorchaudio_ffmpeg")
File (...)
06:06
i have a problem decoding a wav file using ffmpeg. I'm new to it and i'm not quite used to it.
In my application i have to input the audio file and get an array of samples to work on.
I used ffmpeg to create a function that gets in input the path of the file, the position in time where to start to output the samples and the lenght of the chunk to decode in seconds.
When I try to decode the file harp.wav everything runs fine, and I can plot the samples as in the image plot-harp.png
The file is a WAV file encoded as: pcm_u8, 11025 Hz, 1 channels, u8, 88 (...)