Skip to content

Need example code of in-memory processing #20

@JohnHerry

Description

@JohnHerry

Thanks for the good job.
I have a processing task with ffmpeg like follows:

ffmpeg -i input.wav -ar 16000 -ac 1 -af loudnorm=I=-23 -acodec pcm_s16le output.wav

in this process, it takes resample, rechannel, volume normalize and codec [from PCM24 to PCM16].

but now I want this process to be in memory, which means the input, or the output [or maybe both] is a numpy-array or some other in memory array data, instead of a file in disk, How to make such a process? thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions