错误Red5服务器到流媒体文件,包括java中的封面艺术或专辑封面

时间:2012-09-24 07:15:01

标签: java

我正在使用red5服务器来播放mp3文件或其他格式文件。如果我的文件不包含任何封面艺术或专辑封面,它可以正常工作。如果它包括封面艺术或专辑封面,我将获得以下例外。

[ERROR] [pool-4-thread-2] org.red5.server.messaging.InMemoryPullPullPipe - exception when pulling message from provider
java.lang.IllegalArgumentException: null
    at java.nio.Buffer.position(Buffer.java:235) [na:1.6.0_20]
    at org.apache.mina.core.buffer.AbstractIoBuffer.position(AbstractIoBuffer.java:368) [mina-core-2.0.0-RC1.jar:na]
    at org.red5.io.mp3.impl.MP3Reader.analyzeKeyFrames(MP3Reader.java:603) [red5.jar:na]
    at org.red5.io.mp3.impl.MP3Reader.<init>(MP3Reader.java:242) [red5.jar:na]
    at org.red5.io.mp3.impl.MP3.getReader(MP3.java:48) [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:70) [red5.jar:na]
    at org.red5.server.stream.PlayEngine$PullAndPushRunnable.run(PlayEngine.java:1538) [red5.jar:na]
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471) [na:1.6.0_20]
    at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351) [na:1.6.0_20]
    at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178) [na:1.6.0_20]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:165) [na:1.6.0_20]
    at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:267) [na:1.6.0_20]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) [na:1.6.0_20]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) [na:1.6.0_20]
    at java.lang.Thread.run(Thread.java:636) [na:1.6.0_20]

0 个答案:

没有答案