It's known by everyone
that i am working on a opensource live encoder, it's ugly and dirty
code for now, just to figure the work, after this, i'll rewrite
everythin on a beauty code.
Please, may I give a bit of your attention?
I am writing a publisher of H264 live content, and I am having problems
with metadata.
I got the packets generated by other "well known encoder" that comes to
"ClientBroadcastStream" and deserialized them.
I maked a "reverse" of this, serializing the new packets.
When packet arrive client (the publisher application) I got:
"19:52:45:911 - Asynchronous code error - ReferenceError: Error #1069".
Have you seen this error?
I never created a packet from scratch on my whole life, so, it's
possible that the error is obvious.
_client
is a simple RTMPClient with "published" state (some code from
StreamingProxy).
Look my
created packet:
Notify createdNotify = new Notify();
IoBuffer buf2 = IoBuffer.allocate(1024);
buf2.setAutoExpand(true);
Output out2 = new Output(buf2);
out2.writeString("@setDataFrame");
out2.writeString("onMetaData");
Map<Object, Object> props2 = new HashMap<Object,
Object>();
props2.put("videokeyframe_frequency", (java.lang.Integer)
5);
props2.put("videodevice", "Microsoft LifeCam VX-1000");
props2.put("keywords", "");
props2.put("width", (java.lang.Integer) 320);
props2.put("videodatarate", (java.lang.Integer) 200);
props2.put("presetname", "Medium Bandwidth (300 Kbps) -
H.264");
props2.put("copyright", "");
props2.put("creationdate", "Mon Jul 06 18:22:19 2009\n");
props2.put("videocodecid", (java.lang.Integer) 4);
props2.put("author", "");
props2.put("title", "");
props2.put("height", (java.lang.Integer) 240);
props2.put("description", "");
props2.put("rating", "");
props2.put("framerate", Double.parseDouble("15"));
out2.writeMap(props2, new Serializer());
buf2.flip();
createdNotify.setData(out2.buf());
RTMPMessage msg2 = new RTMPMessage();
msg2.setBody(createdNotify);
_client.publishStreamData(streamId, msg2);
_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org