I am using Generic Camera platform to integrate one of my camera’s. Still image shows nicely in lovelace, but when I click it, I get a black window with turning circle that goes on forever. In Chrome developer console I see it can’t locate a file called master_playlist.m3u8
Is this a known issue? I did also integrate an EZVIZ camera using standard integration. For that camera everything seems to work just fine (still + streaming - also needs a master_playlist.m3u8 but for that URL it can find it. Any suggestions?
This is my config in configuration.yaml:
camera:
- platform: generic
still_image_url: http://192.168.1.64/Streaming/Channels/1/Picture
stream_source: rtsp://192.168.1.64:554/Streaming/Channels/103
name: Driveway
username: admin
password: xxxxxxxx
authentication: basic
rtsp_transport: tcp
In the same configuration.yaml I have set external_url and internal_url and this seems to work just fine.
Can you double check if stream address is reachable and playable with VLC?
Yes, checked it before and double checked it again now and it works fine.
Ok, can you try to access this stream from HA instance, maybe your server is not able to reach that ip. You can try ffprobe
Looks ok to me…?
bash-5.1# ffprobe rtsp://admin:[email protected]:554/Streaming/Channels/103
ffprobe version 4.4 Copyright (c) 2007-2021 the FFmpeg developers
built with gcc 10.3.1 (Alpine 10.3.1_git20210424) 20210424
configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-libdav1d --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --enable-libsrt --enable-libssh --enable-libvidstab --disable-stripping --disable-static --disable-librtmp --enable-vaapi --enable-vdpau --enable-libopus --enable-vulkan --enable-libsoxr --enable-libwebp --enable-libaom --disable-debug
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
Input #0, rtsp, from 'rtsp://admin:[email protected]:554/Streaming/Channels/103':
Metadata:
title : Media Presentation
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 1280x720, 20 fps, 20 tbr, 90k tbn, 40 tbc
Stream #0:1: Audio: mp2, 16000 Hz, mono, s16p, 64 kb/s
Can you share exact error from log?
Thanks, that solved it! I should have looked myself! 
Anyway, the log showed:
2021-10-16 08:46:03 ERROR (stream_worker) [libav.rtsp] method DESCRIBE failed: 401 Unauthorized
That more or less pointed me to some other threads on this issue suggesting to put username and password in the rtsp URL and that worked.
Thanks!