avdevice_list_input_sources works.
Thank you!
сб, 17 сент. 2016 г. в 1:33, Lukasz Marek :
> On 17.09.2016 00:08, Lukasz Marek wrote:
> > I guess input device private data is not initialized, try to add this
> > code right after formatContext->iformat=inputFormat, just
On 17.09.2016 00:08, Lukasz Marek wrote:
I guess input device private data is not initialized, try to add this
code right after formatContext->iformat=inputFormat, just replace s with
formatContext
if (s->iformat->priv_data_size > 0) {
s->priv_data =
On 16.09.2016 23:39, Timur Guseynov wrote:
Hi. I wrote the code for getting a list of input devices:
avdevice_register_all();
AVFormatContext*formatContext=avformat_alloc_context();
AVInputFormat*inputFormat=NULL;
while((inputFormat=av_input_video_device_next(inputFormat)))
{
Hi. I wrote the code for getting a list of input devices:
avdevice_register_all();
AVFormatContext *formatContext = avformat_alloc_context();
AVInputFormat *inputFormat = NULL;
while((inputFormat = av_input_video_device_next(inputFormat)))
{
formatContext->iformat =