Hi!

I've a ffmpeg code that writes MPEG4 frames into a buffer. I want to stream these frames over RTP/RTSP. At the moment I pass the buffer to an "MPEG4VideoStreamDiscreteFramer" that sends it to an "MPEG4ESVideoRTPSink". But the stream I receive is totally corrupted. Using wireshark I can see, that all the packets I send have nearly the same content, only a few bytes change form packet to packet.

When I write the buffer to a file ("fwrite(outbuf, 1, enc_bytes, file)"), I can stream that file perfectly via the test program "testMPEG4VideoStreamer". Taking the same buffer and copying it to fTo results in a broken stream("memcpy(fTo, outbuf, enc_bytes)").

Do I have to change fpresentationTime and fdurationInMicroseconds? Right now I just set them to presentationTime and durationInMicorseconds...

fFrameSize is set to enc_bytes if smaller fMaxSize, that should be correct, right?

Do I have to use "MPEG4VideoStreamFramer" instead as the test program does?

Please help me handling that buffer over to live555.

Thanks!

Julian

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
live-devel mailing list
[email protected]
http://lists.live555.com/mailman/listinfo/live-devel

Reply via email to