RTSP 支持流媒体文件视频 MP4 吗?
有人知道 RTSP 支持 MP4 流媒体吗?或者RTSP支持哪些文件视频格式?
Anyone know does RTSP support MP4 for streaming? Or what file video formats that RTSP support?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
RTSP 是一种实时流传输协议。您可以以任何您想要的格式流式传输任何数据,包括文本、音频、视频、演示文稿……砖块……无论什么,您都可以使用 RTSP。
主要思想是,当新的流媒体会话打开时,您必须使用 SDP 响应向客户端描述您的流媒体内容< a href="http://www.faqs.org/rfcs/rfc2327.html">(会话描述协议)。你说“我的内容是视频,它有 N FPS,使用这个编解码器,这些是解码图片所需的参数......”,这样客户端就可以判断它是否可以再现流数据。
流媒体服务器不关心 MP4、MPEG2 或任何其他容器格式...只要服务器可以打开容器文件,它就可以通过 RTSP 流式传输其内容。
所以你的问题应该是:“这个 RTSP 服务器实现支持 MP4 文件格式吗?”
RTSP is a protocol for realtime streaming. You can stream any data, in any format you want including text, audio, video, presentation... bricks... no meter what, you can RTSP-it.
Main idea is that when new streaming session opens you have to DESCRIBE your streaming content to the client with a SDP response (Session Description Protocol). There you say "my content is video, it has N FPS, uses this codec, these are the required parameters for decoding a picture..." so the client can tell if it can reproduce the stream data.
Streaming server doesn't care for MP4, MPEG2 or any other container format... as long as the server can open a container file it can stream its contents over RTSP.
So your question should be: "Does this RTSP server implementation support MP4 file format?"
不要弄乱编解码器和容器。
RTSP 是一种协议,允许您创建流会话并配置 RTP 传输的详细信息。
RTP是一种将音频和视频帧打包并发送给客户端的协议。
音频和视频帧使用适当的编解码器编码为压缩表示。
RTP 允许您传输 AAC、H.264、MPEG4 等编解码器。因此,也许您将能够通过 RTP 流式传输 mp4 容器的内容。
Don't mess codec and container.
RTSP is a protocol, that allows you to create streaming session and configure details of RTP delivery.
RTP is a protocol that packs audio and video frames and send them to client.
Audio and video frames are coded with proper codecs into compressed presentation.
RTP allows you to transport such codecs as AAC, H.264, MPEG4. So perhaps you will be able to stream content of mp4 container via RTP.
是的。
来自 RfC 的摘要:实时流协议 (RTSP) 是一种应用程序级协议
用于实时控制数据传输的协议
RTSP
依赖 SDP 来公布编解码器及其参数。不过,祝你好运,编写一个准确描述您的视频文件的 SDP 正文。视频编解码器和传输标准的无尽组合是一个巨大的混乱。
Yes.
From the RfC's abstract: The Real Time Streaming Protocol, or RTSP, is an application-level
protocol for control over the delivery of data with real-time
properties.
RTSP relies on SDP to announce codecs and their parameters. Good luck with composing an SDP body that accurately describes your video file, though. Video codec and transport standards in their endles combinations are a huge mess.