[x264-devel] How to Feed ARGB RAW input To x264 Encoder

Dolevo Jay cmst at live.com
Tue Mar 26 16:43:08 CET 2013



Date: Tue, 26 Mar 2013 20:06:49 +0800
From: shawroop_ymca123 at yahoo.co.in
To: x264-devel at videolan.org
CC: shawroopymca123 at gmail.com
Subject: [x264-devel] How to Feed ARGB RAW input To x264 Encoder

Hi Friend's
       I am using x264 Encoder in my application .I am getting raw ARGB Data as input from some source .i want  to encode that data using x264 Encoder .i know the some of the attribute of my input like height,width, framerate etc.  

 
int iframe_size = x264_encoder_encode(    m_pEncoder, 
                                                                &m_nals, 
                                   
                             &i_nals, 
                                                                &m_pic_in, 
                                                                &m_pic_out);    //number of output NAL


how to Fill the   m_pic_in and m_pic_out  structure using ARGB data
 




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


That's very basic question. You should read some documentation at least for the basics. 
In order to feed this data to x264, you need to convert it to YUV420 format. For this, you may use swscale API coming along with ffmpeg. There are some others as well.

Good luck.

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20130326/b6fe80cc/attachment.html>


More information about the x264-devel mailing list