Skip to content

Avoid torchcodec for wav files - #4

Open
acidbubbles wants to merge 1 commit into
jordandare:mainfrom
acidbubbles:main
Open

Avoid torchcodec for wav files#4
acidbubbles wants to merge 1 commit into
jordandare:mainfrom
acidbubbles:main

Conversation

@acidbubbles

Copy link
Copy Markdown

torchcodec requires having ffmpeg installed with shared libraries on the user's machine, which is unnecessary for wav file inputs.

This PR checks for the file extension, and avoids importing the decoder completely if the input file does not require it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant