视频转音频 Python| MP4 转 MP3 - 图1
© moviepy

由於語法渲染問題而影響閱讀體驗, 請移步博客閱讀~
本文GitPage地址

Quick Start: moviepy

Cite: taoquns 2019

  1. # pip install moviepy
  2. from moviepy.editor import *
  3. video = VideoFileClip('test.mp4')
  4. audio = video.audio
  5. audio.write_audiofile('test.mp3')

Requirement

  1. moviepy
  2. decorator
  3. tqdm
  4. requests
  5. numpy
  6. imageio
  7. pillow
  8. imageio_ffmpeg

ffmpy3

Cite: (c) Jumping boy; 2019

  1. from ffmpy3 import FFmpeg
  2. ff = FFmpeg(inputs={'周笔畅-最美的期待(伴奏版).mp4': None},
  3. outputs={'output.mp3': None})
  4. print(ff.cmd)
  5. ff.run()

Enjoy~

本文由Python腳本GitHub/語雀自動更新

由於語法渲染問題而影響閱讀體驗, 請移步博客閱讀~
本文GitPage地址

GitHub: Karobben
Blog:Karobben
BiliBili:史上最不正經的生物狗