Skip to content

Commit

Permalink
从MP4里面提取音频
Browse files Browse the repository at this point in the history
  • Loading branch information
JiYouMCC authored Jul 30, 2024
1 parent 659ed6a commit fdae8a0
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions _posts/2024-07-30-106.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,18 @@ issue: 44
---
随手记录一下代码

有时候觉得很魔幻,折腾半天是为了给小朋友的拼音课打卡交作业 :face_in_clouds:
有时候觉得很魔幻,折腾半天是为了给小朋友的拼音课打卡交作业 :face_in_clouds: 老人不知道怎么录录音只会录视频,我只能把音频再后期提出来了

想当年我自己交作业的时候还是拿录音机录的磁带交给老师 :rofl:

又想想,为什么每次和音频视频打交道总忍不住去弄ffmpeg,明明库那么多

其实音视频处理软件很多,但是总觉得每次去打开某某小程序或者打开剪辑软件有点太……不够硬核了 :woman_technologist:

回头有空再研究研究python怎么调用ffmpeg里面各种强大功能吧

<!--more-->

# pip uninstall ffmpeg
# pip uninstall ffmpeg-python
# pip install ffmpeg-python
Expand All @@ -32,4 +40,4 @@ issue: 44

input_video = "d90cd70b1084633eb285f9ff1bda5bce.mp4"
output_audio = "output.mp3"
extract_audio_from_video(input_video, output_audio)
extract_audio_from_video(input_video, output_audio)

0 comments on commit fdae8a0

Please sign in to comment.