I am new to the list and to ffmpeg.
 
I am trying to stream video, over the internet, using H263 from pictures 
captured from a webcam, but AVCodecContext as so many attibutes, that is 
overwellming for someone who is just starting.
 
Can anyone help me setting the correct attributes?
 
 
What i have so far:
 
AVCodecContext* encoderCodecContext;
encoderCodecContext = avcodec_alloc_context();
 
// put sample parameters
encoderCodecContext->codec_type = CODEC_TYPE_VIDEO;
encoderCodecContext->pix_fmt = (PixelFormat)streamingFormat;
encoderCodecContext->bit_rate = 90000;
// resolution must be a multiple of two
encoderCodecContext->width = streamingWidth;
encoderCodecContext->height = streamingHeight;
// frames per second
encoderCodecContext->time_base.num = 1;
encoderCodecContext->time_base.den = 15;
// emit one intra frame every ten frames
encoderCodecContext->gop_size = 10;
encoderCodecContext->max_b_frames = 0;
 
 
Any help will be appreciated.
 
Rafael Maia
 
_________________________________________________________________
ConheƧa o Windows Live Spaces, a rede de relacionamentos do Messenger!
http://www.amigosdomessenger.com.br/
_______________________________________________
libav-user mailing list
[email protected]
https://lists.mplayerhq.hu/mailman/listinfo/libav-user

Reply via email to