<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span>Hi all,</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span><br></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span>i have a yuv420p(352x2880@10fps) file and i am trying to encode it and stream it in rtp using the following ffmpeg-cmd:</span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span><br></span></div><div><span><font class="Apple-style-span" size="2"><div>ffmpeg  -re -s 352x288 -f rawvideo -pix_fmt yuv420p  -r 10 -i sample_352x288@10_YUV420p.yuv -an  -vcodec libx264  -preset fast -profile baseline -threads 0 -r 10 -s 352x288 -b:v 200k -flags global_header  -f rtp rtp://127.0.0.1:9999 ;</div><div><br></div><div>I
 managed to play the rtp-stream with mplayer using as input the sdp info created from the previous command. (mplayer sdp:// stream.sdp)</div><div><br></div><div>However when i am trying to do the same task using libav* and the muxing.c in examples dir, i have the following problems:</div><div><br></div><div>1) I can not set the profile, level and some other options for h624 encoder using av_set_opt(), i got SegmentationFault, but i have added as a ticket in ffmpeg-bug report system with ticket_id: 650</div><div>    and i passed this problem setting the desired options from within X264_init().</div><div><br></div><div>2) The duration of the file is 52.6 sec (526 total frames @ 10 fps),  in the above ffmpeg command the -re option forces ffmpeg to read the file in native frame rate at 10fps. How can i do this from my source code ? Should i implemented and how ? Is there any value to set in any libav structure ?</div><div><br></div><div>thanks
 in advance</div></font></span></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "> </div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><span style="font-weight: bold; color: rgb(91, 91, 91); font-family: 'comic sans ms'; ">andreasP</span><br style="font-weight: bold; color: rgb(0, 0, 255); font-family: 'comic sans ms'; "></div></div></body></html>