Does RTSP support streaming file video MP4?

12,783

Solution 1

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?"

Solution 2

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.

Share:
12,783
Admin
Author by

Admin

Updated on June 04, 2022

Comments

  • Admin
    Admin almost 2 years

    Anyone know does RTSP support MP4 for streaming? Or what file video formats that RTSP support?