Strem cam dvr error

Hi people, this is Jordan from Italy.
I have a great trouble, hoping someone can help me.
I use hassbian with HA version 0.99.3
Some weeks ago (before upgrade HA to las version ( don’t remember last working release) I could see streaming of all my cams (3 hacked dafang, 2 onvif cam and 5 dvr analogic cam (DVR ANNKE).
Now, with 0.95 verion of HA and on, I can’t see streaming of DVR cam, the other cam works great.
The platform used is:

in vlc this works great (rtsp://user:[email protected]/Streaming/Channels/401) but not in HA. here is the log error:
2019-09-27 09:31:08 ERROR (stream_worker) [libav.hevc] PPS id out of range: 0

ffmpeg is installed on my raspi : pi@hassbian:~ $ ffmpeg -version
ffmpeg version 4.1.4-1+rpt1~deb10u1 Copyright © 2000-2019

The other cams (Dafang and Onvif) work great:

platform: ffmpeg
name: Onvif
input: rtsp://user:[email protected]:554

platform: ffmpeg
name: Dafang
input: -rtsp_transport tcp -i rtsp://jordan:eurostar2007@dafang:8540/unicast

I repeat: some version of HA ago (don’t remeber what version) this string works very well: rtsp://user:[email protected]/Streaming/Channels/401
now…dosen’t work.

N.B. in configuration.yaml I put this:

ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg

stream:

frontend:
javascript_version: latest

but nothig to do.

Thanks in advance for your help

Bye bye

Hey @jordantheripper ,

I seem to have the exact same case as you: an ANNKE DVR and trying to set it up with ffmpeg in home assistant on my raspberry.

I’m currently on version 0.101 of HA, and managed to get something happening by adding

extra_arguments: "-rtsp_transport tcp"

to my camera config.

My full camera config is:

camera:
  - platform: ffmpeg
    name: Caméra Extérieure Devant
    input: "rtsp://[user:passwd]@192.168.86.100:554/Streaming/Channels/102"
    extra_arguments: "-rtsp_transport tcp"

EDIT : The DVR was streaming in h265, I don’t know why it wasn’t working (no errors anywhere).
I put it in h264 and now it’s working perfectly!

Thanks

1 Like

thanks for reply. That was my trouble too. Infact our dvr ANNKE use four typed of codec: H265, H265+, H264 and H264+.
When I changed to H264…everything works.This is my configuration for cam:

  • platform: ffmpeg
    name: Ingresso
    input: -rtsp_transport tcp -i rtsp://user:[email protected]:554/Streaming/Channels/301

this for future reference so that, for ANNKE DVR owners, it is easy to configure the cameras on a home assistant

For me this post is considered … solved.
Thanks to leducmaxime too

I have a question where did I get the 301 camera channel