Hi Gavin,
Gavin Smith wrote:
[...]]
> My goal is to now packetize the H264 data into an RTP packet and stream
> it over a network to another node.
>
> From what I read, it appears that FFMPEG already has the facilities to
> do what I want, is that correct?
Yes, it is. You just need to write the H.264 ES to an rtp://... URL (using
the rtp output format).
>
> In all honesty, I'm a bit unsure of where to start.
> I've been looking at some doxygen generated documentation (in the link
> below),
> and cannot quite determine which functions ought to be called.
Look at output_example.c to learn how to write a video ES into an output
file. You can start with an avi file, for example. Once you have some code
that successfully writes your H.264 ES in an avi, just change the output
file name to "rtp://<dest addr>:<dest port>", and change the output format
from avi to rtp.
You might want to call avf_sdp_create() to get an SDP describing the stream
(needed to receive it). See ffmpeg.c for details.
Luca
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user