Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTSP streaming #603

Open
haadiali72 opened this issue Jul 5, 2023 · 32 comments
Open

RTSP streaming #603

haadiali72 opened this issue Jul 5, 2023 · 32 comments

Comments

@haadiali72
Copy link

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
Copy link
Member

curtishall commented Jul 5, 2023

Can you provide more information about the RTSP stream type:

  • H.264 or H.265
  • Does the camera or device use a non-standard streaming method (H.264+/H.265+)
  • Does the stream work with VLC?

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
Copy link
Member

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
Copy link
Author

@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
Copy link
Member

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

@haadiali72
Copy link
Author

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

@curtishall
Copy link
Member

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
Copy link
Member

@haadiali72 Which distribution are you using?

@haadiali72
Copy link
Author

Are you talking about the bluecherry server distribution?

@haadiali72
Copy link
Author

3.1.0-rc8

@haadiali72
Copy link
Author

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
Copy link
Author

Apologies for the delayed response

@curtishall
Copy link
Member

curtishall commented Jul 7, 2023 via email

@haadiali72
Copy link
Author

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

@curtishall
Copy link
Member

curtishall commented Jul 7, 2023 via email

@haadiali72
Copy link
Author

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

@haadiali72
Copy link
Author

@curtishall When can you send the new release?

@haadiali72
Copy link
Author

Has this been included in the build?

@curtishall
Copy link
Member

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
Copy link
Author

@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
Copy link
Author

Can i continue with removing the post installation script?

@curtishall
Copy link
Member

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
Copy link
Author

build

@haadiali72
Copy link
Author

@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
Copy link
Author

@curtishall Will this description do?

@haadiali72
Copy link
Author

@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
Copy link
Member

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
Copy link
Author

@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
Copy link
Author

As part of the error I mentioned above

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

@curtishall
Copy link
Member

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
Copy link
Author

@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
Copy link
Author

@curtishall Can we do this asap?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants