[Live-devel] Problem Streaming MPEG4ES from buffer

Julian Lamberty julian.lamberty at mytum.de
Wed Jun 6 05:23:56 PDT 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5198 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.live555.com/pipermail/live-devel/attachments/20070606/04c84ac1/attachment.bin 


More information about the live-devel mailing list