如何抓取从视频音频? [英] How to rip the audio from a video?

查看:399
本文介绍了如何抓取从视频音频?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu和想一个MP4视频转换为MP3音频文件,但无法弄清楚如何。我尝试安装的ffmpeg,但它没有连接code中的MP3。我读过的GStreamer做它,但我无法弄清楚如何。我的GStreamer和python安装。我可以用Python程序,但我不能从源代码或更高级别的命令行的东西超级舒服编译软件。我只知道在命令行上的基础知识。


解决方案

  mplayer的<&录像档案GT; -dumpaudio -dumpfile out.bin

它会复制原始音频流,那么这应该很容易使用SOX,瘸腿的,VLC或诸如此类的东西转化。 VLC具有良好的转换选项,以及 - 它运动的GUI。我不知道刚才提取音频,但它应该是肯定的能够的吧

I am on ubuntu and want to convert a mp4 video to an mp3 audio file but can't figure out how. I tried installing ffmpeg but it failed to encode the mp3. I've read the gstreamer does it but I can't figure out how. I have gstreamer and python installed. I can program with python, but am not super comfortable compiling software from source or any higher level command line stuff. I only know the basics on the command line.

解决方案

mplayer <videofile> -dumpaudio -dumpfile out.bin

it will copy the raw audio stream, that should then be easily converted using sox, lame, vlc or whatnot. VLC has nice conversion options as well - and it sports a GUI. I don't know about extracting just the audio, but it should sure be capable of it

这篇关于如何抓取从视频音频?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆