无法使用red5中的hls插件进行连接

时间:2014-01-04 07:46:53

标签: java red5 http-live-streaming m3u8

我正在使用最近为red5引入的hls插件。

当我尝试连接hlsapp时,red5给我这个错误:

线程中的异常“Launcher:/ hlsapp”java.lang.RuntimeException:无法加载webapplication上下文类     在org.red5.server.tomcat.TomcatLoader $ 1.run(TomcatLoader.java:611) 引起:org.springframework.beans.factory.BeanCreationException:在ServletContext资源[/WEB-INF/red5-web.xml]中定义名为'segmenter.service'的bean时出错:init方法的调用失败;嵌套异常是java.lang.NoClassDefFoundError:无法初始化类com.xuggle.ferry.JNIMemoryManager     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1455)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)     在org.springframework.beans.factory.support.AbstractBeanFactory $ 1.getObject(AbstractBeanFactory.java:294)     在org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:225)     在org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:291)     在org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)     在org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:913)     在org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:464)     在org.red5.server.tomcat.TomcatLoader $ 1.run(TomcatLoader.java:590) 引起:java.lang.NoClassDefFoundError:无法初始化类com.xuggle.ferry.JNIMemoryManager     在com.xuggle.mediatool.ToolFactory.setTurboCharged(ToolFactory.java:409)     在org.red5.service.httpstream.SegmenterService.afterPropertiesSet(SegmenterService.java:132)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1514)     在org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1452)

[WARN] [Red5_Scheduler_Worker-9] org.red5.server.net.rtmp.RTMPConnection - 关闭RTMPMinaConnection从192.168.1.114:34215到192.168.1.114(in:3443 out:3221),id为-1长握手

另外我现在还不明白如何连接HLS插件我通过传递“rtmp://192.168.1.114/hlsapp/user_id/video_name”来做到这一点,同样适用于oflaDemo“rtmp://192.168 .1.114 / oflaDemo / USER_ID / VIDEO_NAME”。

请告诉我我做错了什么。我使用的是jdk7,xuggler,red5 1.0.2

任何帮助都会非常明显

1 个答案:

答案 0 :(得分:1)

该错误似乎表明无法找到Xuggler库。确保在red5 / lib目录中有xuggler jar。