简体   繁体   English

如何将直播视频流化并转换为mp-4。 如何使用FFMPEG?

[英]How to stream and convert live video into mp-4. How to use FFMPEG?

I am developing iphone application which requires live video stream (Flash or any other) to be run on iphone. 我正在开发需要实时视频流(Flash或任何其他)才能在iphone上运行的iphone应用程序。 Can anybody help me to stream live video using HTTPLiveStreaming. 有人可以帮助我使用HTTPLiveStreaming流实时视频吗? And i want to use FFMPEG converter for converting video into mp4. 我想使用FFMPEG转换器将视频转换为mp4。 Is there any step by step documentation to use ffmpeg into iphone sdk? 是否有逐步文档将ffmpeg用于iphone sdk?

Any help would be appreciable. 任何帮助将是可观的。 Thanks in Advance. 提前致谢。

For live streams, Apple provides a free tool to make media segment files and playlists from live MPEG-2 transport streams carrying H.264 video, AAC audio, or MP3 audio. 对于实时流,Apple提供了一个免费工具 ,可以从包含H.264视频,AAC音频或MP3音频的实时MPEG-2传输流中制作媒体片段文件和播放列表。 There are a number of hardware and software encoders that can create MPEG-2 transport streams carrying MPEG-4 video and AAC audio in real time. 有许多硬件和软件编码器可以创建实时传输MPEG-4视频和AAC音频的MPEG-2传输流。

There is no reason to use a huge FFMPEG library. 没有理由使用庞大的FFMPEG库。 If you send live video to iOS device then this video should be compatible with iOS (and most likely it will already be such as MP4). 如果您将实时视频发送到iOS设备,则该视频应与iOS兼容(并且很可能已经是MP4之类的视频了)。 You just send this video stream to media player(MPMoviePlayerController) and all will works fine. 您只需将此视频流发送到媒体播放器(MPMoviePlayerController),一切都会正常运行。 See also HTTP Live Streaming Overview 另请参见HTTP实时流概述

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM