Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does RTSP support streaming file video MP4?

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

like image 781
oattie Avatar asked Dec 07 '22 00:12

oattie


2 Answers

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

like image 101
Cipi Avatar answered Dec 26 '22 23:12

Cipi


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.

like image 21
Max Lapshin Avatar answered Dec 27 '22 00:12

Max Lapshin