简体   繁体   English

将音频流URL与wpaudio或任何其他此类脚本一起使用

[英]Using an audio stream URL with wpaudio or any other such script

I have bunch of audio stream URLs, like this one: http://popplers5.bandcamp.com/download/track?enc=mp3-128&id=1269403107&stream=1 (which, by the way, are from the incredible bandcamp . com) 我有一堆音频流URL,例如: http ://popplers5.bandcamp.com/download/track?enc=mp3-128&id=1269403107&stream=1(顺便说一下,它们来自不可思议的bandcamp。com)

I need to know how to use these with audio streaming scripts like the wpaudio plugin (wpaudio . com) Most of these plugins require a link to an actual mp3 file. 我需要知道如何将它们与wpaudio插件(wpaudio。com)等音频流脚本一起使用。大多数这些插件都需要链接到实际的mp3文件。 As you can see, the URL above is an audio stream, not an actual mp3. 如您所见,上面的URL是音频流,而不是实际的mp3。 How do I put the two together? 如何将两者放在一起?

If you visit that URL, your browser should start playing the audio stream. 如果您访问该URL,则浏览器应开始播放音频流。 I basically need to be able to embed the audio stream into a web page. 我基本上需要能够将音频流嵌入到网页中。

Thanks! 谢谢!

You can use mplayer: 您可以使用mplayer:

mplayer -dumpstream url

Check this page: 检查此页面:

for more information. 欲获得更多信息。

If this is not a live stream thing, as it looks like for the above file, you can use a simple wget: 如果这不是实时流内容(如上述文件所示),则可以使用简单的wget:

wget "http://popplers5.bandcamp.com/download/track?enc=mp3-128&id=1269403107&stream=1" -O outfile.mp3

Be sure to check copyright/licensing of the content before you do anything with it. 在对内容进行任何操作之前,请务必检查其版权/许可。

You can use WPaudio or any of the others you want, no problem. 您可以使用WPaudio或任何其他想要的东西,没问题。 There is absolutely no difference between that stream URL you posted, and a random MP3 file served up from somewhere. 您发布的流URL和从某个地方提供的随机MP3文件之间绝对没有区别。 At least, not from your browser's perspective. 至少不是从浏览器的角度来看。

Your browser has no idea, and does not care, how the source server gets its content. 您的浏览器不知道,也不关心源服务器如何获取其内容。 It's all HTTP, and the only thing your browser cares about is content type. 都是HTTP,您的浏览器唯一关心的就是内容类型。 Here's what that looks like: 看起来像这样:

Content-Type: audio/mpeg

Same as it would be if you tossed an MP3 up there. 与将MP3丢到那里一样。 No biggie. 没关系

Use WPaudio, or any other web MP3 player. 使用WPaudio或任何其他Web MP3播放器。 They all will work fine. 他们都将正常工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将音频流式传输到其他iOS设备(使用多路复用)并通过本地设备播放音频 - Stream audio to other iOS devices (using multipeer) AND play audio through local device 如何使用 Python 将音频文件(.mp3 或 .wav 或任何其他文件)转换为唯一的音频 ID? - How to convert an audio file (.mp3 or .wav or any other) to an unique audio id using Python? 如何将 jpeg 帧与未压缩的 mono 音频组合成 h264 stream 或开箱即用的 web 浏览器处理的任何其他格式? - How to combine jpeg frames with uncompressed mono audio into an h264 stream or any other format processed by web browsers out of the box? 如何使用PJSIP为iOS客户端应用捕获和翻译其他语言的传入音频流? - How to catch and translate incoming audio stream in other languages for an iOS Client app using PJSIP? 在Java Swing App中从URL流音频 - Stream audio from URL in java Swing App 有没有办法使用Javascript或任何其他网络语言捕获浏览器的音频? - Is there a way to capture a browser's audio using Javascript or any other web language? 如何在Linux上使用Qt或任何其他cpp框架播放wma音频文件? - How to play a wma audio file using Qt or any other cpp framework on linux? Android-如何使用网址从实时音频流/互联网广播频道中获取元数据 - Android - How to get metadata from a live audio stream/internet radio channel using url 使用Praat或任何其他音频处理工具从textGrid创建文本文件 - create text file from textGrid using Praat or any other audio processing tool 效果:如何使用表达式(或其他脚本方式)更改音频源? - After effects: How to change audio source using expressions (or other script way)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM