{"id":1472,"date":"2013-10-23T11:45:53","date_gmt":"2013-10-23T11:45:53","guid":{"rendered":"https:\/\/raspberry-projects.com\/pi\/?p=1472"},"modified":"2024-11-29T10:49:41","modified_gmt":"2024-11-29T10:49:41","slug":"streaming-video-using-vlc-player","status":"publish","type":"post","link":"https:\/\/raspberry-projects.com\/pi\/pi-hardware\/raspberry-pi-camera\/pre-bookworm-camera-use\/streaming-video-using-vlc-player","title":{"rendered":"Streaming Video Using VLC Player"},"content":{"rendered":"<h4>\nInstalling VLC Player<br \/>\n<\/h4>\n<pre>\r\n<code>\r\nsudo apt-get install vlc\r\n<\/code><\/pre>\n<p>\n&nbsp;\n<\/p>\n<h4>\nStreaming The Camera Video Using RTSP<br \/>\n<\/h4>\n<p>\nEnter the following command to start the streaming:\n<\/p>\n<pre>\r\n<code>\r\nraspivid -o - -t 0 -n | cvlc -vvv stream:\/\/\/dev\/stdin --sout &#39;#rtp{sdp=rtsp:\/\/:8554\/}&#39; :demux=h264\r\n<\/code><\/pre>\n<p>\nraspivid is used to capture the video\n<\/p>\n<p style=\"margin-left: 40px;\">\n&quot;-o -&quot; causes the output to be written to stdout\n<\/p>\n<p style=\"margin-left: 40px;\">\n&quot;-t 0&quot; sets the timeout to disabled\n<\/p>\n<p style=\"margin-left: 40px;\">\n&quot;-n&quot; stops the video being previewed (remove if you want to see the video on the HDMI output)\n<\/p>\n<p>\ncvlc is the console vlc player\n<\/p>\n<p style=\"margin-left: 40px;\">\n&quot;-vvv&quot; and its argument specifies where to get the stream from\n<\/p>\n<p style=\"margin-left: 40px;\">\n&quot;-sout&quot; and its argument specifies where to output it to&nbsp;\n<\/p>\n<h5>\nOptions<br \/>\n<\/h5>\n<p>\nSpecifying the camera resolution\n<\/p>\n<pre>\r\n<code>\r\nraspivid -o - -t 0 -n -w 600 -h 400 -fps 12 | cvlc -vvv stream:\/\/\/dev\/stdin --sout &#39;#rtp{sdp=rtsp:\/\/:8554\/}&#39; :demux=h264\r\n<\/code><\/pre>\n<p>\n-w\n<\/p>\n<p style=\"margin-left: 40px;\">\nWidth available range: 64 to 1920&nbsp;\n<\/p>\n<p>\n-h\n<\/p>\n<p style=\"margin-left: 40px;\">\n<span style=\"font-size: 10px;\">Height available&nbsp;<\/span><span style=\"font-size: 10px;\">range:&nbsp;<\/span><span style=\"font-size: 10px;\">64 to 1080&nbsp;<\/span>\n<\/p>\n<p>\n-fps\n<\/p>\n<p style=\"margin-left: 40px;\">\nFrames per second: 2 to 30 (may change in the future)\n<\/p>\n<h4>\nViewing The RTSP Stream Over The Network<br \/>\n<\/h4>\n<p>\nYou need a player which supports RTSP, for instance VLC, Quicktime, etc. &nbsp;Open a network stream using\n<\/p>\n<pre>\r\n<code>\r\nrtsp:\/\/###.###.###.###:8554\/\r\n<\/code><\/pre>\n<p>\nwhere&nbsp;<span style=\"font-size: 10px;\">###.###.###.### is the IP address of the RPi.<\/span>\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;\n<\/p>\n<p>\n&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Installing VLC Player sudo apt-get install vlc &nbsp; Streaming The Camera Video Using RTSP Enter the following command to start the streaming: raspivid -o &#8211; -t 0 -n | cvlc -vvv stream:\/\/\/dev\/stdin &#8211;sout &#39;#rtp{sdp=rtsp:\/\/:8554\/}&#39; :demux=h264 raspivid is used to capture the video &quot;-o -&quot; causes the output to be written to stdout &quot;-t 0&quot; sets [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[196],"tags":[],"class_list":["post-1472","post","type-post","status-publish","format-standard","hentry","category-pre-bookworm-camera-use"],"_links":{"self":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1472","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/comments?post=1472"}],"version-history":[{"count":7,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1472\/revisions"}],"predecessor-version":[{"id":1520,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/posts\/1472\/revisions\/1520"}],"wp:attachment":[{"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/media?parent=1472"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/categories?post=1472"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/raspberry-projects.com\/pi\/wp-json\/wp\/v2\/tags?post=1472"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}