H.264 AVC codec videos on red5

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

H.264 AVC codec videos on red5

Hugo Flambo
Hi list,

Is this kind of encoding supported by red5...
I'm getting null pointer exception when try to play them...
I've googled for this and i can not get into any conclusion..I've seen
some posts about some kind of patch applied...
I'm using on test red5 0.8 rc2

[NioProcessor-1] WARN  org.red5.io.mp4.impl.MP4Reader - Unexpected atom: ftyp
[NioProcessor-1] ERROR o.r.s.m.InMemoryPullPullPipe - exception when
pulling message from provider java.lang.NullPointerException: null
at org.red5.io.mp4.impl.MP4Reader.analyzeFrames(MP4Reader.java:1123)
[red5.jar:na]
...

Stack trace bellow...

BR

Hugo


2009-11-27 15:02:23,003 [NioProcessor-1] WARN
org.red5.io.mp4.impl.MP4Reader - Unexpected atom: ftyp
2009-11-27 15:02:23,113 [NioProcessor-1] ERROR
o.r.s.m.InMemoryPullPullPipe - exception when pulling message from
provider
java.lang.NullPointerException: null
        at org.red5.io.mp4.impl.MP4Reader.analyzeFrames(MP4Reader.java:1123)
[red5.jar:na]
        at org.red5.io.mp4.impl.MP4Reader.<init>(MP4Reader.java:218) [red5.jar:na]
        at org.red5.io.mp4.impl.MP4.getReader(MP4.java:139) [red5.jar:na]
        at org.red5.server.stream.provider.FileProvider.init(FileProvider.java:232)
[red5.jar:na]
        at org.red5.server.stream.provider.FileProvider.pullMessage(FileProvider.java:126)
[red5.jar:na]
        at org.red5.server.messaging.InMemoryPullPullPipe.pullMessage(InMemoryPullPullPipe.java:74)
[red5.jar:na]
        at org.red5.server.stream.PlayEngine.play(PlayEngine.java:506) [red5.jar:na]
        at org.red5.server.stream.PlayEngine.play(PlayEngine.java:307) [red5.jar:na]
        at org.red5.server.stream.PlaylistSubscriberStream.play(PlaylistSubscriberStream.java:247)
[red5.jar:na]
        at org.red5.server.stream.StreamService.play(StreamService.java:299)
[red5.jar:na]
        at org.red5.server.stream.StreamService.play(StreamService.java:321)
[red5.jar:na]
        at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source) [na:na]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[na:1.6.0_12]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_12]
        at org.red5.server.service.ServiceInvoker.invoke(ServiceInvoker.java:200)
[red5.jar:na]
        at org.red5.server.net.rtmp.RTMPHandler.invokeCall(RTMPHandler.java:186)
[red5.jar:na]
        at org.red5.server.net.rtmp.RTMPHandler.onInvoke(RTMPHandler.java:380)
[red5.jar:na]
        at org.red5.server.net.rtmp.BaseRTMPHandler.messageReceived(BaseRTMPHandler.java:146)
[red5.jar:na]
        at org.red5.server.net.rtmp.RTMPMinaIoHandler.messageReceived(RTMPMinaIoHandler.java:193)
[red5.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$TailFilter.messageReceived(DefaultIoFilterChain.java:713)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.filter.codec.ProtocolCodecFilter$ProtocolDecoderOutputImpl.flush(ProtocolCodecFilter.java:375)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.filter.codec.ProtocolCodecFilter.messageReceived(ProtocolCodecFilter.java:229)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.access$1200(DefaultIoFilterChain.java:46)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain$EntryImpl$1.messageReceived(DefaultIoFilterChain.java:793)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.filterchain.IoFilterAdapter.messageReceived(IoFilterAdapter.java:119)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.callNextMessageReceived(DefaultIoFilterChain.java:434)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.filterchain.DefaultIoFilterChain.fireMessageReceived(DefaultIoFilterChain.java:426)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.read(AbstractPollingIoProcessor.java:632)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:592)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.process(AbstractPollingIoProcessor.java:581)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor.access$400(AbstractPollingIoProcessor.java:59)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.core.polling.AbstractPollingIoProcessor$Processor.run(AbstractPollingIoProcessor.java:945)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)
[mina-core-2.0.0-M7-SNAPSHOT.jar:na]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[na:1.6.0_12]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[na:1.6.0_12]
        at java.lang.Thread.run(Thread.java:619) [na:1.6.0_12]
2009-11-27 15:02:23,368 [pool-3-thread-2] WARN
org.red5.io.mp4.impl.MP4Reader - Unexpected atom: ftyp
2009-11-27 15:02:23,418 [pool-3-thread-2] ERROR
o.r.s.m.InMemoryPullPullPipe - exception when pulling message from
provider
java.lang.NullPointerException: null
        at org.red5.io.mp4.impl.MP4Reader.analyzeFrames(MP4Reader.java:1123)
[red5.jar:na]
        at org.red5.io.mp4.impl.MP4Reader.<init>(MP4Reader.java:218) [red5.jar:na]
        at org.red5.io.mp4.impl.MP4.getReader(MP4.java:139) [red5.jar:na]
        at org.red5.server.stream.provider.FileProvider.init(FileProvider.java:232)
[red5.jar:na]
        at org.red5.server.stream.provider.FileProvider.pullMessage(FileProvider.java:126)
[red5.jar:na]
        at org.red5.server.messaging.InMemoryPullPullPipe.pullMessage(InMemoryPullPullPipe.java:74)
[red5.jar:na]
        at org.red5.server.stream.PlayEngine.pullAndPush(PlayEngine.java:863)
[red5.jar:na]
        at org.red5.server.stream.PlayEngine$PullAndPushRunnable.run(PlayEngine.java:1536)
[red5.jar:na]
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
[na:1.6.0_12]
        at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
[na:1.6.0_12]
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
[na:1.6.0_12]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
[na:1.6.0_12]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
[na:1.6.0_12]
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
[na:1.6.0_12]
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
[na:1.6.0_12]
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
[na:1.6.0_12]
        at java.lang.Thread.run(Thread.java:619) [na:1.6.0_12]