On 16.2.2011 08:42, michael chua wrote:
While examples for writing an encoded video stream into a file
container are relatively abundant, I'm having trouble transmitting my
MPEG4 encoded streams into VLC for viewing. libav isn't giving me any
errors for the code I'm running, and using a packet filter, I can tell
both that my test app is sending UDP packets, and that VLC is
receiving them, but they aren't being processed correctly (nothing is
being displayed). I suspect that there's something wrong with the way
I'm initializing my libav structures, or how I'm sending them to
unicast target, but having gone through all the samples I could find,
and going through the libav headers, I've run out of options to try.

Can you tell us, what Messages are in the output of vlc? I remember on the fact, that vlc only plays udp-Stream if inside is a mpeg-ts, but not sure.

I'm particularly unsure about when it would be proper to call av_write_header.

It must be called before the first packet was send, so I think it's in the right position at your code.


Steffen
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to