Re: [Libav-user] Querying v4l2 devices

2016-09-17 Thread Timur Guseynov
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

Re: [Libav-user] Querying v4l2 devices

2016-09-16 Thread 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 replace s with formatContext if (s->iformat->priv_data_size > 0) { s->priv_data =

Re: [Libav-user] Querying v4l2 devices

2016-09-16 Thread Lukasz Marek
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))) {

[Libav-user] Querying v4l2 devices

2016-09-16 Thread Timur Guseynov
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 =