How to convert udp mpeg ts stream to http stream? - http

I'm trying to stream a live video on a website and I already have a udp mpeg-ts. I cannot show this stream on html so I wanna convert this stream to http on server then send it to clients. how can I do that using ffmpeg?
any other solution accepted too.
thank you

The key question is - do you need a low latency live streaming or 15-30 seconds latency is OK for you. If you don't need low latency, use ffmpeg to ingest your udp mpeg-ts and output HLS.
For low latency live streaming to web browsers, you will have to install a media server software, such as Wowza / Unreal Media Server / Red5 or similar.
The media server will ingest your udp mpeg-ts and will convert it to WebRTC streams playable by web browsers.

Related

RTMP uses TCP (by default) so how suitable is it for live streaming?

I'm investigating RTMP, because I'm going to implement the option to broadcast a live stream from an Android device to an RTMP server. I found out that RTMP uses TCP by default and TCP guarantees delivery of packets, by retrying if they fail. Doesn't this make RTMP very unsuitable for broadcasting live streams? If the broadcaster's connection temporarily weakens, it will lead to packets that are not able to be sent in time. The stream will then fall further and further behind because of this, instead of just skipping the missed fragments.
Is this conclusion correct, or am I missing something here? I am aware btw of RMFP, which uses UDP instead of TCP. Is this what broadcasters use for live broadcasting of RTMP?
The client that is pushing the video has the option to drop a video/audio frame if it begin to fall behind.

How to force stream RTP video with vlc over tcp protocol?

I'm trying to stream a video via rtp with vlc, the default protocol is UDP, but its performance is very low (bitrate, resolution, smooth,..)
So, I want to use vlc with rtp to stream video over tcp protocol to gain higher performance.
Are there anyone can help me to force vlc streaming rtp over tcp protocol.
Please help me if you have any idea.
Thank you so much!
If you're using the command-line client then add the --rtsp-tcp options:
vlc --rtsp-tcp rtsp://path/to/stream
This article may be useful:
https://web.archive.org/web/20151117041313/http://www.wowza.com/forums/content.php?64-How-to-configure-VLC-media-player-for-RTSP-RTP-playback-(RTSP-RTP-interleaved-and-tuning)
This article explains how to configure the VideoLAN VLC media player to stream live or on demand streams through RTSP/RTP over TCP (RTSP/RTP interleaved). While HTTP streaming is a newer standard offering more features, RTSP/RTP streaming may work better when streaming through a firewall/router, which doesn't have UDP streaming open.

HTTP Live Streaming encoders

I'm developing an iPhone app which helps you stream videos from IP camera into your iPhone. Here I need to use HTTP Live streaming. I wanted to know about any encoders required to convert ip camera output to MPEG-2 transport stream. Thanks.
Might sound obvious but you could push the camera stream to some media server like Wowza, and transcode it to HLS there easily. HLS is "native" for iOS so your iPhone won't be having any troubles with playback.

Playing RTP stream in flex

I am trying to play the RTP playload in flex but no success. Can some enlighten me how to achieve this without using RTMP Server as middle ware.
You can't do that without using an RTMP server. The NetConnection class you find in Flex can send and receive RTMP streams, and those streams can have the same payload you find in RTP packets. Although, to unpack RTP packets and create RTMP packets you need an RTMP server like Wowza Media Server, or something alike.
There are several open source media servers you can use:
Red5
Wowza
RTMPD
Any of these would suit your purpose. Flex makes the client side pretty trivial too.

Tunnelling RTSP through HTTP

I need to send video stream between 2 mobile devices. Bada has no support for rtsp so i found its possible to tunnel it through http. can someone help me out with a sample on how to start of. Im new to bada application development.
bada has no RTSP per se, but it has sockets - Osp::Net::Sockets::Socket. I think your best bet is studying the description of RTSP and reimplementing it by hand over sockets. Since the bada sockets are not the same as POSIX sockets in terms of API (although I'm pretty sure bada sockets are a thin layer on top of POSIX ones), it's unlikely you'll find a ready made open source RTSP library.

Resources