<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:10pt"><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt; ">I managed to set up the configuration i described by omitted the av_encode_video() call and instead add the call to x264_encoder_encode() </div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt; ">and fill in the data in packets as follow:</div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt; "><br></div><div><font size="2">pkt.data = nals[0].p_payload; //video_outbuf;</font><br></div><div><font size="2"><br></font></div><div><font size="2">However the problem i have now is that i can't produce the appropriate SDP file as i did before using the av_sdp_create();</font></div><div><font
 size="2"><br></font></div><div><font size="2">Does anyone knows how to create the appropriate SDP file when encoding using the x264-api and streaming with ffmpeg-api ?</font></div><div><font size="2"><br></font></div><div><font size="2">thanks</font></div><div><font size="2"><br></font></div><div><font size="2"><br></font></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt; "> </div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 10pt; "><span style="font-weight: bold; color: rgb(91, 91, 91); font-family: 'comic sans ms'; ">Adreas Polychronopoulos</span><br style="font-weight: bold; color: rgb(0, 0, 255); font-family: 'comic sans ms'; "><br></div>  <div style="font-size: 10pt; font-family: 'Courier New', courier, monaco, monospace, sans-serif; "> <div style="font-size: 12pt; font-family: 'times new roman', 'new york', times, serif; "> <div dir="ltr"> <font
 size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> adreas Polyxronopoulos <apolyxrono@yahoo.co.uk><br> <b><span style="font-weight: bold;">To:</span></b> "libav-user@ffmpeg.org" <libav-user@ffmpeg.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Wednesday, 14 March 2012, 12:43<br> <b><span style="font-weight: bold;">Subject:</span></b> rtp muxing of H264 NAL units <br> </font> </div> <br><meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1385434760"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-size: 10pt; font-family: 'Courier New', courier, monaco, monospace, sans-serif; "><div><span>Hi ,</span></div><div><span><br></span></div><div><span>I encode yuv420p frames with the x264 api to NAL units. I would like to use the ffmpeg-api to mux them with the rtp muxer.</span></div><div><span>I have done this using ffmpe-api to encode (H264 codec)
 and stream the yuv420p frames but now I want to have more control on the codec options so the encoding is done by x264-api and streaming with the ffmpeg-api.</span></div><div><br></div><div><span>yuv420p---->|x264-api|---->NAL--->|ffmpeg-api|---->rtp packet</span></div><div><span><br></span></div><div><span>thanks </span></div><div> </div><div><span style="font-weight: bold; color: rgb(91, 91, 91); font-family: 'comic sans ms'; ">Adreas Polychronopoulos</span><br style="font-weight:bold;color:rgb(0, 0, 255);font-family:'comic
 sans ms';"></div></div></div></div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br> </div> </div>  </div></body></html>