diff --git a/website/data/category_intros/audio-video-processing.md b/website/data/category_intros/audio-video-processing.md index 68ab682f..feac35ff 100644 --- a/website/data/category_intros/audio-video-processing.md +++ b/website/data/category_intros/audio-video-processing.md @@ -15,8 +15,6 @@ librosa is a Python library for [audio and music signal processing](https://libr soundfile reads and writes [any format libsndfile supports](https://python-soundfile.readthedocs.io/en/latest/#read-write-functions), like WAV, FLAC, and OGG: `sf.read()` returns the samples as a NumPy array along with the sample rate, and `sf.write()` saves them. librosa reads files through soundfile, and its docs [recommend using soundfile directly](https://librosa.org/doc/latest/ioformats.html) to write audio, or when you need more control than loading a whole recording into memory. -pydub [does things in milliseconds](https://github.com/jiaaro/pydub): slice an `AudioSegment` like a list, add 6 to boost it by 6 dB, then join, crossfade, or fade clips. Load files with [`AudioSegment.from_file()`](https://github.com/jiaaro/pydub/blob/master/API.markdown), which the docs recommend over the format-specific wrappers. Every operation returns an `AudioSegment`, so you can chain them before `export()` writes the result. - MoviePy is for [automating video edits](https://zulko.github.io/moviepy/getting_started/quick_presentation.html#do-i-need-moviepy): cutting scenes, adding titles and subtitles, or composing many videos into one. A [typical script](https://zulko.github.io/moviepy/getting_started/quick_presentation.html#example-code) loads videos as clips, modifies them, puts them together in a `CompositeVideoClip`, and writes the result with `write_videofile()`. PyAV binds FFmpeg's libraries for [direct and precise access](https://pyav.basswood.io/docs/stable/) to your media's containers, streams, packets, codecs, and frames. Open a file with `av.open()` and loop over `container.decode(video=0)` to get frames, which [convert to NumPy arrays](https://pyav.basswood.io/docs/stable/cookbook/numpy.html) with `to_ndarray()` and back with `av.VideoFrame.from_ndarray()`.