How to Setup a Listening TCP or UDP Connection with FFMPEG | How to Stream a Video over TCP or UDP

preview_player
Показать описание
#ffmpeg #ffplay #tcp #tcpip #udp #stream #streaming
Welcome to Streaming Everyday. In this video, we will learn how to setup a listening TCP connection with ffmpeg, which is then accessed with ffplay:.

Transmission Control Protocol (TCP):
The Transmission Control Protocol (TCP) is one of the main protocols of the Internet protocol suite. It originated in the initial network implementation in which it complemented the Internet Protocol (IP). Therefore, the entire suite is commonly referred to as TCP/IP. TCP provides reliable, ordered, and error-checked delivery of a stream of octets (bytes) between applications running on hosts communicating via an IP network. Major internet applications such as the World Wide Web, email, remote administration, and file transfer rely on TCP, which is part of the Transport Layer of the TCP/IP suite. SSL/TLS often runs on top of TCP.
TCP is connection-oriented, and a connection between client and server is established before data can be sent. The server must be listening (passive open) for connection requests from clients before a connection is established. Three-way handshake (active open), retransmission, and error detection adds to reliability but lengthens latency. Applications that do not require reliable data stream service may use the User Datagram Protocol (UDP) instead, which provides a connectionless datagram service that prioritizes time over reliability. TCP employs network congestion avoidance. However, there are vulnerabilities in TCP, including denial of service, connection hijacking, TCP veto, and reset attack.

User Datagram Protocol (UDP) :
the User Datagram Protocol (UDP) is one of the core communication protocols of the Internet protocol suite used to send messages (transported as datagrams in packets) to other hosts on an Internet Protocol (IP) network. Within an IP network, UDP does not require prior communication to set up communication channels or data paths.
UDP uses a simple connectionless communication model with a minimum of protocol mechanisms. UDP provides checksums for data integrity, and port numbers for addressing different functions at the source and destination of the datagram. It has no handshaking dialogues and thus exposes the user's program to any unreliability of the underlying network; there is no guarantee of delivery, ordering, or duplicate protection. If error-correction facilities are needed at the network interface level, an application may instead use Transmission Control Protocol (TCP) or Stream Control Transmission Protocol (SCTP) which are designed for this purpose.

FFmpeg:

#######################################################################

How to Add Vintage Effect to Your Videos:

How to Create Your Own Web Video Player:

#######################################################################
Рекомендации по теме
Комментарии
Автор

You don't want to specify ?listen for upd:// like on tcp://

Gaamaa-ozeflfn
Автор

how can i send another video back to back? ffplay is listening and once video sending is done from ffmpeg side we can't able to send another video again on same url. Any solution?

sam-sbpx