Closed GoogleCodeExporter closed 9 years ago
This is probably happening because you haven't yet received a packet of video
when
you're querying the stream coder.
When you open a container where you don't read the header, and say dynamic
streams
can be added (as you do), you can only query the stream coder once you've
gotten at
least ONE packet for that stream.
So, in your code when you read packets, wait for the first video packet, and
then get
the stream coder. It should be probably configured then.
See the Red5 Transcoder.java for an example of doing that, or if you're brave
(because it does a lot more) see the MediaReader.java code which does that.
Basic rule: Don't ask for a stream coder for a stream until you've gotten at
least
one packet from that stream.
If I'm wrong, please re-open, but I'll bet 1 chocolate cookie I'm right.
Original comment by art.cla...@gmail.com
on 11 Jun 2009 at 7:05
You were right, I owe you a cookie; can't say I'm surprised.
Original comment by mondain
on 11 Jun 2009 at 8:16
Original issue reported on code.google.com by
mondain
on 11 Jun 2009 at 6:59