mplayer 播放电台

MPlayer is a great movie player. SSH is a great tool to connect and transfer data over the network securely. Combining these 2 great tools together will be greater. You may already has a small server storing some movies or videos or music and playing them on your laptop will be convenient. In this post, we will introduce three methods to play movie using MPlayer over SSH.

MPlayer是一个很棒的电影播放器。 SSH是一个很好的工具,可以通过网络安全地连接和传输数据。 将这两个出色的工具组合在一起将变得更大。 您可能已经拥有一台小型服务器,用于存储一些电影,视频或音乐,在笔记本电脑上播放它们会很方便。 在本文中,我们将介绍通过SSH使用MPlayer播放电影的三种方法。

Here, we use the example that we want to play the movie file ~/movie.mp4 on user@example.org.

在这里,我们以要在user@example.org上播放电影文件〜/ movie.mp4的示例为例。

X11转发∞ (X11 forwarding ∞)

Use the -X option of the ssh client, we can enable X11 forwarding. (Read: ssh manual)

使用ssh客户端的-X选项,我们可以启用X11转发。 (阅读: ssh手册 )

ssh -X user@example.org mplayer ~/movie.mp4

The command is straightforward and you can also just connect to the remove server and invoke mplayer anytime you like. The drawback here is that there is no sound.

该命令非常简单,您也可以随时连接到删除服务器并调用mplayer。 这里的缺点是没有声音。

将ssh用作数据传输隧道∞ (Use ssh as a data transfer tunnel ∞)

MPlayer can play content from STDIN. We can use ssh to transfer the movie file

MPlayer可以播放STDIN中的内容。 我们可以使用ssh传输电影文件

ssh user@example.org cat ~/movie.mp4 | mplayer -

This is also handy. The drawback is that you can not seek back when you play the movie.

这也很方便。 缺点是播放电影时无法找回。

挂载远程目录通过ssh ∞ (Mount remote directory over ssh ∞)

This method is my favorite one.

这种方法是我最喜欢的一种。

We can mount a remote directory over ssh to our laptop (e.g. ~/remote) by:

我们可以通过ssh将远程目录挂载到我们的笔记本电脑(例如〜/ remote),方法是:

sshfs user@example.org: ~/remote

Read more on mount remote folder by ssh at Mounting Remote Folder Through SSH.

在SSH上安装远程文件夹上,通过ssh阅读有关安装远程文件夹的更多信息。

Then you can just use MPlayer open the movie under ~/remote by:

然后,您可以使用MPlayer打开〜/ remote下的影片:

mplayer ~/remote/movie.mp4

翻译自: https://www.systutorials.com/mplayer-over-ssh-to-play-movie-from-remote-host/

mplayer 播放电台

mplayer 播放电台_通过SSH的MPlayer从远程主机播放电影相关推荐

  1. android cda格式播放,cda格式播放器_什么软件可以支持.cda音频播放

    cda格式的视频用什么播放器能播放? cda格式是音乐CD光盘的默认格式,能在DVD,VCD,CD机中播放.但仅仅是音乐,没有视频.大部分的播放器都能播放这样的格式..有一点要注意,cda一般都是已经 ...

  2. java web 播放音频_使用Java ME以流形式播放Web服务器上的音乐文件

    本文介绍如何使用JavaME在SonyEricssonJava平台6或者更新的电话上,例如W550,W900等,以流形式播放Web服务器上的音乐文件.当然,音乐文件可以使用实时流媒体协议播放,但是这里 ...

  3. vue自定义音频播放组件_易于创建Vue的自定义音频播放器组件

    vue自定义音频播放组件 音频更好 (vue-audio-better) Easy to create custom audio player components for Vue.js. 易于为Vu ...

  4. java制作媒体播放器_用Java构造自己的媒体播放器

    一.概述 首先我们来看看构造这个媒体播放器要达到什么样的目标,确定了目标也就确定了代码量和程序的复杂程度.本文的媒体播放器要达到如下目标: 媒体播放器是一个菜单驱动的简单AWT应用. 媒体播放器包含一 ...

  5. mplayer 视频播放器_如何全屏播放视频并使它与MPlayer循环播放?

    mplayer 视频播放器 I would like to play a video file in full screen and automatically make it keep playin ...

  6. linux mplayer 一键安装,在 Linux 中安装 MPlayer

    Linux 上的 MPlayer 就好比是 Windows 上的 KMPlayer 或暴风影音,内含 Player 及各种 Codec,只要安装好,就可以播放任何格式的影片及音乐档,以下介绍 MPla ...

  7. linux mplayer分析,Linux系统下玩转 MPlayer

    Linux系统下玩转 MPlayer,MPlayer 是我在 Linux 系统中用到的相当好的媒体播放程序,它因支持播放广泛的音/视频文件格式而著称.本文所要探 MPlayer 是我在 Linux 系 ...

  8. pygame系列_原创百度随心听音乐播放器_完整版

    程序名:PyMusic 解释:pygame+music 之前发布了自己写的小程序:百度随心听音乐播放器的一些效果图 你可以去到这里再次看看效果: pygame系列_百度随心听_完美的UI设计 这个程序 ...

  9. [开源项目]Android_炫酷的3D音乐播放器_各种特效OpenGL

    这是 我见过最炫的一个音乐播放器了.里面包含各种特效OpenGL,先上图片...看看大家的反应. 3Dmusic3.png(48.63 KB, 下载次数: 34) 炫酷的3D音乐播放器_各种特效Ope ...

最新文章

  1. 万字长文 | 23 个问题 TCP 疑难杂症全解析
  2. mac攻略(1) -- 简单配置php开发环境
  3. Dijkstra模板(java)
  4. Mysql逻辑架构介绍
  5. P1268-树的重量【图论】
  6. java自动化执行javascript,Js代码执行__实现自动化
  7. 构建之法首周阅读体会
  8. RS485通信原理图及程序实例详解
  9. SCI 论文缩写使用心得
  10. Layout inflation的正确使用
  11. 数理统计实(试)验—双因素方差分析(有交互作用)excel操作分析方差分析表怎么看?
  12. 在浏览器输入localhost:3000显示需要新应用打开此localhost原因
  13. maven mybatis实现递归查询和使用存储过程
  14. Revit二次开发—内建类别BuiltInCategory枚举(中英文对照)
  15. java多线程学习笔记。
  16. 剪切后的文件可以恢复吗?恢复剪切文件怎么办?
  17. 淘宝近12亿条用户信息泄露,犯罪分子获利34万
  18. 列表、元组、字典、集合
  19. 「小组联考」第二周三次考试
  20. Java程序员,15家面试,几个offer , 我的面试历程!

热门文章

  1. 解决qrcode生成的二维码微信长按不识别问题
  2. 在Ubuntu 上安装和配置Snort 3 NIDS
  3. 作为产品经理,有必要考各种证书吗?比如:pmp,npdp
  4. OpenAI掌门人Sam Altman:AI的下一个发展阶段
  5. Android 装置CTS与GMS认证差异
  6. 搞定Opera的中文字体显示
  7. nagios安装使用指南
  8. 如何优雅的用Axure绘制高保真原型心得分享
  9. 带负荷测试要求二次最小电流_带负荷测试的判别
  10. Spring中Bean的生命周期以及三级缓存介绍