Red5 Server Truncating Recordings - red5

I'm working on an app that captures a webcam stream and records it via a Red5 server. On my local installation (Red5 version 1, Mac OSX) everything runs perfectly however using the same version of Red5 on Ubuntu (our server enviroment) the video recording is truncated. A 2 min recording turns out to be just over 1 minute, however on the Mac its exactly the expected time.
Could it be as as simple as a config issue or is the 1.0 version of Red5 not stable on Ubuntu?

It seems this is a bug with the current version of Red5. Downgrading to version 0.8 solved this issue.

This is not an OS issue but an issue with how Red5 handles recording over slow connections.
You have Mac OSX installed locally and when recording to local there is no bandwidth limit. As soon as you use the Ubuntu server, you're streaming (uploading) the audio and video data to a remote server and inherently you have some bandwidth limitations. If you go over these limits the resulting .flv file can have all sorts of issues.
Different Red5 versions have different issues with the recording process. These issues are well documented here: Recording issues with Red5 .
The best Red5 version for recording is a patched 1.0.2 version available in this blog post: Recording high quality (HD) video over slow connections with Red5 is now possible
The patch has also been applied to Red5's source code on GitHub and it will be available in the next official build as well (1.0.3).

Related

very slow processing and converting videos to m3u8 using ffmpeg library

We are experiencing very slow processing and converting videos to m3u8 using ffmpeg library.
Note that the operating system used is Ubuntu Server and that the server has huge resources in RAM and CBU, and we noticed that the processing process does not consume the available resources significantly
Average video size: 1 GB
Average video processing time: 2 - 3 hours
The programming language used: asp.net core 3.1
We need to reach a maximum of 20 minutes in processing time, is that possible?
This problem does not seem to be related to programming. It is recommended to take the following steps to test, there should be some test results that can help you.
Use a local computer with a higher configuration of Ubuntu for testing, and it is recommended to install a solid state drive.
If the Ubuntu server you mentioned is a cloud server, it is recommended to upgrade to a higher performance for testing. It is best to test locally before deciding if such an upgrade is needed to save money.
If the above two points are difficult, for example, there is no such Ubuntu, we can also test it on a personal PC with Win 10/11 (with a solid state drive), install the ffmpeg environment, and then ensure that other software resources are closed, only Keep IIS, ffmpeg and other related services for testing.
I personally recommend trying the third suggestion first, so that you can get test results for the problem you care about. If the 1GB video can be processed within 20min, then we can consider upgrading the relevant configuration of Ubuntu.

Publish video to antmedia server from custom camera

I am not able to compile the WebRTCTest application in the antmedia github repository. This is the application I am trying to compile.
I need to test live stream performance over webRTC. The setup is running Linux OS and I am using gstreamer to capture the video frames.
Following is the use case:
Stream live video frames being captured from the camera over to antmedia using WebRTC protocol. However, I tried Compiling the WebRTCTest application given in the above link, but I got a lot of compilation issues mainly due to the header file names in the webRTC code source.
How can I publish the video frames being captured from the camera to antmedia via webRTC?
Also does antmedia provide any webRTC based SDK for linux platform (C language based)?
Actually WebRTCTest has not been supported for more than 1 year. But there is another WebRTC Test Tool that is developed by Ant Media team to test Ant Media Server. It is java based and publishes video files. You can still use it on Linux and publish your web cam with small changes.
https://gitlab.com/Ant-Media/webrtc-test
you should use https://resources.antmedia.io/docs/load-testing as a testing tool.
But if you need to publish or play only with gstreamer , I have wrote a gstreamer program in C which uses webrtc to send and receive stream from and to ant media server https://github.com/USAMAWIZARD/AntMedia-Gstreamer-Webrtc. It is tested with AMS version Enterprise Edition 2.5.1

Delay when getting rtsp stream from Kurento

I am running kurento-media-server with this: https://github.com/lulop-k/kurento-rtsp2webrtc
example. OK, I am getting rtsp stream but it appears with delay about 3-4 seconds. As I saw in this post: How to disable video encoding In Kurento Media Server?
that can be because encoding running on the Kurento media sever. The problem is that I cannot install the openh264-gst-plugins-bad-1.5 because I am running 32 bit Ubuntu so I have to build it by myself. Currently I succeeded to build all packages but not this one! So as I saw in the google group it may be another way to distribute the rtsp media. Can you explain how to distribute media with WebRTC instead of HTTP streaming?
Following this https://github.com/Kurento/kms-elements/pull/3 article I recompiled the kms-elements and now I have no delay at all!!!

Difference between red5 and wowza

I am trying to set up a streaming media server. I tried wowza and found it very well documented. Its forums are very active.
I also checked red5. Red5 originated in 2005 whereas wowza started in 2007. Red5 is open source too. The past links to red5 documentation are almost dead. Is wowza a proprietary version of red5? Or red5 evolved into wowza just like rtmpd into evostream?
How do i set up red5 to capture an rtsp stream of the following format and publish it to rtmp?
rtsp://username:password#<Camera IP Address>:554/axis-media/media.amp
Wowza is quite mature than Red5. Red 5 is an open source effort that still has many bugs (I tried up to version 0.9). Documentation is critical about Red5, there is no support (only some mailing lists). Wowza has a complete forum with different topics and solid documentation. Actually I have a Wowza platform with excellent mobile support, which could never be achieved with Red5 (audio problems).
I can answer half. Red5 and Wowza are completely seperate projects. Wowza is closed source while red5 is open source. Wowza did not evolve out of red5. I don't know a feature by feature comparison between the two projects.
Scott, Wowza
On the Red5Server website there is a feature comparison of the two products.

creating mobile streaming server (3gp)

I need an Open Source solution & tutorial for creating mobile streaming server that can stream video on 3gp (3gpp) format, i have tried using Helix DNA Server, but it's free version only allow real media not 3gp.
I have heard about DSS (Darwin Streaming Server) but i can't found any Windows binaries (compiled exe) for that, and Catra Streaming server package only confused me more since i can't found any file required for Catra (setting, etc are missing on their package).
PS: Actually i need some sort of guide for setting DSS or Catra on Windows (especially Server 2003)
You may want to try VLC http://www.videolan.org/vlc/
I can't vouch for the streaming server, but the player works well, and 3gp is supported.
But this isn't a programming question.
DSS Windows binaries are here:
http://dss.macosforge.org/post/previous-releases/
If you're target mobile devices support flash you can stream 3gp from Red5. If they don't support flash, but they do allow HTML5 you could still use Red5 or pretty much any Java EE container server.