pytorch / pytorch/audio

How to use torchaudio without ffmpeg?

Open
#4,182 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.9k
Forks
799
Avg merge
58m
Merged PRs (30d)
3

Description

I had used torchaudio == 2.4.1, it is simple and convinent. Now for some reason I have to update my torch into V2.9.1 and so torchaudio==2.9.1, but the old code can not run now. It said when I run

data, sr = torchaudio.load(WavPath)

I have to install a torchcodec and which should first install the ffmpeg. it is not convinent in my env to install those tools that need to download and compile, Is there any compitable usage method?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the torchaudio.load(WavPath) call and the reported change from torchaudio 2.4.1 to 2.9.1. Check the migration behavior around torchcodec and FFmpeg, then determine whether a supported loading method works without those dependencies; done means documenting a compatible usage path or confirming they are required.

Written by the indexing model from the issue text.

Assessment

Tech stack
python, pytorch
Domain
audio-video-rtc
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.