Hi Victor, <br><br>Sorry, I forgot to tell you that I will be using VC++ and x264 library. The tutorial that I have been reading is FFMPEG, and, I just found out that FFMPEG can only decode, to encode I'll need x264. (is that correct?)<br><br>And I have been scratching my head on how to pass raw video data to x264 and what parameters to be set and functions to be called. I could tell from the CLI parameters that you wrote earlier, those are exactly parameters I need to pass to x264 functions.<br><br>My input is from webcam, therefore, it will be in RGB, so, is there a converter to conver RGB to YUV in x264 library? I have been tracing H.263, I think this is the first step to encode, to convert from RGB to YUV420 that is.<br><br>I have not included audio, which I will add later on, once I have figured out these video encoding functions work.<br><br>Thank you so much, by the way.<br><br><br><br><br><br> <br><br><b><i>Victor Mateevitsi
<victoras@telecom.ntua.gr></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> For now, enter this command line: <br>./x264 <raw input> <resolution> --qp <qp number> --output <output filename><br><br>This will encode your raw input stream into H264 with the default parameters. <br><br>If you want to fine-tune your encoding and choose what to enable and what not, you can see a list of supported command line options by entering the following command:<br>./x264 --longhelp<br><br>So, for example if your raw input is input.yuv, your resolution is 720x576 and your output h264 encoded stream want to be encoded.264, you should write:<br><br>./x264 input.yuv 720x576 --qp 26 --output encoded.264<br><br><br><br><div><span class="gmail_quote"> On 10/15/07, <b class="gmail_sendername">RG Nurrahmat</b> <<a href="mailto:rgnurrahmat@yahoo.com">rgnurrahmat@yahoo.com</a>>
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> Dear Loren, <br><br>I am newbie in x264, and have been spending my days surfing the net to look for ways to pass my raw video data to x264 in stream ( no need to open a file). Can you show me how to do that? including the parameters needed. <br><br>Is it correct that FFMPEG can only decode? but not encode as well? Since I have built my FFMPEG to include x264 library. <br><br>Thank you.<br><br><br><b><i>Loren Merritt <<a href="mailto:lorenm@u.washington.edu" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> lorenm@u.washington.edu</a>></i></b> wrote:<blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Sat, 13 Oct 2007, ½¯Ð˲ý wrote:<br><br>> I'm a newbie of x264 and tried to encode yuv sequences on multi-core <br>> platforms.<br><br>And x264's
builtin threading doesn't suffice?<br><br>> first I pinned some GOP task on each logical CPUs, and then read a gop<br>> for every gop task, when the encoding process is done, the main thread <br>> re-order the out-of-order data encoded by the GOP tasks.<br>> the result is fine, but when I playback the bitstream, there will be<br>> some error information displayed on the information window of videolan<br>> client:<br>><br>> ffmpeg warning: error while decoding MB 14 13, bytestream (-7) <br>> (h264@00CEB3C0)<br>> ffmpeg debug: concealing 145 DC, 145 AC, 145 MV errors<br>> (h264@00CEB3C0)<br>><br>> any sugestion will be appreciated.<br><br>There's nothing in the bitstream format that would prevent arbitrary <br>concatenation of GOPs. So it's a bug in your code. And since you haven't <br>posted your code, no one can possibly help.<br><br>--Loren Merritt_______________________________________________<br>x264-devel mailing
list <br><a href="mailto:x264-devel@videolan.org" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">x264-devel@videolan.org</a><br><a href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://mailman.videolan.org/listinfo/x264-devel</a><br></blockquote><br><div> Send instant messages to your online friends <a href="http://uk.messenger.yahoo.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> http://uk.messenger.yahoo.com</a> </div><br>_______________________________________________<br>x264-devel mailing list<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:x264-devel@videolan.org">x264-devel@videolan.org </a><br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mailman.videolan.org/listinfo/x264-devel" target="_blank">http://mailman.videolan.org/listinfo/x264-devel</a><br><br></blockquote></div><br>
_______________________________________________<br>x264-devel mailing list<br>x264-devel@videolan.org<br>http://mailman.videolan.org/listinfo/x264-devel<br></blockquote><br><p> Send instant messages to your online friends http://uk.messenger.yahoo.com