Популярное

Музыка Кино и Анимация Автомобили Животные Спорт Путешествия Игры Юмор

Интересные видео

2025 Сериалы Трейлеры Новости Как сделать Видеоуроки Diy своими руками

Топ запросов

смотреть а4 schoolboy runaway турецкий сериал смотреть мультфильмы эдисон
dTub
Скачать

Using VLC to stream RTSP to a Website

Автор: ICR-Brandon

Загружено: 2018-03-19

Просмотров: 149055

Описание:

I. Open VLC and select "Open Network Stream" via the Media menu.

II. Input your IP camera's RTSP string (credentials included) i.e
rtsp://test:[email protected]:554/cam/realmonitor?channel=1&subtype=1
which would be for my specific IP camera.

III. Click the down arrow next to the Play button and select "Stream".

IV. For the destination set it to "HTTP" then select "ADD". In the port field this is where you can set what port VLC uses to stream the video. In this example I used 52498. The path you can leave as "/".

V. Check the box for Activate Transcoding and set the profile to "Video - Theora + Vorbis (OGG).

VI. Click the Screwdriver + Wrench icon, set encapsulation to Ogg/Ogm, the video codec to "Theora" then set the bitrate to what you want to broadcast the stream to your site at (for what its worth I simply use the same bit rate as I am having the camera stream at. In addition you can also set your framerate

VII. Using the sub tab "Resolution" you can use "Auto" for scale, width, and height. You can disable the audio codec if you camera does not have a mic or do not want to broadcast the audio, & disable subtitles. Finally click "Save" then "Next".

VIII. Check the box for "Stream all elementary streams" and then click "Stream". Keep in mind VLC will show a black box where video would normally be which is intended. You should see the video timer moving just above the Pause/Play button.

IX. Then drop this code into your page:

video id="video" src="http://IP_of_VLC_computer:VLC_Port" autoplay="autoplay" width="videowidth" height="videoheight"/video

One of mine is as follows:

video id="video" src="http://192.168.0.4:8080" autoplay="autoplay" width="704" height="480" /video

-----
Disclaimer: Youtube doesn't allow angle brackets in video descriptions. If you do not know where to put angle brackets in the code listed above then google "video tag html5" or look for my post on StackOverflow.
-----

X. Load your web page to see what the video looks like. Do not be concerned if you see what looks like a green screen. Just refresh the page every 5 secs or so to force the page to update the stream. That is common with RTSP video transport.

To sum it up you are turning your PC into a transcoder by way of VLC to spit out RTSP video that is HTML5 friendly.

Using VLC to stream RTSP to a Website

Поделиться в:

Доступные форматы для скачивания:

Скачать видео mp4

  • Информация по загрузке:

Скачать аудио mp3

Похожие видео

array(10) { [0]=> object(stdClass)#4270 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "efKm00MQgng" ["related_video_title"]=> string(71) "Мы победили Jeep! Все было так просто…" ["posted_time"]=> string(21) "1 день назад" ["channelName"]=> string(34) "ИЛЬДАР АВТО-ПОДБОР" } [1]=> object(stdClass)#4243 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "3cJk1C1aHl0" ["related_video_title"]=> string(104) "Путин предложил остановить войну / Президент достиг цели" ["posted_time"]=> string(21) "3 часа назад" ["channelName"]=> string(10) "NEXTA Live" } [2]=> object(stdClass)#4268 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "0OgP9C_1qLQ" ["related_video_title"]=> string(133) "ПОЛНЫЙ ОТРЫВ ОТ РЕАЛЬНОСТИ. Главная слабость Путина, которая его погубит" ["posted_time"]=> string(21) "3 часа назад" ["channelName"]=> string(19) "Майкл Наки" } [3]=> object(stdClass)#4275 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "aPdEzyf8Kk0" ["related_video_title"]=> string(134) "Comedy Club: Борьба с тарелочницами | Екатерина Шкуро, Никита Никитин @ComedyClubRussia" ["posted_time"]=> string(24) "10 часов назад" ["channelName"]=> string(11) "Comedy Club" } [4]=> object(stdClass)#4254 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "shv1h5mRIdA" ["related_video_title"]=> string(26) "Add RTSP Stream To Website" ["posted_time"]=> string(21) "3 года назад" ["channelName"]=> string(14) "TheHiTechNomad" } [5]=> object(stdClass)#4272 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "n-EdUHNK9UI" ["related_video_title"]=> string(75) "Setup your own RTMP Server to Receive and Redistribute Live Streaming Video" ["posted_time"]=> string(21) "4 года назад" ["channelName"]=> string(24) "Doug Johnson Productions" } [6]=> object(stdClass)#4267 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "rp_unAZHcVo" ["related_video_title"]=> string(115) "Шокирующее заявление президента / Выставлен резкий ультиматум" ["posted_time"]=> string(24) "14 часов назад" ["channelName"]=> string(10) "NEXTA Live" } [7]=> object(stdClass)#4277 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "rgWVm_j3llo" ["related_video_title"]=> string(65) "RTSP Webcam to HLS Live Streaming using FFMPEG and XAMPP | PART 1" ["posted_time"]=> string(21) "4 года назад" ["channelName"]=> string(12) "Andy Fordham" } [8]=> object(stdClass)#4253 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "-Vd1aesu1lY" ["related_video_title"]=> string(102) "Арестович: Украина и Россия перепутали врагов. @yulialatynina71" ["posted_time"]=> string(22) "22 часа назад" ["channelName"]=> string(17) "Alexey Arestovych" } [9]=> object(stdClass)#4271 (5) { ["video_id"]=> int(9999999) ["related_video_id"]=> string(11) "9PxBSOO-8mc" ["related_video_title"]=> string(176) "ЛИПСИЦ: Рубль вышел из-под контроля. Все хотят доллар по 100. Власть России любит идиотов. Инфляция" ["posted_time"]=> string(23) "5 часов назад" ["channelName"]=> string(29) "Ходорковский LIVE" } }
Мы победили Jeep! Все было так просто…

Мы победили Jeep! Все было так просто…

Путин предложил остановить войну / Президент достиг цели

Путин предложил остановить войну / Президент достиг цели

ПОЛНЫЙ ОТРЫВ ОТ РЕАЛЬНОСТИ. Главная слабость Путина, которая его погубит

ПОЛНЫЙ ОТРЫВ ОТ РЕАЛЬНОСТИ. Главная слабость Путина, которая его погубит

Comedy Club: Борьба с тарелочницами | Екатерина Шкуро, Никита Никитин @ComedyClubRussia

Comedy Club: Борьба с тарелочницами | Екатерина Шкуро, Никита Никитин @ComedyClubRussia

Add RTSP Stream To Website

Add RTSP Stream To Website

Setup your own RTMP Server to Receive and Redistribute Live Streaming Video

Setup your own RTMP Server to Receive and Redistribute Live Streaming Video

Шокирующее заявление президента / Выставлен резкий ультиматум

Шокирующее заявление президента / Выставлен резкий ультиматум

RTSP Webcam to HLS Live Streaming using FFMPEG and XAMPP | PART 1

RTSP Webcam to HLS Live Streaming using FFMPEG and XAMPP | PART 1

Арестович: Украина и Россия перепутали врагов. @yulialatynina71

Арестович: Украина и Россия перепутали врагов. @yulialatynina71

ЛИПСИЦ: Рубль вышел из-под контроля. Все хотят доллар по 100. Власть России любит идиотов. Инфляция

ЛИПСИЦ: Рубль вышел из-под контроля. Все хотят доллар по 100. Власть России любит идиотов. Инфляция

© 2025 dtub. Все права защищены.



  • Контакты
  • О нас
  • Политика конфиденциальности



Контакты для правообладателей: [email protected]