bluecherrydvr / bluecherry-apps

Bluecherry surveillance system (server application)
http://www.bluecherrydvr.com
GNU General Public License v2.0
206 stars 66 forks source link

RTSP streaming #603

Open haadiali72 opened 1 year ago

haadiali72 commented 1 year ago

I am trying to add an IP camera which is ONVIF under the generic category. I have installed the trial version as well the community version which can support upto 4 cameras. The camera adds successfully but does not load the livestream. There were no errors in the system logs except one which was "Failed to open stream. Error: -1094995529 (Invalid data found when processing input)". This only popped up once. I need to test the livestream and ONVIF compliance for a major project. Please support

curtishall commented 1 year ago

Can you provide more information about the RTSP stream type:

This may be fixed soon:

https://changelog.bluecherrydvr.com/introducing-enhanced-hevc-support-and-performance-upgrades-for-seamless-video-streaming-18ISd2

A better (see also: complete) ONVIF will be implemented in the next few months, see #602

curtishall commented 1 year ago

Can you also paste the output of this:

ffmpeg -i rtsp://login:password@rtspURL:RTSPport/rtsp/path -acodec copy -vcodec copy -f mp4 stream.mp4
haadiali72 commented 1 year ago

@curtishall The cameras are compatible with both H.264 and H.265. As of now they are configured on H.265 and stream works fine with VLC. Please find the output below ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1) configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared libavutil 56. 31.100 / 56. 31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat 58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58. 8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100 libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100 / 55. 5.100 Input #0, rtsp, from 'rtsp://admin:OneScreen123@192.168.1.27:554/profile1/live': Metadata: title : session Duration: N/A, start: 0.032378, bitrate: N/A Stream #0:0: Video: hevc (Main), yuvj420p(pc, bt470bg/bt470bg/smpte170m), 1920x1080, 30 fps, 30 tbr, 90k tbn, 30 tbc Stream #0:1: Data: none Output #0, mp4, to 'stream.mp4': Metadata: title : session encoder : Lavf58.29.100 Stream #0:0: Video: hevc (Main) (hev1 / 0x31766568), yuvj420p(pc, bt470bg/bt470bg/smpte170m), 1920x1080, q=2-31, 30 fps, 30 tbr, 90k tbn, 90k tbc Stream mapping: Stream #0:0 -> #0:0 (copy) Press [q] to stop, [?] for help frame= 1022 fps= 30 q=-1.0 size= 12544kB time=00:00:34.46 bitrate=2981.3kbits/s speed=1.02x

curtishall commented 1 year ago

Can you try changing the source to h264 and see how it works?

haadiali72 commented 1 year ago

@curtishall I have tried both.Could there be another problem?

curtishall commented 1 year ago

Which distribution are you using? I'll provide you an updated build in the next day or two to test.

If that doesn't solve it could we get remote access to the RTSP stream?

curtishall commented 1 year ago

@haadiali72 Which distribution are you using?

haadiali72 commented 1 year ago

Are you talking about the bluecherry server distribution?

haadiali72 commented 1 year ago

3.1.0-rc8

haadiali72 commented 1 year ago

I have tried again with both the codecs. The cameras are deployed locally. In case you would want remote access, we will have to connect on call

haadiali72 commented 1 year ago

Apologies for the delayed response

curtishall commented 1 year ago

Linux distribution so I can send you a new package to test

On Fri, Jul 7, 2023 at 3:01 PM haadiali72 @.***> wrote:

3.1.0-rc8

— Reply to this email directly, view it on GitHub https://github.com/bluecherrydvr/bluecherry-apps/issues/603#issuecomment-1626003459, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACQ5VWMXULGZANLEBDNIATXPBTLFANCNFSM6AAAAAAZ7NVJMU . You are receiving this because you were mentioned.Message ID: @.***>

-- Sent from Gmail Mobile

haadiali72 commented 1 year ago

Affirmative. Also, I just tried adding a UniView PrimeCam as well which did not work.The stream works on VLC

curtishall commented 1 year ago

cat /etc/*_release lsb_release -a

On Fri, Jul 7, 2023 at 3:45 PM haadiali72 @.***> wrote:

Affirmative. Also, I just tried adding a UniView PrimeCam as well which did not work.The stream works on VLC

— Reply to this email directly, view it on GitHub https://github.com/bluecherrydvr/bluecherry-apps/issues/603#issuecomment-1626075472, or unsubscribe https://github.com/notifications/unsubscribe-auth/AACQ5VWP7DW7LUDARTPKOADXPBYQHANCNFSM6AAAAAAZ7NVJMU . You are receiving this because you were mentioned.Message ID: @.***>

--

Curtis Hall @. @.>) Bluecherry - www.bluecherrydvr.com / store.bluecherry.net

haadiali72 commented 1 year ago

Distributor ID: Ubuntu Description: Ubuntu 20.04.6 LTS Release: 20.04 Codename: focal

haadiali72 commented 1 year ago

@curtishall When can you send the new release?

curtishall commented 1 year ago

http://lizard.bluecherry.net/~curt/releases/focal/hevc_support/bluecherry_3.1.0-rc8_amd64.deb

haadiali72 commented 1 year ago

Has this been included in the build?

curtishall commented 1 year ago

Yes. If you still have a problem we need remote access to the rtsp streams. This means actual port access and not via teamviewer, etc.

haadiali72 commented 1 year ago

@curtishall there is an issue with this build. I have tried installing the .deb package only and also tried cloning the repo again. It gives errors while installing/building

Errors were encountered while processing: bluecherry E: Sub-process /usr/bin/dpkg returned an error code (1)

While installing, it gives the post installation script error. Please support

haadiali72 commented 1 year ago

Can i continue with removing the post installation script?

curtishall commented 1 year ago

I need more details then what you provided one what happened with the install process....

Errors were encountered while processing: bluecherry E: Sub-process /usr/bin/dpkg returned an error code (1)

Is not helpful.

haadiali72 commented 1 year ago

build

haadiali72 commented 1 year ago

@curtishall I dont exactly understand the origin of the issue but it is probably due to some broken packages. I have tried purging and force installing but it gives the same error

haadiali72 commented 1 year ago

@curtishall Will this description do?

haadiali72 commented 1 year ago

@curtishall can I please have an update here?I need to finalize the POC till friday after which we will move onto the licensing part

curtishall commented 1 year ago

try this package....I'm not sure why the install is saying incorrect password unless /etc/bluecherry.conf was deleted.

It may be easier to install again

http://lizard.bluecherry.net/~curt/releases/focal/new_api_branch/bluecherry_3.1.0-rc8_amd64.deb

haadiali72 commented 1 year ago

@curtishall I created a new sql user and then proceeded with this package. The build was successful. Even though I still can't fetch the rtsp stream but it is better with this package since it's atleast giving me logs. Please find the error message below.

Jul 14 16:16:43 onescreen123 bc-server[10913]: I(1/Gaming): Last message repeated 1 times! -- Jul 14 16:16:43 onescreen123 bc-server[10913]: I(1/Gaming): Falling back to TCP connection Jul 14 16:16:43 onescreen123 bc-server[10913]: E(1/Gaming): Failed to open stream. Error: -111 (Connection refused)
haadiali72 commented 1 year ago

As part of the error I mentioned above

Failed to open stream. Error: -1094995529 (Invalid data found when processing input)

curtishall commented 1 year ago

At this point we need access to the RTSP stream. If we can't get that for whatever reason we won't be able to do anything else.

haadiali72 commented 1 year ago

@curtishall We can certainly do that. Where can I reach out to you? You can reach out to me at haadi@onescreensolutions.com. I am hoping we can hop onto a meeting

haadiali72 commented 1 year ago

@curtishall Can we do this asap?