Hi, Thanks for you people suppport. Now i am able to stream data over network using RTP through libavformat. Now one thing is pending, how to instruct libavformat to use specific packetization mode for H.264?
Once again Thanks. On Thu, Jul 29, 2010 at 12:53 AM, Umakant Goyal <[email protected]>wrote: > Hi, > > i am not able to open an AVFormatContext with format "rtp". > i tried it using following API but failed to do: > AVFormatContext *avfc; > AVOutputFormat *rtp; > avfc = av_alloc_format_context(); > rtp = av_guess_format("mp4", NULL, NULL); // It alsways return > NULL???????????????? > if (!rtp) { > printf("Unable for find the RTP format for output\n"); > return NULL; > > } > > On Thu, Jul 29, 2010 at 12:32 AM, Umakant Goyal > <[email protected]>wrote: > >> Hi, >> >> Thanks, i believe there is no need to call av_open_input_file API for this >> purpose? >> secondly, is there need to call any API before av_guess_format API >> because it returns NULL evry time? >> >> Thanks >> >> >> On Wed, Jul 28, 2010 at 11:21 PM, Luca Abeni <[email protected]> wrote: >> >>> On 28/07/10 17:36, Umakant Goyal wrote: >>> >>>> Hi, Thanks for the reply. i have following points: >>>> 1. who will open the socket to send data libavformat library or my >>>> application? >>>> >>> The socket is opened with url_fopen(), if the url is "rtp://..." >>> >>> >>> 2. where i will configure which RTP payload i need to add on encoded >>>> data? >>>> >>> This is automatically configured by libavormat, when you call >>> av_write_header(), based on the codec type. >>> >>> >>> 3. where i will configue psyload type and timestamp? >>>> >>> Again, the payload type is automatically determined by libavformat (based >>> on the codec_type); regarding the timestamp, you have to set it in the >>> AVPacket before calling av_interleaved_write_frame() (again, see >>> output-example.c for more details). >>> >>> >>> Luca >>> _______________________________________________ >>> >>> libav-user mailing list >>> [email protected] >>> https://lists.mplayerhq.hu/mailman/listinfo/libav-user >>> >> >> > _______________________________________________ libav-user mailing list [email protected] https://lists.mplayerhq.hu/mailman/listinfo/libav-user
