[Libav-user] how to output an AVPacket via UDP??
ebersbac at hs-mittweida.de
Mon Aug 8 09:22:03 CEST 2011
Am 7.8.2011 03:01, schrieb Mark Fonnemann:
> I am trying to output an AVPacket via UDP to a remote computer.
> I have code that can successfully write frames to a file but when i
> change this:
> avio_open(&muxer->pb, "c:\\bat.ts", AVIO_FLAG_WRITE)
> to this:
> avio_open(&muxer->pb, "udp://127.0.0.1:1234", AVIO_FLAG_WRITE),
> I expected a later call to av_write_frame() to now output udp packets
> with the muxed data. However, using wireshark (a network protocol
> analyzer) it is easy to see that no UDP packets are being sent on the
> wire. I am working with mingw-compiled DLLs in VisualStudio so I am
> unable to do much in the way of debugging. I am really stuck and would
> appreciate any help. Thank you.
> Libav-user mailing list
> Libav-user at ffmpeg.org
Did you test this also bei a Videoplayer like VLC or ffplay? What OS do
you use, because on Windows wireshark are not able (or not out of the
box) to capture packets on the loopback address (127.0.01). The function
call is right, but I'm not sure if avio_open is part of the API.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user