flv流解码、3gp编码

发布于 2024-07-17 09:47:08 字数 533 浏览 7 评论 0原文

为了实现 flv 到 3gp 的转换,是否有我需要查看的任何语言的开源项目和其他资源? 最好是流式传输,我的意思是在下载 flv 的最后部分之前返回 3gp 的第一部分。

或者是否已经实施了任何类似的服务 - 我的目标是拥有类似的服务 http://converter.org?source=sourceUrl.flv&targetFormat=3gp 我可以将其提供给 3gp 播放器,就我而言 - 在 iPhone 上,而不是等到服务器下载整个 flv。

更新:ffmpeg 在这里做得非常好,仅

ffmpeg -i input.flv output.mp4

此而已。 但输出文件只有在转换完成后才能使用。 流媒体仍然是一个悬而未决的问题。 有 ffserver 可以进行某种流式传输,但我无法使其工作。

Are there any open source projects in any language and other recourses that I need to look at in order to implement flv to 3gp conversion? It's better to be streaming, I mean return first portion of 3gp before last portion of flv is downloaded.

Or are there any similar services already implemented - my goal is to have something like
http://converter.org?source=sourceUrl.flv&targetFormat=3gp that I can feed to 3gp player, in my case - on iPhone, and not wait until server downloads entire flv.

UPDATE: ffmpeg does really good job here, just

ffmpeg -i input.flv output.mp4

and that's it. But output file can be used only after conversion is done. Streaming is still an open question. There is ffserver that does some sort of streaming but I could not make it work.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

傾城如夢未必闌珊 2024-07-24 09:47:08

我不确定这是否可能,但是否应该做一件事。
它是 http://www.ffmpeg.org/ ..

它可以将任何内容转换为在线平台上的任何内容。 不知道它是否支持流媒体,但绝对是在线视频转换的最佳解决方案

I'm not sure if it is possible, but if there's one thing that should do it.
it's http://www.ffmpeg.org/ ..

it can convert anything to anything on an online platform. don't know if it supports streaming but definitely the best solution for online video conversion

久光 2024-07-24 09:47:08

好吧,这可能有点晚了,但要在线流式传输视频,您需要一个媒体流服务器来通过特定的流式传输协议(即 HTTP、HTTPS、RTSP、RTMP)传输视频。 我也一直在寻找这样的“实时”转码服务,但到目前为止我发现的最接近的是 Video CDN,它非常昂贵,而且格式/支持也有限。 如果其中一台媒体服务器添加实时转码功能,那就太好了。 截至撰写本文时,据我所知,尚不存在此类服务。

前 10 个最流行的媒体流服务器选项是(恕我直言):

  1. VideoLAN - VLC 媒体播放器(适合快速测试和概念验证)
  2. Kaltura - 开源视频平台
  3. Real Media - Helix 通用流服务器(可能是 RTSP 上 3GP 的最佳选择)
  4. Apple - Darwin 流服务器/Quicktime(直播) Broadcaster(最适合 iPhone/iPad)
  5. Red5 - 开源 Flash 流媒体服务器
  6. Adobe - Flash 流媒体服务器
  7. >Wowza - 媒体服务器
  8. FluMotion - 开源多媒体流
  9. Microsoft - Windows Media Server(AVIWMV strong>、Silverlight 和其他格式)
  10. FreeCast - 一个 OGG Theoris(视频)和 OGG(音频)流媒体/转换

平台看到有很多流媒体选项,您可以像在同一服务器上托管视频并通过 HTTP 传送到桌面计算机浏览器一样简单地开始(最简单的开始方法是试用和下载)。 错误)。 每个在支持的协议和转码方面都提供不同的功能,但没有一个是真正实时的,正如您提到的,您可以在其中输入源视频并以您选择的格式(即 3GP)获取输出视频。 我个人的选择是从 VLC 开始,在家庭网络上进行小规模测试,因为它基本上是桌面视频的瑞士军刀,也可以充当它可以播放的任何格式的服务器(尽管它可能将其传输到公共互联网会更复杂,甚至更难一直传输到私人运营商网络上的单个设备,尝试过的人可以提供一些信息):
http://forum.videolan.org/viewtopic.php?f=4& ;t=45782

转至 MP4 的一些基本转码说明(iPhone/iPad/iPod 需要):
http://wiki.videolan.org/MPEG-4

我也同意 FFMPEG 到目前为止视频转换的最佳解决方案,因为它还支持 3GP,并且您至少可以开始在自己的测试服务器上进行转换,您可能需要尝试以下 PHP 类项目:
http://www.phpclasses .org/package/5977-PHP-Manipulate-video-files-using-the-ffmpeg-program.html

根据我的经验,这对加速与 FFMPEG 大部分命令行的 Web 交互做出了巨大贡献有时界面很笨重。 谁知道呢,也许您会构建第一个实时转码服务,我将是第一个注册为客户和/或贡献者的人来帮助您!

Well this one might be a little late to the party but to stream video online you'll need a Media Streaming Server to deliver the video over a specific streaming protocol (i.e. HTTP,HTTPS,RTSP,RTMP). I've also been looking for such a "real-time" transcoding service but the closest thing I've found so far is the Video CDN's which are quite pricy, and also limited in formats/support. What would be really nice is for one of the media servers to add in a real-time transcoding feature. At the time of this writing no such service exists that I know of.

The top 10 most popular options for Media Streaming Servers are (IMHO):

  1. VideoLAN - VLC Media Player (good for quick tests and proof-of-concept)
  2. Kaltura - Open Source video platform
  3. Real Media - Helix Universal Streaming Server (may be best bet for 3GP over RTSP)
  4. Apple - Darwin Streaming Server / Quicktime (Live) Broadcaster (best for iPhone/iPad)
  5. Red5 - Open Source Flash Streaming Server
  6. Adobe - Flash Streaming Server
  7. Wowza - Media Server
  8. FluMotion - Open Source Multimedia Streaming
  9. Microsoft - Windows Media Server (AVI, WMV, Silverlight & other formats)
  10. FreeCast - An OGG Theoris (video) and OGG (audio) streaming/conversion platform

As you can see there are many options for streaming and you can start as simply as hosting the video on the same server and delivering to Desktop computer browsers via HTTP (the easiest way to get started with this is trial & error). Each offers different features in terms of protocols supported and transcoding, but none are truly real-time as you mention where you could feed in a source video and get an output video in the format of you choosing (i.e. 3GP). My personal choice would be to start with VLC for small-scale tests on a home network, since it is basically a swiss-army knife for desktop video that can also act as a server for any of the formats it can playback (though it may be more complicated to get this to stream to the public internet and even harder to go all the way to a single device on a private carrier network, some info is available from people who've tried):
http://forum.videolan.org/viewtopic.php?f=4&t=45782

Some basic transcoding instructions to go to MP4 (required for iPhone/iPad/iPods):
http://wiki.videolan.org/MPEG-4

I also agree about FFMPEG being by far the best solution for video conversion, as it also supports 3GP and you can at least start playing around with conversion on your own test server, you might want to try the following PHP Classes project:
http://www.phpclasses.org/package/5977-PHP-Manipulate-video-files-using-the-ffmpeg-program.html

In my experience that was an excellent contribution to speed web interaction with FFMPEG's mostly command-line and sometimes clunky interface. Who knows, maybe you'll build the first real-time transcoding service, I'd be the first to signup as a customer and/or as a contributor to help you on that!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文