01304 827609 info@use-ip.co.uk Find us

Hikvison RTSP VLC / h264

s0fa

New Member
Messages
3
Points
1
Hi,

i have 2 Hikvision Cameras where I want to capture the rtsp h264 stream.
The SubStream in MJPEG runs well, but with the H264 Main Stream no Video is shown.

Version 3.0.14 Vetinari (Intel 64bit)
CameraOS V5.5.150 build 200927

Is there anybody that solved that issue and can give me an hint?
 
Hi,

i have 2 Hikvision Cameras where I want to capture the rtsp h264 stream.
The SubStream in MJPEG runs well, but with the H264 Main Stream no Video is shown.

Version 3.0.14 Vetinari (Intel 64bit)
CameraOS V5.5.150 build 200927

Is there anybody that solved that issue and can give me an hint?
Have you checked the system logs in VLC?

What model cameras are you using?
 
What url are you using to open the stream in VLC and are is the camera standalone or connected to the PoE port of a Hikvision NVR as the url differs depending on that. For instance on my NVR:

rtsp://admin:my_password@my_ip_address:rtsp_port_number/Streaming/Channels/101/ will show cameras 1 live main stream
rtsp://admin:my_password@my_ip_address:rtsp_port_number/Streaming/Channels/102/ will show cameras 1 live sub stream
rtsp://admin:my_password@my_ip_address:rtsp_port_number/Streaming/Channels/502/ will show cameras 5 live sub stream

example in VLC File > Open Network - rtsp://admin:mypassword@192.168.0.100:554/Streaming/Channels/101

....and so on
 
Thanks for the replies, hier is the Log from the vlc.

videotoolbox info: Using Video Toolbox to decode 'h264'
main debug: using video decoder module "videotoolbox"
main debug: looking for audio decoder module matching "any": 21 candidates
g711 debug: samplerate:8000Hz channels:1
main debug: using audio decoder module "g711"
main debug: looking for meta reader module matching "any": 2 candidates
lua debug: Trying Lua scripts in /Users/sofa/Library/Application Support/org.videolan.vlc/lua/meta/reader
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/lua/meta/reader
lua debug: Trying Lua scripts in /Applications/VLC.app/Contents/MacOS/share/lua/meta/reader
lua debug: Trying Lua playlist script /Applications/VLC.app/Contents/MacOS/share/lua/meta/reader/filename.luac
main debug: no meta reader modules matched
main debug: `STREAM' successfully opened
macosx debug: Activated assertion NoIdleSleepAssertion through IOKit (33995)
main debug: Buffering 0%
main debug: reusing audio output
main debug: VLC is looking for: 's16l' 8000 Hz Mono frame=1 samples/2 bytes
auhal debug: attempting to use device 0
auhal debug: using default audio device 77
auhal debug: Current device has a latency of 1375 us
auhal debug: output layout of AUHAL is Stereo
auhal debug: selected 2 physical channels for device output
auhal debug: VLC will output: Stereo
auhal debug: Current AU format: [8000.000000][mcpl][9][8][1][8][2][32]
auhal debug: analog output successfully opened
main debug: output 'f32l' 8000 Hz Stereo frame=1 samples/8 bytes
main debug: looking for audio volume module matching "any": 2 candidates
main debug: using audio volume module "float_mixer"
main debug: input 's16l' 8000 Hz Mono frame=1 samples/2 bytes
main debug: looking for audio filter module matching "scaletempo": 16 candidates
scaletempo debug: format: 8000 rate, 1 nch, 4 bps, fl32
scaletempo debug: params: 30 stride, 0.200 overlap, 14 search
scaletempo debug: 1.000 scale, 240.000 stride_in, 240 stride_out, 192 standing, 48 overlap, 112 search, 400 queue, fl32 mode
main debug: using audio filter module "scaletempo"
main debug: conversion: 's16l'->'f32l' 8000 Hz->8000 Hz Mono->Mono
main debug: looking for audio converter module matching "any": 8 candidates
audio_format debug: s16l->f32l, bits per sample: 16->32
main debug: using audio converter module "audio_format"
main debug: conversion pipeline complete
main debug: conversion: 'f32l'->'f32l' 8000 Hz->8000 Hz Mono->Stereo
main debug: looking for audio converter module matching "any": 8 candidates
main debug: using audio converter module "trivial"
main debug: conversion pipeline complete
main debug: looking for audio resampler module matching "any": 3 candidates
main debug: using audio resampler module "samplerate"
main debug: Buffering 4%
main debug: Buffering 7%
main debug: Buffering 11%
main debug: Buffering 15%
main debug: Buffering 19%
main debug: Stream buffering done (15998 ms in 16390 ms)
main error: buffer deadlock prevented
main debug: Decoder wait done in 0 ms
main warning: buffer too late (-12995844 us): dropped
main warning: buffer too late (-12955860 us): dropped
main warning: buffer too late (-12915865 us): dropped
main warning: buffer too late (-12875871 us): dropped
at this time it only show buffer too late. (also in h265)
But this is only with the h264/h265 MainStream, the SubStream with the MJPEG codec runs over RTSP.

The Camera is a DS-2CD3T86G2-4IS standalone.

Is Anybody able to get a h265 or h264 stream running in VLC from a Hikvision Cam?
 
Thanks for the replies, hier is the Log from the vlc.


at this time it only show buffer too late. (also in h265)
But this is only with the h264/h265 MainStream, the SubStream with the MJPEG codec runs over RTSP.

The Camera is a DS-2CD3T86G2-4IS standalone.

Is Anybody able to get a h265 or h264 stream running in VLC from a Hikvision Cam?
Yes - as I described above. I tried it before I posted and it works perfectly (I forget the correct RTSP stream url for a standalone cam)

However I did have major issues when I tried to use VLC and RTSP for my smart home dashboards. I was using VLC for that to convert and re output the streams for the dashboards to connect to. It would work for a time before failing and was unreliable: So in the end I had to use Blue Iris which has it's own web server and works a treat for what I need.
 
Hi, iv'e check it again! No way with the vlc, if I use the VS Player provided from Hikvision there is a clear stable picture.
 
I was using VLC for that to convert and re output the streams for the dashboards to connect to. It would work for a time before failing and was unreliable: So in the end I had to use Blue Iris which has it's own web server and works a treat for what I need.
would OBS be of any use?
 
at this time it only show buffer too late. (also in h265)
Could it be the PC processing power? I've never had a problem with viewing mainstream from my Hik cameras using RTSP / VLC.
 
If you’re getting buffer overruns etc with VLC I can only think that you’re trying to convert and stream it rather than just view the stream. I had those issues when I was trying the same to convert it MJPEG for display on a SharpTools dash. It’ll not work and invariably fail like that, sometimes straight away, sometimes after hours. Viewing the stream directly without conversion runs flawlessly with VLC. If you need to convert it - use the web server within Blue Iris. There’s a demo available for Blue Iris and you can reset the trial when it expires by deleting the registry key (until you’re happy it works)
 
Back
Top