Hello ,
I'm currently developing an application, which encode mpeg2 video and
packetize it into a mpeg transport stream. Im using
guess_format("mpegts",0,0) for the oformat of AVFormatcontext. When I
save it to a file, everything works perfect.
To Stream it over IP , i would to use RTP , my Code looks like this:
url_fopen(&focontext->pb,"rtp://127.0.0.1:5000 , URL_WRONLY))
But the Output isn't RTP but raw udp with mpegts packets, like udp:// !
Is it possibly to send mpegts over rtp using libav?
The other Problem i found is, that when i use udp as output
(udp://<ip>:<port>) the udp-packets includes not only closed ts-packets.
So one udp-packet includes all data from 7 ts-packets plus 156 Bytes of
the next one (at all 1472 Bytes per packet). The next udp-packet starts
with the last 32 Bytes of the ts-packet and then comes the next packet.
This is a problem because the udp-packet doesn't start with the
ts-synch_byte ( 0x47) and some reciever throws errors.
Thanks, Steffen
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user