[Libav-user] programmatically output streaming (mpeg-ts over udp)
battistel at gmail.com
Sun Jun 9 19:19:27 CEST 2013
I've finally made it work.
I had to limit the speed at which I output packets and made a little change
I have some questions:
1. How can I control packet output queue? Can I set its length?
2. Can someone tell me the point in ffmpeg source where the "-re" parameter
logic is implemented?
thanks a lot
2013/6/8 Massimo Battistel <battistel at gmail.com>
> ok, I started from mux sample here:
> I made these changes:
> 1. I forced mpegts as muxer
> 2. I set output file as udp://ipaddr:port
> 3. The while cicle that writes packets runs forever (it never checks if
> pts >= STREAM_DURATION).
> I test stream with: ffplay udp://ipaddr:port
> I can hear audio but no video (I can only see first frame), plus cpu is
> too high (> 65%)
> Do I have to control the speed at which I output packets? How? If adding
> Sleep(x) in the while cicle, it goes well for the first 10 seconds, then
> video starts loosing frames and audio becomes choppy.
> 2013/6/8 Kalileo <kalileo at universalx.net>
>> On Jun 9, 2013, at 00:19 , Massimo Battistel wrote:
>> > hello,
>> > I would like to know if there are some code samples and/or tutorials
>> for programmatically output streaming (mpeg-ts over udp) using
>> > I can't find anything on ffmpeg web site.
>> Nothing special needed, because it's not different then writing to a
>> file, select mpegts as muxer and your target udp url as filename.
>> Libav-user mailing list
>> Libav-user at ffmpeg.org
> Massimo Battistel.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user