RTMP:有这样的linux命令行工具吗? [英] RTMP: Is there such a linux command line tool?

查看:350
本文介绍了RTMP:有这样的linux命令行工具吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到无处不在找到一个linux实用程序,将允许我下载rtmp流。不是flv视频,而是MP3流。我想下载的流的位置采用此格式。

I have looked everywhere to find a linux utility that will allow me to download rtmp streams. Not flv video but MP3 streams. The location of the streams I want to download are in this format.

rtmp://live.site.com/loc/45/std_fc74a6b7f79c70a5f60.mp3

任何人都知道这样的命令行工具?

Anyone know of such a command line tool? Or even anything close to what I am asking for?

我不想使用完整的软件应用程序,如果它通过Shell或其他东西在Linux上运行的话会很好。

I do not want full software applications and it would be great if it worked on Linux via Shell or something.

感谢所有

推荐答案

使用RTMP访问编译的 mplayer vlc

One of the following should do, if you have mplayer or vlc compiled with RTMP access.


mplayer -dumpstream rtmp://live.site.com/loc/45/std_fc74a6b7f79c70a5f60.mp3

生成 ./ stream.dump


vlc -I dummy rtmp://live.site.com/loc/45/std_fc74a6b7f79c70a5f60.mp3 \
    --sout file/ts:output.mpg vlc://quit

这将生成一个 ./ output.mpg 。您必须将其解压缩才能解压出音频流。

This will generate a ./output.mpg. You'll have to demux it to extract just the audio stream out.

这篇关于RTMP:有这样的linux命令行工具吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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