Coder Social home page Coder Social logo

ant-media / ant-media-server Goto Github PK

View Code? Open in Web Editor NEW
4.1K 98.0 612.0 1.05 GB

Ant Media Server is a live streaming engine software that provides adaptive, ultra low latency streaming by using WebRTC technology with ~0.5 seconds latency. Ant Media Server is auto-scalable and it can run on-premise or on-cloud.

Home Page: https://antmedia.io

License: Other

Java 98.87% Shell 0.94% Python 0.19%
media-server webrtc stream broadcast rtmp rtsp hls mp4 ip-camera broadcasting

ant-media-server's People

Contributors

asharamseervi avatar burak-58 avatar canat avatar cemklc avatar davutcavdar avatar dependabot[bot] avatar dominick avatar ducminhgd avatar dvmarcilio avatar eneskuluk avatar esasse avatar franeksaww avatar golgetahir avatar lastpeony avatar maydin avatar mdalepiane avatar mekya avatar menelaosbgr avatar mohit-3196 avatar mondain avatar muratugureminoglu avatar mustafaboleken avatar olleolleolle avatar ritzalam avatar selimemre avatar solomax avatar t2y avatar timantmedia avatar usamawizard avatar yashtandon113 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ant-media-server's Issues

Where is the Doc? Guide?

Issue

Short description

Where is the Doc? Guide?

Environment

[] Operating system and version: Windows 10 1703
[] Java version: jdk180_44
[] Red5 version: 1.0.1

Some more errors with WebRTC

I installed Ant Media Server on my Linux server, set up HTTPS (both for HTTP and Websockets) and trying to use WebRTC demo. There are many errors in the console:
https://pastebin.com/yRG95T0w
The last ones are continuously repeating. Seems that it can't get the audio (although it is present as I used my webcam for test). What should I do?

Error during installation

Clone and build the Ant-Media-Server-Service

mvn clean install -Dmaven.javadoc.skip=true -Dmaven.test.skip=true

Getting following error messages

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.5:sign (sign-artifacts) on project ant-media-server-service: Exit code: 2 -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-gpg-plugin:1.5:sign (sign-artifacts) on project ant-media-server-service: Exit code: 2
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)
at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.MojoExecutionException: Exit code: 2
at org.apache.maven.plugin.gpg.GpgSigner.generateSignatureForFile(GpgSigner.java:168)
at org.apache.maven.plugin.gpg.AbstractGpgSigner.generateSignatureForArtifact(AbstractGpgSigner.java:205)
at org.apache.maven.plugin.gpg.GpgSignAttachedMojo.execute(GpgSignAttachedMojo.java:140)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)
... 20 more
[ERROR]
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Regards

Some Basic Mistakes Issues

Hi,

  • There are css corruptions in the admin panel. You can review an screenshot.
    ekran kaymasi Live Stream Delete section is overflow.

  • In Dashboard - Setting - Muxing Section;
    issue2 Section List Size and Section Duration can write character. it shouldn't be written here.

  • In Dashboard - Setting - Adaptive Streaming Section;
    The same as the above mistake here.

  • Facebook publish setting error is not get popup in dashboard when i clicked authenticate in dashboard setting section. Its just only console section getting error.
    333 It's just waiting.

WebRTC 1 to Many?

Issue

Sending WebRTC to RTMP?

Short description

I already have a WebRTC "1 to Many" server that works, but of course bandwidth is an issue.
Can AMS be used to send my "1 to many" video to RTMP?

I am involved with an effort for a distributed streaming video platform that would accept RTMP.

error when using webrtc app

io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)

Using Third Party RTMP Publishers With Ant

I am getting error when I try to stream to ant server ;

[flv @ 00000000006eea80] subtitle stream discovered after head already parsed
[flv @ 00000000006eea80] audio stream discovered after head already parsed
[flv @ 00000000006eea80] video stream discovered after head already parsed
[WARN] [Red5_Scheduler_Worker-30] io.antmedia.muxer.Mp4Muxer - before writing he
ader
[INFO] [Red5_Scheduler_Worker-30] io.antmedia.muxer.MuxAdaptor - after prepare
[mpegts @ 0000000058df34e0] H.264 bitstream malformed, no startcode found, use t
he video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb
' option with ffmpeg)
[INFO] [Red5_Scheduler_Worker-1] io.antmedia.muxer.HLSMuxer - cannot write frame
to muxer
[mpegts @ 0000000058df34e0] H.264 bitstream malformed, no startcode found, use t
he video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb
' option with ffmpeg)
[INFO] [Red5_Scheduler_Worker-1] io.antmedia.muxer.HLSMuxer - cannot write frame
to muxer
[mpegts @ 0000000058df34e0] H.264 bitstream malformed, no startcode found, use t
he video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb
' option with ffmpeg)
[INFO] [Red5_Scheduler_Worker-1] io.antmedia.muxer.HLSMuxer - cannot write frame
to muxer
[mpegts @ 0000000058df34e0] H.264 bitstream malformed, no startcode found, use t
he video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb
' option with ffmpeg)
[INFO] [Red5_Scheduler_Worker-1] io.antmedia.muxer.HLSMuxer - cannot write frame
to muxer
[mpegts @ 0000000058df34e0] H.264 bitstream malformed, no startcode found, use t
he video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb
' option with ffmpeg)
[INFO] [Red5_Scheduler_Worker-1] io.antmedia.muxer.HLSMuxer - cannot write frame
to muxer
[mpegts @ 0000000058df34e0] H.264 bitstream malformed, no startcode found, use t
he video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb
' option with ffmpeg)
[INFO] [Red5_Scheduler_Worker-1] io.antmedia.muxer.HLSMuxer - cannot write frame
to muxer
[mpegts @ 0000000058df34e0] H.264 bitstream malformed, no startcode found, use t
he video bitstream filter 'h264_mp4toannexb' to fix it ('-bsf:v h264_mp4toannexb
' option with ffmpeg)
[INFO] [Red5_Scheduler_Worker-1] io.antmedia.muxer.HLSMuxer - cannot write frame
to muxer
[ERROR] [Red5_Scheduler_Worker-1] org.red5.server.scheduling.QuartzSchedulingSer
viceJob - Job io.antmedia.muxer.MuxAdaptor@72917aef execution failed
java.lang.NullPointerException: null
at io.antmedia.muxer.Mp4Muxer.writePacket(Mp4Muxer.java:300)
at io.antmedia.muxer.MuxAdaptor.execute(MuxAdaptor.java:261)
at org.red5.server.scheduling.QuartzSchedulingServiceJob.executeInternal
(QuartzSchedulingServiceJob.java:89)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJob
Bean.java:75)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.j
ava:573)
[INFO] [RTMPConnectionExecutor-3] org.red5.server.stream.StreamService - closeSt
ream stream id: 1 connection: RYD8WZVQBQPX1

Ant-Media-Server is not working on E drive

Issue

Ant-Media-Server is not working other than C drive

Short description

I kept the Server folder on E drive and server was not starting. I took help from support and moved server folder to C drive and then it worked. If this will be the case my IS team will not allow me to deploy Ant-Media-Server on production server.

Environment

[] Operating system and version: Windows Server 2008 R2
[] Java version: jdk1.8.0_144
[] Red5 version: ant-media-server-1.1.1

Expected behavior

Put as much detail here as possible

Actual behavior

Put as much detail here as possible

Steps to reproduce

Logs

Place logs on pastebin or elsewhere and put links here

is:issue is:open Can't using VLC player to view rtsp streaming

I have some video .mp4 at /webapps/vod/streams/. The server started successful, but when using VLC player to view streaming, I had got debug:
[DEBUG] [pool-11-thread-4] com.antstreaming.rtsp.RtspMinaIoHandler - sent message: RTSP/1.0 461 Unsupported transport

And Vlc player inform Your input can't be opened.

So, how can i use vlc player to view streaming and how to enable unicast stream from server or enable TCP stream.?
Thank you!

WebRTC client missing

I could not find the webrtc client for android in source. I want low latency , RTMP having 30 sec delay . if it can be fine tune so let me know.

Regards
Tehseen

Docs

Just searching for any documentation.
Where i can read it?

Latest Release won't start on mac: Could not find or load main class org.red5.server.Bootstrap

As title says, downloaded latest release, navigated to the server directory and ran both ./start.sh and ./start-debug.sh.

Output of the latter is:

Running on  Darwin
Starting Ant Media Server
Listening for transport dt_socket at address: 8787
Error: Could not find or load main class org.red5.server.Bootstrap

Latest release only has source code, no complete build.

Older version works.

DLL Loading issue

Issue

Short description

Brief description of what happened

Environment

Operating system and version: Microsoft Windows [Version 10.0.15063]
Java version: Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
Red5 version: Ant Media Server v1.1.1

Expected behavior

The application server starts without issues.

Actual behavior

The AS logs errors regarding dll (libjingle_peerconnection_so.dll) loading.
There is an exception regarding the loading of a DLL.
I've used dependency (see attached image) and noticed awkward circular dependency.

Steps to reproduce

  1. Start the AS in Windows.

Logs

Server Log: https://pastebin.com/i6XuhQQe
Dependency Walker printscreen:
dependencywalker

rtmp playback error with webrtc app

i have installed on ubuntu 16.04 with java 8 jdk streaming going fine but playback rtmp not working you can add me on whats app +85599974703

Issue

Short description

Brief description of what happened

Environment

[] Operating system and version:
[] Java version:
[] Red5 version:

Expected behavior

Put as much detail here as possible

Actual behavior

Put as much detail here as possible

Steps to reproduce

Logs

Place logs on pastebin or elsewhere and put links here

Make StreamSource Fetching Restart Period Parametric

Stream Fetcher stops and starts the streams periodically to create VoD files.
Some use cases do not need to have VoD files so that periodicity should be parametric.

There should be a parameter in properties file with name

settings.streamFetcherRestartPeriod=

this field should be in seconds and stream fetcher will be restarted periodically with this value.

If this field is not defined or value is zero then stream fetcher will not restart periodically.
It will work continuously and it restarts only when there is a problem in the stream or in the network

start.bat missing !!!

hi, i try run on windows server but don't found start.bat
try of 1.1.0 but error and exit

Problems with WebRTC

i am trying to use webrtc to rtmp with this link "https://github.com/ant-media/Ant-Media-Server/blob/master/doc/WebRTC_Publish_and_Play_JavaScript_SDK_Details.md" although some of the information for this link outdated i was able to send audio and video through "ws" socket to the antmedia server i instal our lan.
in the broadcast page everything looks ok. but when try to watch the broadcast with rtmp or http there is no problem with audio but my video look like this;
stream

Also if i try to watch this through WebRTC like it shown in that link my antmedia server crashes.

Last of all is there any documantation for how to config sssl to antmedia server so that i can work with https and wss.

Thanks for advance.

Error: Could not find or load main class org.red5.server.Bootstrap

The instructions here tells, just download and run ./red5.sh but I guess something more is required.

ishandutta2007@MacBook-Pro:~/Documents/Projects/red5-server/src/main/server$ bash red5.sh

Running on Darwin
Starting Red5
Error: Could not find or load main class org.red5.server.Bootstrap

Reverse WebRTC Adapter example not working

Issue

Short description

The Reverse WebRTC Adapter example is not working
I'm referring to the Reverse WebRTC tutorial in http://antmedia.io/webrtc-live-video-stream-broadcasting-one-to-many-and-watching-with-rtmp-and-hls/

Environment

Operating system and version: Microsoft Windows [Version 10.0.15063]
Java version: Java HotSpot(TM) 64-Bit Server VM (build 25.144-b01, mixed mode)
Red5 version: Ant Media Server v1.1.1
Chrome: Version 61.0.3163.100 (Official Build) (64-bit)

Expected behavior

I should see the stream that is being captured by the camera.

Actual behavior

There is any feedback in the browser, it simply does not work.
Looking at the network I see no streaming traffic.

Steps to reproduce

  1. Start the AS in Windows.
  2. Run in browser: http://localhost:5080/WebRTCApp/
  3. Start a stream
  4. Run in browser: http://localhost:5080/WebRTCApp/player.html
  5. Start playing

Further comments

I'm not using any SSL. Should I?
What kind of input can I provide to help diagnose the problem?

My ultimate goal is to have an rstp feed as input and broadcasting it as WebRTC. What is the easiest way to have such scenario working?

WebRTC to RTMP Adaptor does not work a virtual webcam

Issue

The WebRTC to RTMP Adapter does not recognize a virtual webcam.

Short description

On the my remote mashine is not possible to connect physical the webcam. I use the software that creates a virtual camera. With virtual device does not want to work WebRTC to RTMP adapter.

Steps to reproduce

  1. I downloaded Community Edition Open Source Ant Media Server 1.3.2 (Apr 12, 2018) https://github.com/ant-media/Ant-Media-Server/releases/tag/ams-v1.3.2
    and install this Server on my remote server Ubuntu 16.4.
  2. Enable SSL for Ant Media Server and open ports.
  3. Launch server, login to control panel, open url
    https://localhost:5443/WebRTCAppEE
    and provide access to camera and microphone in browser.
  4. Ok. I see video from my physical webcam on my virtual machine and see media streem in player web page https://localhost:5443/WebRTCAppEE/player.html
  5. Then I remove (detached) physical webcam and install a program that emulates the virtual webcam driver. Load in browser web page https://localhost:5443/WebRTCAppEE
  6. But the service does not see the virtual camera and refuses to work.

Environment

[] Operating system and version: Ubuntu 16.4, 64-bit
[] Java version: build 1.8.0_162-8u162-b12

Expected behavior

The WebRTC to RTMP Adapter works with virtual camera (as well as with physical).

Actual behavior

The WebRTC to RTMP Adapter does not works with virtual camera.

Maven build failure

Issue

Short description

The maven build failed when I checked out from git and ran the maven command from the readme.md.

Environment

[] Operating system and version: Centos 7
[] Java version: openjdk version "1.8.0_144"
[] Red5 version: red5 included with the binary version of ant media server

Expected behavior

Should give me a set of jar files of the new build from source.

Actual behavior

I get this error message instead:
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.472s
[INFO] Finished at: Thu Oct 05 11:10:42 MST 2017
[INFO] Final Memory: 17M/154M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project ant-media-server: Could not resolve dependencies for project io.antmedia:ant-media-server:jar:1.0.9-M2: The following artifacts could not be resolved: io.antmedia:ant-media-server-service:jar:1.0.9-M2, io.antmedia:ant-media-server-service:tar.gz:daemon:1.0.9-M2, io.antmedia.plugins:PeriscopeAPI:jar:1.0.0: Failure to find io.antmedia:ant-media-server-service:jar:1.0.9-M2 in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-snapshots has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project ant-media-server: Could not resolve dependencies for project io.antmedia:ant-media-server:jar:1.0.9-M2: The following artifacts could not be resolved: io.antmedia:ant-media-server-service:jar:1.0.9-M2, io.antmedia:ant-media-server-service:tar.gz:daemon:1.0.9-M2, io.antmedia.plugins:PeriscopeAPI:jar:1.0.0: Failure to find io.antmedia:ant-media-server-service:jar:1.0.9-M2 in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-snapshots has elapsed or updates are forced
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:210)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.resolveProjectDependencies(LifecycleDependencyResolver.java:117)
at org.apache.maven.lifecycle.internal.MojoExecutor.ensureDependenciesAreResolved(MojoExecutor.java:258)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:201)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:414)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:357)
Caused by: org.apache.maven.project.DependencyResolutionException: Could not resolve dependencies for project io.antmedia:ant-media-server:jar:1.0.9-M2: The following artifacts could not be resolved: io.antmedia:ant-media-server-service:jar:1.0.9-M2, io.antmedia:ant-media-server-service:tar.gz:daemon:1.0.9-M2, io.antmedia.plugins:PeriscopeAPI:jar:1.0.0: Failure to find io.antmedia:ant-media-server-service:jar:1.0.9-M2 in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-snapshots has elapsed or updates are forced
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:189)
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:185)
... 22 more
Caused by: org.sonatype.aether.resolution.DependencyResolutionException: The following artifacts could not be resolved: io.antmedia:ant-media-server-service:jar:1.0.9-M2, io.antmedia:ant-media-server-service:tar.gz:daemon:1.0.9-M2, io.antmedia.plugins:PeriscopeAPI:jar:1.0.0: Failure to find io.antmedia:ant-media-server-service:jar:1.0.9-M2 in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-snapshots has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:375)
at org.apache.maven.project.DefaultProjectDependenciesResolver.resolve(DefaultProjectDependenciesResolver.java:183)
... 23 more
Caused by: org.sonatype.aether.resolution.ArtifactResolutionException: The following artifacts could not be resolved: io.antmedia:ant-media-server-service:jar:1.0.9-M2, io.antmedia:ant-media-server-service:tar.gz:daemon:1.0.9-M2, io.antmedia.plugins:PeriscopeAPI:jar:1.0.0: Failure to find io.antmedia:ant-media-server-service:jar:1.0.9-M2 in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-snapshots has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:538)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolveArtifacts(DefaultArtifactResolver.java:216)
at org.sonatype.aether.impl.internal.DefaultRepositorySystem.resolveDependencies(DefaultRepositorySystem.java:358)
... 24 more
Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: Failure to find io.antmedia:ant-media-server-service:jar:1.0.9-M2 in http://oss.sonatype.org/content/repositories/snapshots was cached in the local repository, resolution will not be reattempted until the update interval of sonatype-snapshots has elapsed or updates are forced
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.newException(DefaultUpdateCheckManager.java:230)
at org.sonatype.aether.impl.internal.DefaultUpdateCheckManager.checkArtifact(DefaultUpdateCheckManager.java:204)
at org.sonatype.aether.impl.internal.DefaultArtifactResolver.resolve(DefaultArtifactResolver.java:427)
... 26 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException

Steps to reproduce

  1. clone project from git
  2. cd to project directory
  3. run mvn -e -Dmaven.test.skip=true install

Logs

Place logs on pastebin or elsewhere and put links here

Upgrade while maintaining LiveApp entries

Issue

Short description

On upgrade from version 1.2.6 to version 1.3.2 it doesn't seem possible to maintain the LiveApp entries between version. We've tried coping the .db files but in doing so, exceptions are thrown when wiring up the Spring beans.

Environment

[] Operating system and version: Ubuntu 6.04 x64
[] Java version: OpenJdk 1.8.0_162
[] Red5 version: bundled

Expected behavior

It should be possible to upgrade between versions without needing to reimplement all settings

Actual behavior

On install using install_ant-media-server.sh, then coping back the .db files that following is thrown in the logs:


[INFO] [Loader:/ConsoleApp] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Loader:/ConsoleApp] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
[INFO] [Loader:/ConsoleApp] org.red5.server.Context - Setting parent bean factory as core
[INFO] [Loader:/ConsoleApp] org.red5.server.scope.WebScope - Set server [Server@7e3c8ff0map[[empty]]]
[INFO] [Loader:/ConsoleApp] org.red5.server.Server - Add mapping global: default host:  context: ConsoleApp
[WARN] [Loader:/ConsoleApp] org.red5.server.adapter.MultiThreadedApplicationAdapter - scope in multithreadappadaptor:   ..............ConsoleApp
[INFO] [Loader:/ConsoleApp] org.red5.server.scope.WebScope - Webscope already registered; remove the 'init-method' from your 'web.scope' bean to prevent this message in the future.
[INFO] [Loader:/WebRTCApp] org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Wed Apr 25 10:10:05 CDT 2018]; parent: org.springframework.context.support.FileSystemXmlApplicationContext@260e86a1
[INFO] [Loader:/WebRTCApp] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/red5-web.xml]
[INFO] [Loader:/WebRTCApp] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Loader:/WebRTCApp] org.red5.server.Context - Setting parent bean factory as core
[WARN] [Loader:/WebRTCApp] org.springframework.web.context.support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'web.scope' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Cannot resolve reference to bean 'web.handler' while setting bean property 'handler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'web.handler' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Cannot resolve reference to bean 'db.datastore' while setting bean property 'dataStore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'db.datastore' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.antmedia.datastore.db.MapDBStore]: Constructor threw exception; nested exception is org.mapdb.DBException$WrongConfiguration: Wrong type for named record 'broadcast'. Expected 'TreeMap', but catalog has 'HashMap'
[INFO] [Loader:/LiveApp] org.springframework.web.context.support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Wed Apr 25 10:10:05 CDT 2018]; parent: org.springframework.context.support.FileSystemXmlApplicationContext@260e86a1
[INFO] [Loader:/LiveApp] org.springframework.beans.factory.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/red5-web.xml]
[INFO] [Loader:/LiveApp] org.springframework.beans.factory.config.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
[INFO] [Loader:/LiveApp] org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
[INFO] [Loader:/LiveApp] org.red5.server.Context - Setting parent bean factory as core
[INFO] [Loader:/LiveApp] org.red5.server.scope.WebScope - Set server [Server@7e3c8ff0map['/ConsoleApp' -> 'default']]
[INFO] [Loader:/LiveApp] org.red5.server.Server - Add mapping global: default host:  context: LiveApp

and

.support.FileSystemXmlApplicationContext@260e86a1
2018-04-25 10:10:04,599 [Loader:/ConsoleApp] INFO  o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/red5-web.xml]
2018-04-25 10:10:04,619 [main] INFO  o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from class path resource [red5-rtsp.properties]
2018-04-25 10:10:04,623 [main] DEBUG c.a.rtsp.RtspMinaIoHandler - Server is set
2018-04-25 10:10:04,648 [main] DEBUG c.a.rtsp.RtspConnectionManager - setting task scheduler
2018-04-25 10:10:04,648 [main] DEBUG c.a.rtsp.RtspConnectionManager - setting application context 
2018-04-25 10:10:04,654 [main] INFO  c.a.rtsp.RtspMinaTransport - setting IoHandler
2018-04-25 10:10:04,655 [main] INFO  c.a.rtsp.RtspMinaTransport - RTSP will be bound to [0.0.0.0:5554]
2018-04-25 10:10:04,663 [main] INFO  c.a.rtsp.RtspMinaTransport - RTSP Binding to [/0.0.0.0:5554]
2018-04-25 10:10:04,779 [Loader:/ConsoleApp] INFO  o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
2018-04-25 10:10:04,780 [Loader:/ConsoleApp] INFO  o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-04-25 10:10:04,815 [Loader:/ConsoleApp] INFO  org.red5.server.Context - Setting parent bean factory as core
2018-04-25 10:10:04,853 [Loader:/ConsoleApp] INFO  org.red5.server.scope.WebScope - Set server [Server@7e3c8ff0map[[empty]]]
2018-04-25 10:10:04,858 [Loader:/ConsoleApp] INFO  org.red5.server.Server - Add mapping global: default host:  context: ConsoleApp
2018-04-25 10:10:04,860 [Loader:/ConsoleApp] WARN  o.r.s.a.MultiThreadedApplicationAdapter - scope in multithreadappadaptor:   ..............ConsoleApp
2018-04-25 10:10:04,864 [Loader:/ConsoleApp] INFO  org.red5.server.scope.WebScope - Webscope already registered; remove the 'init-method' from your 'web.scope' bean to prevent this message in the future.
2018-04-25 10:10:05,239 [Loader:/WebRTCApp] INFO  o.s.w.c.s.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Wed Apr 25 10:10:05 CDT 2018]; parent: org.springframework.context.support.FileSystemXmlApplicationContext@260e86a1
2018-04-25 10:10:05,240 [Loader:/WebRTCApp] INFO  o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/red5-web.xml]
2018-04-25 10:10:05,257 [Loader:/WebRTCApp] INFO  o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
2018-04-25 10:10:05,259 [Loader:/WebRTCApp] INFO  org.red5.server.Context - Setting parent bean factory as core
2018-04-25 10:10:05,270 [Loader:/WebRTCApp] WARN  o.s.w.c.s.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'web.scope' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Cannot resolve reference to bean 'web.handler' while setting bean property 'handler'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'web.handler' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Cannot resolve reference to bean 'db.datastore' while setting bean property 'dataStore'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'db.datastore' defined in ServletContext resource [/WEB-INF/red5-web.xml]: Bean instantiation via constructor failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [io.antmedia.datastore.db.MapDBStore]: Constructor threw exception; nested exception is org.mapdb.DBException$WrongConfiguration: Wrong type for named record 'broadcast'. Expected 'TreeMap', but catalog has 'HashMap'
2018-04-25 10:10:05,271 [Loader:/LiveApp] INFO  o.s.w.c.s.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Wed Apr 25 10:10:05 CDT 2018]; parent: org.springframework.context.support.FileSystemXmlApplicationContext@260e86a1
2018-04-25 10:10:05,272 [Loader:/LiveApp] INFO  o.s.b.f.xml.XmlBeanDefinitionReader - Loading XML bean definitions from ServletContext resource [/WEB-INF/red5-web.xml]
2018-04-25 10:10:05,404 [Loader:/LiveApp] INFO  o.s.b.f.c.PropertyPlaceholderConfigurer - Loading properties file from ServletContext resource [/WEB-INF/red5-web.properties]
2018-04-25 10:10:05,405 [Loader:/LiveApp] INFO  o.s.b.f.a.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2018-04-25 10:10:05,408 [Loader:/LiveApp] INFO  org.red5.server.Context - Setting parent bean factory as core
2018-04-25 10:10:05,466 [Loader:/LiveApp] INFO  org.red5.server.scope.WebScope - Set server [Server@7e3c8ff0map['/ConsoleApp' -> 'default']]
2018-04-25 10:10:05,467 [Loader:/LiveApp] INFO  org.red5.server.Server - Add mapping global: default host:  context: LiveApp
2018-04-25 10:10:05,468 [Loader:/LiveApp] WARN  o.r.s.a.MultiThreadedApplicationAdapter - scope in multithreadappadaptor:   ..............LiveApp
2018-04-25 10:10:31,491 [http-nio-0.0.0.0-5080-exec-1] INFO 

Are there any instructions on adding IP cameras?

Are there any instructions on adding IP cameras?

Anytime I enter an IP camera address on the web ui, it just disappears after pressing the ADD button and no error information is emitted and no streams are added to the listing.

On the server I see a ConnectException with no host available followed by a NullPointerException.
Maybe I'm entering the wrong Onvif IP URL? What should it look like?

I have tried things like:

but none are accepted.

I have installed the latest CE release version from:
https://github.com/ant-media/Ant-Media-Server/releases/tag/ams-v1.2.6

Running on Ubuntu 16.04.4 LTS using Oracle Java 8.

Reconnecting a new stream with the same name does not work

when a publisher and a consumer already connected using web sockets, stopping the stream and then republishing a new stream with the same id doesn't work on the consuming side and he never gets "play_started" event even that sdp data exchange occurred.

ant-media-server-enterprise-1.4.0-SNAPSHOT-180404_1253

hope i've explained my self good enough...

WebRTC demo not working

Short description

I tried to check a WebRTC to RTMP demo, but probably the server can't see my stream. Neither the player at /WebRTCApp/player.html, not RTMP stream can't open, and the video recording size is 0KB.
I can see the image from my webcam locally, though.

Firstly I thought that I could be behind NAT, but the server works only locally on my PC and that is not probably the reason.

The log: https://pastebin.com/JAhhVQsL

Environment

[] Operating system and version: Win10 X64
[] Browser: Chrome/61.0.3163.100
[] Java version: JDK 9

WebRTC playback

Issue

I am streaming to the WebRTCApp using OBS and rtmp.

My intent is to be able to connect WebRTC clients ant media server. However, I am unable to follow this tutorial:

https://github.com/ant-media/Ant-Media-Server/blob/master/doc/WebRTC_Publish_and_Play_JavaScript_SDK_Details.md

I cannot locate the <script src="js/webrtc_adaptor.js" ></script>.

Moreover, <script src="https://webrtc.github.io/adapter/adapter-latest.js"></script> creates an undefined webRTCAdaptor object.

Were this tutorials meant for the Enterprise version of the software?

Environment

[] Operating system and version: Ubuntu LTS
[] Java version: (as instructed)
[] Red5 version: (as instructed)

Reduce latency for HLS stream?

Hi, I'm noticing that the method that HLS is broadcast is by providing a single playlist file and continually updating it. This makes live streaming sort of work but the delay is something like 1 minute as it seems to always buffer 5 10 second stream .ts files. I tried playing around with these settings, anything else to look into?

fileconsumer.delayed.write=false
fileconsumer.queue.size=0

server version display

it could be nice to see the server version in the dashboard in order to know that an upgrade process had succeeded or not.

Webrtc error

I tried to make it work. Not easy since there a very few doc.
I am trying to run webrtc->hls

When I start the broadcast on WebRTCApp, I see many errors appear in the server such as:

    at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)
    at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)

io.antmedia.webrtc.receiver.FrameRecorder$Exception: No video output stream (Is imageWidth > 0 && imageHeight > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordImage(FFmpegFrameRecorder.java:900)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$2.renderFrame(ReceiverConnectionContext.java:132)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No video output stream (Is imageWidth > 0 && imageHeight > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordImage(FFmpegFrameRecorder.java:900)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$2.renderFrame(ReceiverConnectionContext.java:132)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)
(file_audio_device.cc:504): PlayoutWarning
(file_audio_device.cc:508): PlayoutError
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)(file_audio_device.cc:512): RecordingWarning

(file_audio_device.cc:516): RecordingError
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No video output stream (Is imageWidth > 0 && imageHeight > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordImage(FFmpegFrameRecorder.java:900)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$2.renderFrame(ReceiverConnectionContext.java:132)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)
at io.antmedia.webrtc.receiver.FFmpegFrameRecorder.recordSamples(FFmpegFrameRecorder.java:1055)
at io.antmedia.webrtc.receiver.ReceiverConnectionContext$1.onData(ReceiverConnectionContext.java:91)
io.antmedia.webrtc.receiver.FrameRecorder$Exception: No audio output stream (Is audioChannels > 0 and has start() been called?)

  • Is there any guide or tutorial provided ?
  • Maybe I can purchase your services ?

And maybe the most important question I have is.. is that really working with webrtc ? Because I could not find any demo online.

regards

BTW, your contact page on website does not seem to work : it says bad captcha and there is no captcha displayed !

Altering the URL from local IP address

When accessing from the public side, I get the following tomcat error with the default configuration:

The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.

I need to edit the binding address which the servers see's from the local IP to the public domain for both browsing and for copy rtmp urls.

Where do I change the URL options I can browse the server on the public side along with update the urls for copy/paste within the application?

I tried the file, red5.properites and adjusted from 0.0.0.0 to the public ip, which did not fix the problem. Can you help please?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.