NetStream.Play.InsufficientBW problem live stream with h264

425 views
Skip to first unread message

Giusanny

unread,
Apr 6, 2011, 10:28:06 AM4/6/11
to red5
Hi,
working with the latest trunk I can see NetStream.Play.InsufficientBW
if I stream live (with fmle) and h264 video codec, i have no problem
with vp6 at same bandwidth (200k for video)

Any idea?

Mondain

unread,
Apr 6, 2011, 11:41:31 AM4/6/11
to red5in...@googlegroups.com, Giusanny
I believe the vp6 packets would be smaller than h.264 but if not, it could be the audio data differences that would take more bandwidth.

Paul

Giuseppe Sannicandro

unread,
Apr 6, 2011, 11:47:38 AM4/6/11
to Mondain, red5in...@googlegroups.com
I was using mp3 as audio codec in both tests at 48k, but the test with vp6 video didn't give me any NetStream.Play.InsufficientBW instead of h264 video codec.
 
I could try to do the same tests with a differente audio codec?

2011/4/6 Mondain <mon...@gmail.com>

Mondain

unread,
Apr 6, 2011, 1:05:54 PM4/6/11
to Giuseppe Sannicandro, red5in...@googlegroups.com
If I were you I would, but I would also see what the actual bandwidth number is. Dominick and Dan have some bandwidth handling examples that may be of use to you while you test.

Paul

davealma

unread,
Apr 6, 2011, 5:56:16 PM4/6/11
to red5
Wich classes or methods apply on wich objects to get the kb ussages
for the transmission!??
could you mention the name's classes!!!

Giuseppe Sannicandro

unread,
Apr 7, 2011, 4:01:06 AM4/7/11
to red5in...@googlegroups.com, davealma
Mondain, I tryed without audio only h264 video and still have insufficientBW, if you explain me how and why this appends I can try to fix it, or it depends from another thing?
 
I repeated the problem on windows and linux using the latest trunk version (i have not bandwidth problems because the tests were made in my lan)
 
thanks

2011/4/6 davealma <davidal...@gmail.com>

Giuseppe Sannicandro

unread,
Apr 7, 2011, 4:06:01 AM4/7/11
to red5in...@googlegroups.com, davealma
i think this is the stack trace...
 
WARN: Exception: java.lang.reflect.InvocationTargetException
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.commons.beanutils.BeanMap.get(BeanMap.java:390)
at org.red5.io.amf.Output.writeObject(Output.java:357)
at org.red5.io.object.Serializer.writeObjectType(Serializer.java:300)
at org.red5.io.object.Serializer.writeComplex(Serializer.java:140)
at org.red5.io.object.Serializer.serialize(Serializer.java:86)
at org.red5.io.amf.Output.writeObject(Output.java:357)
at org.red5.io.object.Serializer.writeObjectType(Serializer.java:300)
at org.red5.io.object.Serializer.writeComplex(Serializer.java:140)
at org.red5.io.object.Serializer.serialize(Serializer.java:86)
at org.red5.io.amf.Output.writeObject(Output.java:357)
at org.red5.io.object.Serializer.writeObjectType(Serializer.java:300)
at org.red5.io.object.Serializer.writeComplex(Serializer.java:140)
at org.red5.io.object.Serializer.serialize(Serializer.java:86)
at org.red5.io.object.Serializer.serialize(Serializer.java:63)
at org.red5.io.amf.Output.writeMap(Output.java:210)
at org.red5.io.object.Serializer.writeObjectType(Serializer.java:296)
at org.red5.io.object.Serializer.writeComplex(Serializer.java:140)
at org.red5.io.object.Serializer.serialize(Serializer.java:86)
at org.red5.io.object.Serializer.serialize(Serializer.java:63)
at org.red5.server.PersistableAttributeStore.serialize(PersistableAttributeStore.java:177)
at org.red5.server.persistence.FilePersistence.saveObject(FilePersistence.java:437)
at org.red5.server.persistence.FilePersistenceThread.run(FilePersistenceThread.java:143)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.nio.BufferUnderflowException
at org.apache.mina.core.buffer.AbstractIoBuffer.getObject(AbstractIoBuffer.java:1937)
at org.apache.mina.core.buffer.AbstractIoBuffer.getObject(AbstractIoBuffer.java:1927)


2011/4/7 Giuseppe Sannicandro <gius...@gmail.com>

Kraucer Fernandes Mazuco

unread,
Apr 24, 2018, 8:42:35 PM4/24/18
to red5
Same problem here, but only when I use rtmpe.

File: /red5/webapps/redfire/video/redfire_2way.html
Content: var videoBandwidth        = getPageParameter('videoBandwidth', '15000');

File: /red5/webapps/redfire/video/redfire_video.html
Content: var videoBandwidth        = getPageParameter('videoBandwidth', '15000');

I've already changed the parameter below from 15000 to 90000 and the error keeps popping up. Where should I adjust this?
Reply all
Reply to author
Forward
0 new messages