ffmpeg
copied
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readme
Files and versions
Updated 2 years ago
audio-decode
Audio Decode Implementation With PyAV
author: Junjie Jiang
Description
Audio Decode converts the encoded audio back to uncompressed audio frames. In most cases, audio decoding is the first step of an audio processing pipeline.
Code Example
import towhee
towhee.glob('./music.mp3').audio_decode.ffmpeg().flatten().show(limit=1)
# batch decode
# towhee.glob('./music.mp3').audio_decode.ffmpeg(500).flatten().show(limit=1)
Factory Constructor
Create the operator via the following factory method:
audio_decode.ffmpeg()
batch decode, batch_size = 100:
audio_decode.ffmpeg(100)
Interface
An audio decode operator takes an audio file path as input. It decodes the audio back to audio frames.
Args:
audio (str):
Audio file path.
Return (generator):
An generator over audio frames with type towhee.types.AudioFrame
.
Jael Gu
80abe0207c
| 19 Commits | ||
---|---|---|---|
.gitattributes |
1.1 KiB
|
3 years ago | |
README.md |
970 B
|
2 years ago | |
__init__.py |
117 B
|
2 years ago | |
audio_decoder_ffmpeg.py |
2.0 KiB
|
2 years ago | |
img.png |
8.4 KiB
|
3 years ago | |
requirements.txt |
3 B
|
3 years ago |