WXforum.net

Weather Station Hardware => Weather Web Cams => Topic started by: ValentineWeather on May 13, 2017, 03:53:11 AM

Title: Streaming Hikvision on Youtube
Post by: ValentineWeather 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.


Title: Re: Streaming Hikvision on Youtube
Post by: ValentineWeather 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.
Title: Re: Streaming Hikvision on Youtube
Post by: ValentineWeather 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.
Title: Re: Streaming Hikvision on Youtube
Post by: ValentineWeather 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. 

Title: Re: Streaming Hikvision on Youtube
Post by: zackdog on May 17, 2017, 08:06:47 AM
Looks good, Randy.  Looking and sounding like you are getting some t-storms.

Mark
Title: Re: Streaming Hikvision on Youtube
Post by: ValentineWeather 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.
Title: Re: Streaming Hikvision on Youtube
Post by: ValentineWeather 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.
Title: Re: Streaming Hikvision on Youtube
Post by: FreeMan 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.
Title: Re: Streaming Hikvision on Youtube
Post by: FreeMan 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
Title: Re: Streaming Hikvision on Youtube
Post by: ValentineWeather 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.
Title: Re: Streaming Hikvision on Youtube
Post by: FreeMan 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.
Title: Re: Streaming Hikvision on Youtube
Post by: ValentineWeather 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.
Title: Re: Streaming Hikvision on Youtube
Post by: FreeMan 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 (http://www.hikvision.com/en/Products_accessries_497_i5723.html)
$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
Title: Re: Streaming Hikvision on Youtube
Post by: ValentineWeather on May 27, 2017, 11:56:01 AM
Did you look at the specs. It needs 802.3at,class4 injector.
Title: Re: Streaming Hikvision on Youtube
Post by: FreeMan 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.
Title: Re: Streaming Hikvision on Youtube
Post by: FreeMan 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 :)
Title: Re: Streaming Hikvision on Youtube
Post by: Fox_Of_The_Wind 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.
Title: Re: Streaming Hikvision on Youtube
Post by: ValentineWeather 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.