Author Topic: Streaming Hikvision on Youtube  (Read 7435 times)

0 Members and 1 Guest are viewing this topic.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Streaming Hikvision on Youtube
« on: May 13, 2017, 03:53:11 AM »
Working tonight will see if it keeps going.
I'm using ffmpeg, download your version here. https://ffmpeg.org/

More instructions on post #21 here: https://ipcamtalk.com/threads/how-to-stream-hik-2032-to-youtube-live.2651/

My camera settings I'll post image.


« Last Edit: May 13, 2017, 07:28:41 PM by ValentineWeather »
Randy

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Re: Streaming Hikvision on Youtube
« Reply #1 on: May 13, 2017, 08:23:57 AM »
Looks like it ran about 52 minutes before crashing. Its up again. I was reading in the forum I linked it does have issues, maybe someone can figure how to make it more steady and dependable.
Randy

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Re: Streaming Hikvision on Youtube
« Reply #2 on: May 13, 2017, 03:08:58 PM »
Another option for streaming I'm testing currently is called ipcamlive. A little pricey however but works excellent.
Randy

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Re: Streaming Hikvision on Youtube
« Reply #3 on: May 16, 2017, 11:34:04 PM »
Got the Hikvision going with sound using Blue Iris tonight. Seems stable so far I'll see how it does going into tomorrow before I say it will work. 

« Last Edit: May 17, 2017, 12:55:26 AM by ValentineWeather »
Randy

Offline zackdog

  • Forecaster
  • *****
  • Posts: 410
    • Winter Park Highlands Web cams
Re: Streaming Hikvision on Youtube
« Reply #4 on: May 17, 2017, 08:06:47 AM »
Looks good, Randy.  Looking and sounding like you are getting some t-storms.

Mark
"You don't need a weatherman to know which way the wind blows." - Dylan

Vantage Pro2 Plus w/ 24 hr FARS and (2) VantageVues

VP2 uploading via Vue console to CWOP, WU, PWS, and Weathercloud.


Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Re: Streaming Hikvision on Youtube
« Reply #5 on: May 17, 2017, 09:03:28 AM »
Its been wet and wild at times and will continue all week. Tornado touched down just west of town when we got the hail the other day. Some lady was thrown while in car is story I hear but can't confirm.
Randy

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Re: Streaming Hikvision on Youtube
« Reply #6 on: May 17, 2017, 10:02:58 AM »
Leaning toward just 1 camera and going with free service Youtube using BI. Not enough upload bandwidth with 2 cameras and using free service plus not sure they allow more than 1 stream. Deleted cameras from IPCAMLive.
Randy

Offline FreeMan

  • Member
  • *
  • Posts: 19
Re: Streaming Hikvision on Youtube
« Reply #7 on: May 27, 2017, 08:26:02 AM »
Working tonight will see if it keeps going.
I'm using ffmpeg, download your version here. https://ffmpeg.org/

More instructions on post #21 here: https://ipcamtalk.com/threads/how-to-stream-hik-2032-to-youtube-live.2651/

My camera settings I'll post image.

Been looking for a easy way to stream my hikvision cameras to youtube.

My webcams is set to 1/3 shutter 1 hour after sunset so I don't want the stream running at night. Just created a batch script to stop the stream 30 minutes after sunset.

Everything seems to be working fine so far.

Thanks for the tip.

Offline FreeMan

  • Member
  • *
  • Posts: 19
Re: Streaming Hikvision on Youtube
« Reply #8 on: May 27, 2017, 08:56:05 AM »
I'm using ffmpeg version 3.2.4. Had some issues with earlier versions, but not any problems so far with this version.

Code: [Select]
ffmpeg.exe -f lavfi -i anullsrc -rtsp_transport tcp -i rtsp://USER:PASS@IP:PORT/Streaming/Channels/101 -tune zerolatency -vcodec libx264 -pix_fmt + -c:v copy -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/SECRET

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Re: Streaming Hikvision on Youtube
« Reply #9 on: May 27, 2017, 09:00:55 AM »
Thanks, I'm stuck with on demand now because of bandwidth restrictions. But may help others out wanting to try.
I started with Webcam 7 but providing 1-4 FPS didn't care for nor did visitors.  :lol:
Cloud servers are the way to go with unlimited viewers and 25-30 FPS.
« Last Edit: May 27, 2017, 09:04:38 AM by ValentineWeather »
Randy

Offline FreeMan

  • Member
  • *
  • Posts: 19
Re: Streaming Hikvision on Youtube
« Reply #10 on: May 27, 2017, 09:24:39 AM »
That sucks. Lucky to have 300/300 Mbps internet connection here.

I have a Hikvision PTZ camera and hopefully getting it installed soon. Want to use the PTZ camera stream on Youtube.
I'm able to control the PTZ from batch script. That's going to be a little more fun to use PTZ than just a static picture.

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Re: Streaming Hikvision on Youtube
« Reply #11 on: May 27, 2017, 09:34:04 AM »
That will be nice...
Where I moved from in Az. had horrible internet, it was much better here but now my son reports they have Gigabyte service $75 month and I'm stuck with 25-2 for $55. Go figure.
Randy

Offline FreeMan

  • Member
  • *
  • Posts: 19
Re: Streaming Hikvision on Youtube
« Reply #12 on: May 27, 2017, 10:20:37 AM »
Was stuck with expensive 20/1 Mbps several years so know the feeling.

This is the PTZ camera
$398 from Aliexpress. No firmware restriction.

Here's some examples for controlling Hikvision PTZ from command line.
Might be useful for some.

Download curl from https://curl.haxx.se/download.html

Code: [Select]
Call Preset id 2
curl.exe -X PUT http://USER:PASS@CAMIP/PTZCtrl/channels/1/presets/2/goto

Start Patrol id 3
curl.exe -X PUT http://USER:PASS@CAMIP/PTZCtrl/channels/1/patrols/3/start

Stop Patrol
curl.exe -X PUT http://USER:PASS@CAMIP/PTZCtrl/channels/1/patrols/1/stop

Reboot camera
curl.exe -X PUT http://USER:PASS@CAMIP/System/reboot

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Re: Streaming Hikvision on Youtube
« Reply #13 on: May 27, 2017, 11:56:01 AM »
Did you look at the specs. It needs 802.3at,class4 injector.
Randy

Offline FreeMan

  • Member
  • *
  • Posts: 19
Re: Streaming Hikvision on Youtube
« Reply #14 on: May 27, 2017, 12:49:05 PM »
Yes, that's why I bought it. Other Hikvision PTZ I been looking at is "Hi-PoE". I have a Zyxel gs1100-8hp PoE+ switch and this works fine with the PTZ camera.

Offline FreeMan

  • Member
  • *
  • Posts: 19
Re: Streaming Hikvision on Youtube
« Reply #15 on: May 27, 2017, 01:18:01 PM »
Almost made a mistake when buying Hikvision DS-2DE4220IW-DE, DS-2DE4220IW-D do not have PoE. DS-2DE4220IW-DE have PoE+.
I need PoE so luckily I looked at the specifications before pressing the buy button.

Make sure you have the correct model number when buying stuff :)

Offline Fox_Of_The_Wind

  • Forecaster
  • *****
  • Posts: 483
  • Hi there!
    • http://www.desotowiwx.com
Re: Streaming Hikvision on Youtube
« Reply #16 on: May 28, 2017, 08:17:44 AM »
I'll leave the 2 streams up overnight as long as they run. You can see how the black is blacker with IPCAMLive.
Its using around 1/2 meg with Hikvisions H.264+ turned on ( great compression), While the Youtube is 2.5 plus.

Blue Iris to Youtube: https://www.valentinenebraska.net/youtube.php
IPCAMLive direct through rtsp stream: https://www.valentinenebraska.net/streamlive2.php

You had Blue Iris streaming to youtube? How did you do it? I been trying to get it setup and have failed all the time.

Anthony

Offline ValentineWeather

  • Forecaster
  • *****
  • Posts: 6367
    • Valentine Nebraska's Real-Time Weather
Re: Streaming Hikvision on Youtube
« Reply #17 on: May 28, 2017, 09:23:51 AM »
It only works with audio stream but very unreliable. Tried almost every combination of settings possible. Used WEBCAST flash media on camera properties.
Randy