歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> Linux下從電影(avi)中提取聲音

Linux下從電影(avi)中提取聲音

日期:2017/2/28 15:42:45   编辑:Linux教程

在Linux環境下看了一電影,黎明騎士(AVI格式),覺得片頭曲超棒,只是不知道名字,後來從片尾滾動字幕裡找到了名字

wayfaring stranger

是一首經典的鄉村民謠,不知道誰是原唱,不過電影裡是george canyon唱的,超滄桑。

網上找了一番,都不是很滿意,音質低,而且沒有多少滄桑感,所以就從電影裡直接提取聲音了MP3。

很簡單,一條指令搞定

www.linuxidc.com @linux:~$ mplayer -dumpaudio DAWN.RIDER.2012.480p.BRRip.XviD.AC3-PTpOWeR.avi -dumpfile linuxidc.mp3
MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing DAWN.RIDER.2012.480p.BRRip.XviD.AC3-PTpOWeR.avi.
Detected file format: AVI format (libavformat)
[mpeg4 @ 0x7f79aa26c300]Invalid and inefficient vfw-avi packed B frames detected
[lavf] stream 0: video (mpeg4), -vid 0
[lavf] stream 1: audio (ac3), -aid 0
VIDEO: [MP4V] 720x304 24bpp 23.976 fps 0.0 kbps ( 0.0 kbyte/s)
dump: 235714100 bytes written (~78.0%)
dump: 301267343 bytes written to 'linuxidc.mp3'.
Stream dump complete.

Exiting... (End of file)

www.linuxidc.com @linux:~$

Copyright © Linux教程網 All Rights Reserved