How to extract audio from a video file using python?

后端 未结 1 1475
走了就别回头了
走了就别回头了 2021-01-05 11:39

I want to write a python program that could extract audio from a video file (e.g. video.avi). Is there any good library for it? And where should I start from? I

相关标签:
1条回答
  • 2021-01-05 12:06

    I don't have a complete solution, but from the ffmpeg docs, it looks like ffmpeg can read an incomplete file by piping to stdin. Example from the docs:

    cat test.wav | ffmpeg -i pipe:0
    

    If you must use python, you can always call ffmpeg using subprocess.

    0 讨论(0)
提交回复
热议问题