Http实时流 - 在Linux上分段mp3 [英] Http Live Streaming - Segmenting mp3 on Linux

查看:473
本文介绍了Http实时流 - 在Linux上分段mp3的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我只想在任何linux发行版(最好是CentOS)中为HTTP Live Streaming分段mp3,以便将音频流传输到iOS应用程式。

I simply want to segment an mp3 for HTTP Live Streaming in any linux distro (preferably CentOS) for the purpose of audio streaming to an iOS app.

linux分割器,我可以得到以下在CentOS中编译。

Out of the linux segmenters, I can get the following to compile in CentOS.


  1. http://wiki.andy-chu.com/doku.php?id=http_live_streaming (不确定上次更新时间)

  1. http://wiki.andy-chu.com/doku.php?id=http_live_streaming (not sure last time this was updated)

m3u8-segmenter on github(updated months ago)

m3u8-segmenter on github (updated months ago)

https://github.com/carsonmcdonald/HTTP-Live-Video-Stream-Segmenter-and-Distributor [ruby wrappers + c](最后2年前更新,9个月前的v2版本)

https://github.com/carsonmcdonald/HTTP-Live-Video-Stream-Segmenter-and-Distributor [ruby wrappers + c] (last updated 2 years ago, and a v2 branch 9 months old)

对于分段,这里是ffmpeg转换字符串生成有效的ts文件:

In order to prep the file for segmenting, here is the ffmpeg conversion string to generate a valid ts file:

$ ffmpeg -er 4 -i input.mp3 -f mpegts -acodec libmp3lame -ar 22050 -ab 32k -vn output.ts

$ ffmpeg -er 4 -i input.mp3 -f mpegts -acodec libmp3lame -ar 22050 -ab 32k -vn output.ts

每个分段器都需要各种输入开关,所有操作都很简单,并且都出现seg故障。 #2实际上做了一些分段,但是每次56段后的故障。我试过各种mp3s有相同的结果。问题排队2& 3是满的,没有响应在几个月的相同的问题。

Each of the segmenters require various input switches, all quite simple, and all crash out with a seg fault. #2 actually does some segmenting, but faults after 56 segments every time. I've tried various mp3s with the same results. The issue queues for 2 & 3 are full, with no responses in months of the same issues.

其他人必须在没有运行OSX的实时生产环境中。你的方法是什么?

Others must be doing this in a live production environment that isn't running OSX.. what are your methods?

推荐答案

您应该尝试使用httpsegmenter @ http://code.google.com/p/httpsegmenter/
它是基于segmenter.c

You should try httpsegmenter @ http://code.google.com/p/httpsegmenter/ It is based on the segmenter.c

我编译并创建了分段的mp3,aac,mp4。
匹配所有编译要求可能很棘手,但之后只是按照说明。

I've compiled and created segmented mp3, aac, mp4. It can be tricky to match all the compilation requirements, but after that is just "follow the instructions".

对于这个分段器,你不需要创建一个mpeg-ts与mp3内容。只需将mp3作为输入。

For this segmenter you don't need to create a mpeg-ts with the mp3 content. Just give the mp3 as input.

这篇关于Http实时流 - 在Linux上分段mp3的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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