G33K-TRICKS: Streaming
Showing posts with label Streaming. Show all posts
Showing posts with label Streaming. Show all posts

Saturday, February 25, 2023

Quick Guide to RTSP streaming related tools



Quick Guide to RTSP streaming related Tools

Real-time streaming protocol (RTSP) has become increasingly popular in recent years, particularly in the world of online video streaming. As a result, it is more important than ever to understand how to use RTSP effectively to provide the best possible experience to your users.

One of the key benefits of RTSP is that it allows for real-time streaming of media, meaning that there is little to no buffering or lag time. This is particularly important for applications such as online gaming, live events, and video conferencing, where any delay can significantly impact the user experience.

guide to rtsp streaming related tools
To help you make the most of RTSP, we will explore three popular applications that are commonly used for sending and receiving RTSP streams: GStreamer, VLC, and FFmpeg for Linux.

GStreamer is an open-source multimedia framework that provides a modular approach to building media streaming applications. It is widely used in Linux-based systems and is particularly popular for its flexibility and scalability.

VLC is another popular media player that supports RTSP streaming and is available for Windows, Mac, and Linux. It is known for its versatility and ability to handle a wide range of media formats, making it a popular choice for both personal and professional use.

FFmpeg is a command-line tool that can be used for a wide range of media processing tasks, including RTSP streaming. It is particularly powerful and flexible, with a wide range of options and filters that can be used to customize the streaming experience.

Overall, understanding how to use RTSP and the tools available for streaming media is becoming increasingly important in the digital age. By taking the time to learn about GStreamer, VLC, FFmpeg, and other related technologies, you can ensure that your streaming applications provide the best possible experience to your users.


GStreamer

Installing GStreamer:

sudo apt install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0- tools gstreamer1.0-x gstreamer1.0-alsa gstreamer1.0-gl gstreamer1.0-gtk3 gstreamer1.0-qt5 gstreamer1.0-pulseaudio

View all plugins:

# conda deactivate 

gst-inspect-1.0 -a

Play ~/Videos/test.mp4file :

gst-launch-1.0 filesrc location=~/Videos/test.mp4 ! decodebin ! autovideosink

Play /dev/video0webcam:

gst-launch-1.0 v4l2src device=/dev/video0\

!video/x-raw, format=YUY2, width=640, height=480, framerate=30/1 \

!autovideosink /dev/video0


GStreamer RTSP Server

Compile test-launchexample :

sudo apt install libgstreamer1.0-dev libgstrtspserver-1.0

git clone https://github.com/GStreamer/gst-rtsp-server.git

cd gst-rtsp-server/

git checkout 1.18

cd examples/

gcc test-launch.c -o test-launch $(pkg-config --cflags --libs gstreamer-rtsp-server-1.0)


test-launchSend RTSP test stream with:

$ ./test-launch "videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96" 

stream ready at rtsp://127.0.0.1:8554/test


gst-launch Receive RTSP test stream with:

gst-launch-1.0 playbin uri=rtsp://127.0.0.1:8554/test



Send RTSP totest-launch

Send ~/Videos/test.mp4file :

./test-launch "filesrc location=/home/user/Videos/test.mp4 ! decodebin ! x264enc ! rtph264pay name=pay0 pt=96"

Send /dev/video0 webcam:

./test-launch "v4l2src device=/dev/video0 ! video/x-raw,format=YUY2,width=640,height=480 ! videoconvert ! x264enc ! rtph264pay name=pay0 pt=96"


Receive RTSP, togst-launch

gst-launch-1.0 playbin uri=rtsp://127.0.0.1:8554/test

 # or 

gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! decodebin ! autovideosink


VLC

To Install VLC
sudo snap install vlc

 # run below command to grant camera permission 
snap connect vlc:camera :camera 

To find available modules:
vlc --list

To Play ~/Videos/test.mp4file :
vlc file:///home/user/Videos/test.mp4

To Play /dev/video0webcam:
vlc v4l2:///dev/video0:chroma=mjpg:width=640:height=480:fps=30

Send RTSP tovlc

Send ~/Videos/test.mp4file :
vlc file:///home/user/Videos/test.mp4 \
--sout '#transcode{vcodec=h264}:rtp{sdp=rtsp://:8554/test}'


Send /dev/video0webcam:
vlc v4l2:///dev/video0:chroma=yuyv:width=640:height=480:fps=30 \
--sout '#transcode{vcodec=h264,width=640,height=480}:rtp{sdp=rtsp://:8554/test}'


Receive RTSP, tovlc
vlc rtsp://127.0.0.1:8554/test

FFmpeg

To Install FFmpeg:

sudo apt install ffmpeg

Send RTSP to ffserver

Configuration ffserver.conf:

HTTPPort  8091 
HTTPBindAddress  0.0.0.0 
RTSPPort  1554 
MaxHTTPConnections  2000 
MaxClients  1000 
MaxBandwidth  1000 
CustomLog -

<Stream test.mp4> 
  File  "/home/user/Videos/test.mp4" 
  Format rtp
 </Stream>

To Start ffserver:

$ nohup ffserver -f ffserver.conf &

$ tail nohup.out
  libavcodec 57.107.100 / 57.107.100
  libavformat 57.83.100 / 57.83.100
  libavdevice 57.10.100 / 57.10.100
  libavfilter 6.107.100 / 6.107.100
  libavresample 3. 7. 0 / 3. 7. 0
  libswscale 4.8.100 / 4.8.100
  libswresample 2.9.100 / 2.9.100
  libpostproc 54.7.100 / 54.7.100
Wed Apr 21 11:28:39 2021 Opening feed file '/home/user/Videos/test.mp4'  for stream 'test.mp4' 
Wed Apr 21 11:28:39 2021 FFserver started.

Receive RTSP to ffplay

ffplay rtsp://127.0.0.1:1554/test.mp4

$ sudo apt install ffmpeg

$ ffprobe ~/Videos/test.mp4
ffprobe version 3.4.8-0ubuntu0.2 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)
  configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/user/Videos/test.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.20.100
  Duration: 00:10:22.04, start: 0.000000, bitrate: 4205 kb/s
    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x1080, 4204 kb/s, 25 fps, 25 tbr, 1200k tbn, 2400k tbc (default)
    Metadata:
      handler_name    : VideoHandler


RTSP Streaming: A Comprehensive Guide


RTSP Streaming: A Comprehensive Guide


Streaming audio and video content over the internet has become increasingly popular, and Real Time Streaming Protocol (RTSP) is one of the most commonly used protocols for this purpose. In this article, we will provide a comprehensive guide to RTSP streaming, including its definition, how it works, its advantages and disadvantages, and its applications.

What is RTSP Streaming?

RTSP is a network control protocol used for streaming audio and video content over the internet. It was developed by the Internet Engineering Task Force (IETF) and was first introduced in 1998. RTSP is designed to work with a variety of streaming protocols, including RTP, RTCP, and HTTP.

How Does RTSP Streaming Work?

RTSP works by establishing a connection between the client and the server. The client sends a request to the server, asking for a particular audio or video stream. The server responds with a description of the stream, including its format and location. The client then sends a second request to the server, asking for the stream to be delivered.

Advantages of RTSP Streaming

There are several advantages of using RTSP for streaming audio and video content:
Real-time delivery: RTSP enables real-time delivery of audio and video content, which is essential for live events such as sports, concerts, and news broadcasts.
High quality: RTSP supports high-quality audio and video streaming, which is ideal for delivering high-resolution content.
Interactivity: RTSP enables two-way communication between the client and the server, allowing for interactive applications such as video conferencing and online gaming.
Security: RTSP supports encryption and authentication, providing secure delivery of audio and video content over the internet.

Disadvantages of RTSP Streaming

There are also some disadvantages to using RTSP for streaming:
Complexity: RTSP is a complex protocol that requires specialized software and hardware to implement.
Bandwidth requirements: RTSP requires a significant amount of bandwidth to deliver high-quality audio and video content, which can be expensive for some users.
Latency: RTSP can introduce latency, which can be a problem for live events where real-time delivery is critical.


Applications of RTSP Streaming

RTSP is used in a variety of applications, including:
Live events: RTSP is commonly used for live events such as sports, concerts, and news broadcasts.
Video conferencing: RTSP enables two-way communication between clients, making it ideal for video conferencing and other interactive applications.
Security systems: RTSP is used in security systems to stream video from surveillance cameras to central monitoring stations.
Gaming: RTSP is used in online gaming to enable real-time multiplayer games.

Conclusion

RTSP is a powerful protocol for streaming audio and video content over the internet. It enables real-time delivery of high-quality content and supports interactive applications such as video conferencing and online gaming. However, it is a complex protocol that requires specialized software and hardware to implement and can introduce latency. Despite these challenges, RTSP remains a popular choice for streaming audio and video content over the internet. 

 Please also take some time to read other article on Free Test RTSP Samples URLs and streaming links.

Friday, August 28, 2020

Live H264 and MPEG4 Online Video Streams


MPEG4 and H.264 LIVE TELEVISION VIDEO STREAMS COLLECTION LIST

MPEG4 and H264 URLs Streams Lists

What is MPEG4?

An MPEG4 file is a video file saved in the MPEG-4 container format. It includes both audio and video data and supports multiple A/V codecs. MPEG4 files are commonly used for distributing video content over the web and for streaming videos on the Internet. MPEG4 files. MPEG4 files typically have an .MP4 file extension.

What is H264?

H.264 is the one of the most used codec in the world. It can be seen in streaming areas, discs, prominantly in broadcasting too. Using this Codec comes with royality expenses so one should consider that before using this. Other factors that should be taken into consideration are comparative quality against other available technologies, like WebM from Google , as well as the general availability of decoding capabilities on different devices.
Adding List that I found across with live steaming channel and Live Video feeds.
They can be viewed easily on most of the Video Player like VLC.

If you want to read about how to stream them , you can check that here.

SECOND-LIFE TV CHANNELS

1. Metaverse Broadcasting Corporation

http://www.metaverse-tv.com

* MBC

rtsp://198.64.249.22:554/mbc.sdp

Digital Broadcast Channel

2. *DBC Live

rtsp://digitalbroadcast.streamguys.net/live-studio.sdp

3. *DBC SL CH 8

rtsp://digitalbroadcast.streamguys.net/slch08.sdp ( off line sometimes)

4. *DBC Music ( off air sometimes)

rtsp://digitalbroadcast.streamguys.net/music.sdp

5. *DBC Jazz – check out the live performances in Second Life

rtsp://digitalbroadcast.streamguys.net/jazzbar.sdp

Second Life Cable Network CHANNELS http://www.slcn.tv

6. * SLCN Live – This stream plays live shows as well as cycling repeats of the most recently recorded shows. The live production days are Thursday and Sunday from around 2pm to 9pm.

http://streams.slcn.tv/live.mov

rtsp://media-us-1.soundreach.net/slcnlive.sdp

7. * SLCN Shopping – get to know the people behind your favorite Second Life shops and products on ShoppingSL

http://streams.slcn.tv/shopping.mov

8. * SLCN Music – check out the live performances in Second Life

http://streams.slcn.tv/music.mov

9. *SLCN Business – features presentations and discussions for the business and technical community

http://streams.slcn.tv/business.mov

10. *SLCN Lifestyle – all of our talk and entertainment shows

http://streams.slcn.tv/lifestyle.mov

rtsp://media-us-2.soundreach.net/slcn_lifestyle.sdp

11. *SLCN Sports – featuring the ice hockey, slascar, snail races, sailing and more

http://streams.slcn.tv/sports.mov

rtsp://media-us-2.soundreach.net/slcn_sports.sdp

12. * SLCN Community – panel discussions, presentations and interviews

http://streams.slcn.tv/community.mov

rtsp://media-us-2.soundreach.net/slcn_community.sdp

13. * SLCN Guide – let’s you know what is coming up on SLCN live

http://streams.slcn.tv/guide.mov

14. *SLCN Metaversed – A dedicated stream for metaversed.com content

http://streams.slcn.tv/metaversed.mov

rtsp://media-us-2.soundreach.net/slcn_metaversed.sdp


OTHER WORLD WIDE TV CHANNELS


AmericaFree.TV

http://www.americafree.tv


http://www.americafree.tv/unicast_mov/MusicVideosOnTheI.mov

rtsp://streaming.multicasttech.com/MusicVideosOnTheI.sdp


http://www.americafree.tv/unicast_mov/AmericaFreeTVComedy.mov

rtsp://streaming.multicasttech.com/AmericaFreeTVComedy.sdp


IndyMovies.TV

http://www.indymovies.tv


High 1000 kbps

http://www.indymovies.tv/unicast_mov/AFTVIndyMoviesH2641000.mov

rtsp://video1.multicasttech.com/AFTVIndyMoviesH2641000.sdp

Medium 500 kbps

http://www.indymovies.tv/unicast_mov/AFTVIndyMoviesH264500.mov

rtsp://video1.multicasttech.com/AFTVIndyMoviesH264500.sdp

Low 250 kbps

http://www.indymovies.tv/unicast_mov/AFTVIndyMoviesH264250.mov

rtsp://video1.multicasttech.com/AFTVIndyMoviesH264250.sdp


http://www.crimefree.tv/unicast_mov/AFTVCrimeH264250.mov

rtsp://video2.multicasttech.com/AFTVCrimeH264250.sdp


http://www.westernsfree.tv/unicast_mov/AFTVWesternsH264250.mov


http://www.scififree.tv/unicast_mov/AFTVSciFiH264250.mov

rtsp://video2.multicasttech.com/AFTVSciFiH264250.sdp


http://www.cartoonsfree.tv/unicast_mov/AFTVCartoonsH264250.mov

rtsp://video3.americafree.tv/AFTVCartoonsH264250.sdp


NASA TV

http://www.nasa.gov/qtl/151335main_NASA_TV_QT.qtl

rtsp://a1352.l1857053128.c18570.g.lq.akamaistream.net/D/1352/18570/v0001/reflector:53128



ENGLISH / DUTCH – NEDERLANDS


*SLAM TV

Non stop music videos

http://www.true.nl/streams/dynamic/slamtv.mov

rtsp://stream01.qt.slamtv.true.nl/slamtv.sdp

rtsp://stream03.qt.slamtv.true.nl/slamtv.sdp

rtsp://stream04.qt.slamtv.true.nl/slamtv.sdp


*LIVE.NU 1

– Debates, lectures, culture, media experiments and more from Amsterdam or SL. (Dutch or english spoken)


rtsp://82.94.213.26/live.sdp

rtsp://82.94.213.26/live-low.sdp


ENGLISH / SLOVAKIAN


*Xentauri TV

http://mediahouse.xtv.sk

Music videos

http://mediahouse.xtv.sk/reference3.mov

RTSP://80.94.48.100/xtvhi.sdp


GERMAN – DEUTSCH


* Findaway.TV

http://www.findaway.tv

Berlin cultural alternative TV

rtsp://85.25.148.161:554/findawaytv


* OK43

http://www.ok43.de

Essen local TV

http://live.ok43.de/ok43dsl.mov


*OKTO

Community tv from Vienna

http://www.okto.tv/okto.mov

rtsp://kassandra.okto.tv:8001/okto.sdp


SPANISH – ESPANOL


*Espana Free TV

http://www.espanafree.tv

http://www.espanafree.tv/unicast_mov/EspanaFreeH264500.mov

rtsp://video1.multicasttech.com/EspanaFreeH264500.sdp


ITALIAN – ITALIANO


*Studio 3 Live

http://www.telespaziotv.com

rtsp://64.202.98.20/telespazio/Studio%203%20Live


*TelespazioTV

http://www.telespaziotv.com

rtsp://64.202.98.20/telespazio/Telespazio%20TV%20live


TAIWAN


*Hwazan TV

http://www.hztv.org

Bhuddist broadcasts

http://hztv.org/StreamingVideo/darwinstream128.mov

rtsp://157.238.224.42/HWAZAN_TV_128k


VIDEO-ON-DEMAND REFRESHED


NEWSCHANNEL 36

http://multimedia.stargazette.com/webcasts/webcast.mov


WEATHER

http://multimedia.stargazette.com/webcasts/weather/webcast.mov


Do not forget to check this another page for List of  Free Live TV channels for watching TV series, programs and movies and much more. Click Here.

Tuesday, July 28, 2020

RTSP Streaming URLs Sample List


Below is the Comprehensive List for Testing Audio Video (AV) streaming and RTSP Sample URLs:



Test videos for VLC - 

AMR-NB Test Audio Streaming:

AMR-WB Test Audio Streaming:

AAC Test Audio Streaming:

EAAC Test Audio Streaming:

MP3 Test Audio Streaming:

M4A Test Audio Codec Streaming:

MP4 Test Audio Codec Streaming:

RTSP Test Links with IP:

H.264 Test Video codec Streaming:

MPEG4 Test Video Codec Streaming:

H.263 Test video codec:

Other Useful Test Links for different Audio/Video Codecs:

H.264 and H.265/HEVC encoded .mkv video clips for testing the network streaming and playback performance of HTPCs and media streamers

http://jell.yfish.us


3D Video Links (Thanks to uploader)

You may also want to Read my New Post: HOW TO Speed Up your Browser RTSP Streaming Tools
And best of my list of HLS test link HLS sample test links
Check out the Audio Test links  and Free Sample MP3 Files for testing

free rtsp streaming url
rtsp stream url
rtsp url sample
rtsp url sample list
rtsp steaming url
test rtsp url
free test rtp url
Rtsp test urls
Rtsp test links H264 Test Links
test streaming url
rtsp url sample link
rtsp urls
List of rtsp url
List of rtsp sample urls free rtsp urls videos

Fair use is claimed on all non-copyleft clips, as their the purpose is only for testing, technical evaluation, and documentation. None of Content belongs to me. These are just links.