Extract audio file from video file on Ubuntu

Preface

mencoder is a tool which can process video files. Sometimes, we just need the sound of a video, but we may only have a video file. At this time, we can use the mencoder to extract the audio file from the video file.

In this post, I will show you how to extract audio files from video files on Ubuntu Linux.

Main Body

First step, install the “mencoder”:

sudo apt-get install mencoder

Then, run the following command:

mencoder -oac mp3lame -ovc copy -of rawaudio {video file name.mp4/avi...} -o {audio file name.mp3}

It is worth noting that using the upper command will make the extract file “.mp3”. And then, if everything is OK, you just need to enter the “Enter” and wait for a moment.

EOF


荒原之梦网全部内容均为原创,提供了涵盖考研数学基础知识、考研数学真题、考研数学练习题和计算机科学等方面,大量精心研发的学习资源。

意见反馈 | 内容纠错 | 微信 | QQ | 公众号 | 知乎 | 微博 | 博客园 |CSDN | B 站 | 电子邮件
豫 ICP 备 17023611 号-1 | 公网安备 - 荒原之梦 豫公网安备 41142502000132 号 | SiteMap
Copyright © 2017-2024 ZhaoKaifeng.com 版权所有 All Rights Reserved.

Copyright © 2024   zhaokaifeng.com   All Rights Reserved.
豫ICP备17023611号-1
 豫公网安备41142502000132号

荒原之梦 自豪地采用WordPress