HI Luca, Thanks a lot for your quick response and help .. I was confused with h264_parser.c and h264.c file .
Could you please give an idea what this files do (I am totally new to this) . Whether this files will internally use x264 functions ? With regards mahesh On Tue, Apr 15, 2008 at 7:00 AM, Luca Abeni <[EMAIL PROTECTED]> wrote: > Hi Mahesh, > > > Mahesh Govind wrote: > > HI, > > > > Could you please give me some pointers/example to create RTP packets > > with H.264 as payload , using ffmpeg . > Just open an output file with format "rtp" and url > "rtp://<destination address>:<port>", and write an h.264 stream in it. > The corresponding AVFormatContext must contain only one AVStream (the h.264 > video stream). > > I think you can look at output_example.c for seeing how to open an output > file and to write an encoded stream in it. > > The ffmpeg program can do something like this, when the following command > line > is used: > ./ffmpeg -re -i <input file> -vcodec libx264 -an -f rtp rtp://127.0.0.1:10000 > (you need to compile ffmpeg with x264 enabled). > Or, if you do not want to encode in real-time, you can use: > ./ffmpeg -re -i test.h264 -vcodec copy -f rtp rtp://127.0.0.1:10000 > > > > > Whether the H.264 encoder and parser (under LGPL ) with libavcodec is > > totally different from x264 . > > libavcodec does not provide any H.264 encoder. And I do not know if > x264 provides an H.264 parser (I think x264 is only an encoder). > > > 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
