This repository has been archived on 2024-11-18. You can view files and clone it, but cannot push or open issues or pull requests.
poc/compression/main.py

18 lines
275 B
Python
Raw Normal View History

2024-06-28 11:01:49 +00:00
#!/usr/bin/env python3
import sys
from ffmpy import FFmpeg
def main():
ff = FFmpeg(
inputs={"pipe:0": None},
outputs={"pipe:1": "-ar 8000 -b:a 128k -f mp3"},
)
ff.run(input_data=sys.stdin.buffer.read())
if __name__ == "__main__":
main()