ok, I started from mux sample here:
http://git.videolan.org/?p=ffmpeg.git;a=blob;f=doc/examples/muxing.c;h=7305cc6284a0e04aaddd3d79a0bc830b9dd53256;hb=HEAD

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.

thanks



2013/6/8 Kalileo <[email protected]>

>
> 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
> libavformat/avcodec.
> > 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
> [email protected]
> http://ffmpeg.org/mailman/listinfo/libav-user
>



-- 
Massimo Battistel.
_______________________________________________
Libav-user mailing list
[email protected]
http://ffmpeg.org/mailman/listinfo/libav-user

Reply via email to