使用两个命令:
sudo apt-get install mplayer
mplayer -nocache -afm ffmpeg http://wknc.sma.ncsu.edu:8000/wknchd1.mp3

hairui@hadoop:~$ sudo apt-get install mplayer
[sudo] hairui 的密码:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树
正在读取状态信息... 完成
下列软件包是自动安装的并且现在不需要了:ocl-icd-libopencl1
使用'sudo apt autoremove'来卸载它(它们)。
将会同时安装下列软件:esound-common libaudiofile1 libenca0 libesd0 libvorbisidec1
建议安装:pulseaudio-esound-compat mplayer-doc netselect | fping
下列【新】软件包将被安装:esound-common libaudiofile1 libenca0 libesd0 libvorbisidec1 mplayer
升级了 0 个软件包,新安装了 6 个软件包,要卸载 0 个软件包,有 39 个软件包未被升级。
需要下载 2,520 kB 的归档。
解压缩后会消耗 6,065 kB 的额外空间。
您希望继续执行吗? [Y/n] Y
获取:1 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/universe amd64 libaudiofile1 amd64 0.3.6-2ubuntu0.16.04.1 [94.4 kB]
获取:2 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe amd64 esound-common all 0.2.41-11 [9,558 B]
获取:3 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe amd64 libesd0 amd64 0.2.41-11 [16.7 kB]
获取:4 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial/universe amd64 libenca0 amd64 1.18-1 [53.8 kB]
获取:5 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/universe amd64 libvorbisidec1 amd64 1.0.2+svn18153-0.2+deb7u1build0.16.04.1 [71.1 kB]
获取:6 https://mirrors.tuna.tsinghua.edu.cn/ubuntu xenial-updates/universe amd64 mplayer amd64 2:1.2.1-1ubuntu1.1 [2,274 kB]
已下载 2,520 kB,耗时 34秒 (73.6 kB/s)
正在选中未选择的软件包 libaudiofile1:amd64。
(正在读取数据库 ... 系统当前共安装有 303179 个文件和目录。)
正准备解包 .../libaudiofile1_0.3.6-2ubuntu0.16.04.1_amd64.deb  ...
正在解包 libaudiofile1:amd64 (0.3.6-2ubuntu0.16.04.1) ...
正在选中未选择的软件包 esound-common。
正准备解包 .../esound-common_0.2.41-11_all.deb  ...
正在解包 esound-common (0.2.41-11) ...
正在选中未选择的软件包 libesd0:amd64。
正准备解包 .../libesd0_0.2.41-11_amd64.deb  ...
正在解包 libesd0:amd64 (0.2.41-11) ...
正在选中未选择的软件包 libenca0:amd64。
正准备解包 .../libenca0_1.18-1_amd64.deb  ...
正在解包 libenca0:amd64 (1.18-1) ...
正在选中未选择的软件包 libvorbisidec1。
正准备解包 .../libvorbisidec1_1.0.2+svn18153-0.2+deb7u1build0.16.04.1_amd64.deb  ...
正在解包 libvorbisidec1 (1.0.2+svn18153-0.2+deb7u1build0.16.04.1) ...
正在选中未选择的软件包 mplayer。
正准备解包 .../mplayer_2%3a1.2.1-1ubuntu1.1_amd64.deb  ...
正在解包 mplayer (2:1.2.1-1ubuntu1.1) ...
正在处理用于 libc-bin (2.23-0ubuntu10) 的触发器 ...
正在处理用于 man-db (2.7.5-1) 的触发器 ...
正在处理用于 mime-support (3.59ubuntu1) 的触发器 ...
正在设置 libaudiofile1:amd64 (0.3.6-2ubuntu0.16.04.1) ...
正在设置 esound-common (0.2.41-11) ...
正在设置 libesd0:amd64 (0.2.41-11) ...
正在设置 libenca0:amd64 (1.18-1) ...
正在设置 libvorbisidec1 (1.0.2+svn18153-0.2+deb7u1build0.16.04.1) ...
正在设置 mplayer (2:1.2.1-1ubuntu1.1) ...
正在处理用于 libc-bin (2.23-0ubuntu10) 的触发器 ...
hairui@hadoop:~$ mplayer
Creating config file: /home/hairui/.mplayer/config
MPlayer 1.2.1 (Debian), built with gcc-5.4.0 (C) 2000-2016 MPlayer Team
Usage:   mplayer [options] [url|path/]filenameBasic options: (complete list in the man page)-vo <drv>        select video output driver ('-vo help' for a list)-ao <drv>        select audio output driver ('-ao help' for a list)vcd://<trackno>  play (S)VCD (Super Video CD) track (raw device, no mount)dvd://<titleno>  play DVD title from device instead of plain file-alang/-slang    select DVD audio/subtitle language (by 2-char country code)-ss <position>   seek to given (seconds or hh:mm:ss) position-nosound         do not play sound-fs              fullscreen playback (or -vm, -zoom, details in the man page)-x <x> -y <y>    set display resolution (for use with -vm or -zoom)-sub <file>      specify subtitle file to use (also see -subfps, -subdelay)-playlist <file> specify playlist file-vid x -aid y    select video (x) and audio (y) stream to play-fps x -srate y  change video (x fps) and audio (y Hz) rate-pp <quality>    enable postprocessing filter (details in the man page)-framedrop       enable frame dropping (for slow machines)Basic keys: (complete list in the man page, also check input.conf)<-  or  ->       seek backward/forward 10 secondsdown or up       seek backward/forward  1 minutepgdown or pgup   seek backward/forward 10 minutes< or >           step backward/forward in playlistp or SPACE       pause movie (press any key to continue)q or ESC         stop playing and quit program+ or -           adjust audio delay by +/- 0.1 secondo                cycle OSD mode:  none / seekbar / seekbar + timer* or /           increase or decrease PCM volumex or z           adjust subtitle delay by +/- 0.1 secondr or t           adjust subtitle position up/down, also see -vf expand* * * SEE THE MAN PAGE FOR DETAILS, FURTHER (ADVANCED) OPTIONS AND KEYS * * *hairui@hadoop:~$ mplayer -nocache -afm ffmpeg http://wknc.sma.ncsu.edu:8000/wknchd1.mp3
MPlayer 1.2.1 (Debian), built with gcc-5.4.0 (C) 2000-2016 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 http://wknc.sma.ncsu.edu:8000/wknchd1.mp3.
Resolving 127.0.0.1 for AF_INET6...Couldn't resolve name for AF_INET6: 127.0.0.1
Connecting to server 127.0.0.1[127.0.0.1]: 39953...Name   : WKNC 88.1 FM HD-1 Raleigh, N.C.
Genre  : College Radio
Public : yes
Bitrate: 128kbit/s
Cache size set to 0 KBytes
Cannot seek backward in linear streams!
Cannot seek backward in linear streams!
Audio only file format detected.
==========================================================================
Trying to force audio codec driver family ffmpeg...
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 56.60.100 (external)
AUDIO: 44100 Hz, 2 ch, floatle, 128.0 kbit/4.54% (ratio: 16000->352800)
Selected audio codec: [ffmp3float] afm: ffmpeg (FFmpeg MPEG layer-3 audio)
==========================================================================
AO: [pulse] 44100Hz 2ch floatle (4 bytes per sample)
Video: no video
Starting playback...ICY Info: StreamTitle='Yves Tumor - Honesty';
A: 219.4 (03:39.4) of -0.0 (unknown)  3.6% MPlayer interrupted by signal 2 in module: play_audio
A: 219.6 (03:39.6) of -0.0 (unknown)  3.6% Exiting... (Quit)
hairui@hadoop:~$

Ubuntu笔记本 在终端 听 收音机相关推荐

  1. Linux收音机软件,在Linux终端听收音机

    MPlayer是一个用途极为广泛的开源媒体播放器,在Linux命令行中非常有用. 在命令行里听音乐有很多种方式;如果您已经在本地存储了媒体,那么cmus是一个很好的选择,但是还有很多其他选择. 很多时 ...

  2. ubuntu笔记本 在终端 浏览网页

    hairui@hadoop:~$ sudo apt-get install w3m 正在读取软件包列表- 完成 正在分析软件包的依赖关系树 正在读取状态信息- 完成 下列软件包是自动安装的并且现在不需 ...

  3. linux 笔记本商用,戴尔预装Ubuntu笔记本即日起开售 商用机型为主,据Canonical

    戴尔预装Ubuntu笔记本即日起开售 商用机型为主,据Canonical Ubuntu的开发商Canonical今日宣布,与戴尔合作预装Ubuntu系统,戴尔未来将在中国百余家零售店向消费者出售预装U ...

  4. linux终端名字怎么改,Ubuntu系统把终端用户名改成红色的技巧

    Ubuntu系统很多文件和窗口都是以代码的形式显示的,这些代码中包括了终端用户名,如果能够Ubuntu系统把终端用户名改成红色,就可以方便用户查看.本文就来介绍一下Ubuntu系统把终端用户名改成红色 ...

  5. 新版ubuntu中打开终端的方法和安装ssh 的方法

    新版ubuntu中打开终端的方法和安装ssh 的方法 首先按住Alt,然后按一下F2,出来一个运行框,在里面输入 gnome-terminal即可运行. 要安装ssh则可以在命令行中输入 下面的内容 ...

  6. Ubuntu下的终端多标签切换快捷键

    转自: Ubuntu下的终端多标签切换快捷键 - "温故而知新" - 博客园 https://www.cnblogs.com/hester/p/5570157.html 储备知识: ...

  7. linux终端窗口如何切换快捷键,【linux基础】Ubuntu下的终端多标签切换快捷键

    Ubuntu下的终端多标签切换快捷键 ubuntu下由于常在终端下工作,也同样需要在一个终端窗口下开启多个标签方便日常开发工作(vim党,尽量避免使用鼠标) 方法一: alt+1 alt+2 alt+ ...

  8. android手机听广播,RadioTime让你的android也能听收音机

    对于喜欢听收音机的机油来说,是不是非常怀念诺基亚的收音机功能呢?起码小编是这样的,只要插上耳机诺基亚就可以收听fm了,非常遗憾目前只有内置FM芯片的Desire和Incredible将获得FM收音机功 ...

  9. 推荐一款找回往日听收音机心情的小软件——龙卷风网络收音机

    今天在verycd在软件推荐栏中,看到了这款龙卷风网络收音机小软件,自己当时也只抱着好奇的心理,把它下载下来,接着安装到自己的电脑里.果然,如其介绍的那样,里面有全球3000多个电台. 打开软件,自己 ...

最新文章

  1. 你知道吗?du 和 df 的统计结果为什么不一样
  2. 夏意秋尽-08年1月
  3. 【设置字符集】Win7 64位系统安装MySQL5.5.21图解教程
  4. python tcp多个客户端连接服务器
  5. 机器学习的gridSearchCV调参
  6. 程序员相亲的血泪史,千万别做这些事情!
  7. esp8266 at接收数据中断时间_关于嵌入式系统中断优先级的一点思考
  8. redis雪崩、击穿、穿透
  9. flow_from_directory返回值
  10. 小学五年级计算机教学工作总结,小学五年级信息技术教学工作总结
  11. 图像分类之:经典机器学习 Battle 深度学习
  12. ESP8266 WIFI模块调试及在QT Windows下的通讯
  13. C语言包含特殊寄存器文件ch,c语言第二次实验报告 - osc_zfz30hgc的个人空间 - OSCHINA - 中文开源技术交流社区...
  14. MySQL 两张表数据合并
  15. Windows下如何快速查看并导出系统详细信息(计算机名、操作系统、系统制造商、系统型号、BIOS、CPU及内存大小)
  16. windows系统镜像里的×64和×86有什么区别?
  17. AOJ-AHU-OJ-6 Hero in Maze
  18. 都问我在阿里上班是什么体验?今天就闲聊一下在阿里上班的体验!
  19. paxos协议 对比_分布式一致性协议三部曲-深入理解一致性协议Paxos
  20. invalid mode 报错

热门文章

  1. C语言 typedef 简介
  2. profile参数详解
  3. 实战录 | 基于openflow协议的抓包分析
  4. wp-login.php 404页面,WordPress网站如何设置404页面
  5. 为了孩子快乐成长,我写了个迷宫游戏
  6. 管理信息系统案例分析_企业主被税务局约谈,和金税三期有什么关系?(真实案例)...
  7. 项目管理中的成本管理如何理解?
  8. [原]VC极域电子教室相关功能的实现dll(差不多是“外挂”)
  9. 双路测径仪 系统测量检测
  10. 以给定值x为基准将单链表分割为两部分,所有小于x的结点都排在大于或等于x的结点之前。