Closed evilworm closed 2 years ago
@evilworm, I have exactly the same issue. I only see the "still" image, but no streaming. I tried your modified docker file, but it did not help. I verified that I really have ffmpeg version 3.4
ffmpeg version 3.4.9 Copyright (c) 2000-2021 the FFmpeg developers built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04) configuration: --disable-debug --disable-doc --disable-ffplay --enable-avresample --enable-chromaprint --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfdk_aac --enable-libfreetype --enable-libkvazaar --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxvid --enable-libzmq --enable-nonfree --enable-openssl --enable-postproc --enable-shared --enable-small --enable-version3 --extra-cflags=-I/opt/ffmpeg/include --extra-ldflags=-L/opt/ffmpeg/lib --extra-libs=-ldl --prefix=/opt/ffmpeg
Did you change something else in addition?
Docker-compose fix will help the video to be transfered to unifi protect however it seems that there are some other issues too 1) I get live video on my Unifi Viewport 2) I dont get live video in web UI, it just keeps "loading" forever 3) I have live video on my phone application 4) on the phone - when scrolling/seeking video to some specific time, it will not play the video but shows still image ... on desktop web ui it does not seek the video at all
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I have Unifi Cloud Key Gen2 and wanted to have my Hikvision camera displayed in my Viewport. Tried the dockerised unifi-cam-proxy version, but I could only get the snapshot image displayed however live streaming did not work. After digging around I found out that the Dockerfile pulls in ffmpeg 4.3 which unfortunately does not work for some reason... running ffmpeg on the stream outputs this:
I tried running the same ffmpeg command locally and it worked. I compared ffmpeg versions and found out that I have 3.4 and docker image has 4.3. Modified the Dockerfile to the following:
... and then docker-compose build && docker-compose up and I got the live image on my viewport
It would probably be a good idea to have fixed ffmpeg version in the Dockerfile apt-get part
hope this helps someone having similar issues...