[x264-devel] [about gop paralellism]

RG Nurrahmat rgnurrahmat at yahoo.com
Mon Oct 15 13:48:55 CEST 2007


Hi Victor, 

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?)

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.

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.

I have not included audio, which I will add later on, once I have figured out these video encoding functions work.

Thank you so much, by the way.





 

Victor Mateevitsi <victoras at telecom.ntua.gr> wrote: For now, enter this command line: 
./x264 <raw input> <resolution> --qp <qp number> --output <output filename>

This will encode your raw input stream into H264 with the default parameters. 

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:
./x264 --longhelp

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:

./x264 input.yuv 720x576 --qp 26 --output encoded.264



 On 10/15/07, RG Nurrahmat <rgnurrahmat at yahoo.com> wrote: Dear Loren, 

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. 

Is it correct that FFMPEG can only decode? but not encode as well? Since I have built my FFMPEG to include x264 library. 

Thank you.


Loren Merritt < lorenm at u.washington.edu> wrote: On Sat, 13 Oct 2007, ½¯Ð˲ý wrote:

>      I'm a newbie of x264 and tried to encode yuv sequences on multi-core 
> platforms.

And x264's builtin threading doesn't suffice?

>      first I pinned some GOP task on each logical CPUs, and then read a gop
> for every gop task, when the encoding process is done, the main thread 
> re-order the out-of-order data encoded by  the GOP tasks.
>      the result is fine, but when I playback the bitstream, there will be
> some error information displayed on the information window of videolan
> client:
>
> ffmpeg warning: error while decoding MB 14 13, bytestream (-7) 
> (h264 at 00CEB3C0)
> ffmpeg debug: concealing 145 DC, 145 AC, 145 MV errors
> (h264 at 00CEB3C0)
>
>      any sugestion will be appreciated.

There's nothing in the bitstream format that would prevent arbitrary  
concatenation of GOPs. So it's a bug in your code. And since you haven't 
posted your code, no one can possibly help.

--Loren Merritt_______________________________________________
x264-devel mailing list 
x264-devel at videolan.org
 http://mailman.videolan.org/listinfo/x264-devel

 Send instant messages to your online friends  http://uk.messenger.yahoo.com 

_______________________________________________
x264-devel mailing list
x264-devel at videolan.org 
http://mailman.videolan.org/listinfo/x264-devel



 _______________________________________________
x264-devel mailing list
x264-devel at videolan.org
http://mailman.videolan.org/listinfo/x264-devel


 Send instant messages to your online friends http://uk.messenger.yahoo.com 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.videolan.org/pipermail/x264-devel/attachments/20071015/f448b804/attachment.htm 


More information about the x264-devel mailing list