[x264-devel] How to Feed ARGB RAW input To x264 Encoder
chetan shawroop
shawroop_ymca123 at yahoo.co.in
Thu Mar 28 14:20:54 CET 2013
hi
I am trying to use sws_scale from ffmpeg as suggest by you for conversion from ARGB to YUV format .i download the ffmpeg-20130327-git-81e85bc-win32-dev.7z from ffmpeg
include the header file and lib "swscale.lib swresample.lib" but compilor unable to resolve the related function of swcale.lib . i am getting the following error
1>ffmpeg.obj : error LNK2019: unresolved external symbol "struct SwsContext * __cdecl sws_getContext(int,int,enum PixelFormat,int,int,enum PixelFormat,int,struct SwsFilter *,struct SwsFilter *,double const *)" (?sws_getContext@@YAPAUSwsContext@@HHW4PixelFormat@@HH0HPAUSwsFilter@@1PBN at Z) referenced in function _wmain
1>C:\Users\chetan\Desktop\New folder\ffmpeg\Debug\ffmpegtest.exe : fatal error LNK1120: 1 unresolved externals
Que.If there is another way to convert RGB to yuv Please suggest
regard's
chetan
--- On Tue, 26/3/13, Dolevo Jay <cmst at live.com> wrote:
From: Dolevo Jay <cmst at live.com>
Subject: Re: [x264-devel] How to Feed ARGB RAW input To x264 Encoder
To: "Mailing list for x264 developers" <x264-devel at videolan.org>
Date: Tuesday, 26 March, 2013, 9:13 PM
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.
-----Inline Attachment Follows-----
_______________________________________________
x264-devel mailing list
x264-devel at videolan.org
http://mailman.videolan.org/listinfo/x264-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/x264-devel/attachments/20130328/4e177b18/attachment.html>
More information about the x264-devel
mailing list