Re: [Libav-user] Cheking for an alpha channel / using AVPixFmtDescriptor

2019-04-17 Thread Carl Eugen Hoyos
2019-04-17 11:37 GMT+02:00, Simone Donadini : > When opening a media i need to check if the pixel format holds an alpha > channel. > I can check for the alpha flag in the pixel format description, like this: > const AVPixFmtDescriptor *pixDesc = av_pix_fmt_desc_get(pix_format); > bool has_alpha =

Re: [Libav-user] list all available formats of webcam

2019-04-17 Thread Philippe Gorley
On 2019-04-17 9:03 a.m., Hristo Ivanov wrote: Hi. The implementation of 'avdevice_capabilities_create'(https://ffmpeg.org/doxygen/trunk/avdevice_8c_source.html#l00143) starts with the following lines: 1 int ret; 2 av_assert0(s && caps); 3 av_assert0(s->iformat || s->oformat); 4 if

Re: [Libav-user] list all available formats of webcam

2019-04-17 Thread Hans, Sven
Hi Hristo, thanks again for your support. I tried with avformat_open_input(_pFormatCtxInCam, szUrl, m_pInFrmt, nullptr) which did not solve the issue. Same error as before. Yes, m_pFormatCtxInCam->iformat->create_device_capabilities is nullptr in my case. Same is the case for

Re: [Libav-user] list all available formats of webcam

2019-04-17 Thread Hristo Ivanov
Hi. The implementation of 'avdevice_capabilities_create'( https://ffmpeg.org/doxygen/trunk/avdevice_8c_source.html#l00143) starts with the following lines: 1int ret; 2av_assert0(s && caps); 3av_assert0(s->iformat || s->oformat); 4if ((s->oformat &&

Re: [Libav-user] list all available formats of webcam

2019-04-17 Thread Hans, Sven
Hi, thank you for your support. Maybe you can help me a bit more: I just tried the API, but without success. The error is -40 (“function not implemented”) from the function avdevice_capabilities_create. I use the libs/dlls released with ffmpeg 4.1.0 on Windows 10. My project is build with

Re: [Libav-user] Can't decode more than 5 video streams using libav+hwaccel.

2019-04-17 Thread Ахмед Анам via Libav-user
>  Are the video streams 4K? My guest is you are running out of memory on the >GPU. No, the streams have HD resolution. I run my programm with debug log level and here is output: [h264 @ 013f85b22440] Failed setup for format cuda: hwaccel initialisation returned error [h264 @

Re: [Libav-user] list all available formats of webcam

2019-04-17 Thread Hristo Ivanov
Hi. Sorry, I think I got it wrong in my previous reply: > I think there is no way to retrieve the information using the FFMPEG API. There is this: https://ffmpeg.org/doxygen/trunk/structAVDeviceCapabilitiesQuery.html Quoting the docs: > Following API allows user to probe device capabilities

[Libav-user] Cheking for an alpha channel / using AVPixFmtDescriptor

2019-04-17 Thread Simone Donadini
Hi,When opening a media i need to check if the pixel format holds an alpha channel.I can check for the alpha flag in the pixel format description, like this:const AVPixFmtDescriptor *pixDesc = av_pix_fmt_desc_get(pix_format);bool has_alpha = pixDesc->flags & AV_PIX_FMT_FLAG_ALPHA;But i noticed

Re: [Libav-user] Can't decode more than 5 video streams using libav+hwaccel.

2019-04-17 Thread Hristo Ivanov
Hi. > Is it because of NVIDIA GPUs have concurrent session limitation? There is a session limitation for encoding for sure, but I think there is no such thing for decoding: https://developer.nvidia.com/video-encode-decode-gpu-support-matrix > By the way, I don't understand where these messages

Re: [Libav-user] Using ffmpeg for a software

2019-04-17 Thread Hristo Ivanov
Hi. I think this is what you need: https://www.ffmpeg.org/legal.html Regards. ___ Libav-user mailing list Libav-user@ffmpeg.org https://ffmpeg.org/mailman/listinfo/libav-user To unsubscribe, visit link above, or email libav-user-requ...@ffmpeg.org

[Libav-user] Using ffmpeg for a software

2019-04-17 Thread Maftei Ervin via Libav-user
Hello, I wish to make a kind of converter software for audio files and starting to sell it, and i was wondering if it's actually legal to using ffmpeg for this. I don't want to edit any piece of code from ffmpeg, and just to use its features. Can anyone help me with some more details? Regards, 

[Libav-user] Can't decode more than 5 video streams using libav+hwaccel.

2019-04-17 Thread Ахмед Анам via Libav-user
Hello everybody! I configured ffmpeg to use hardware accelaration, built it and then wrote an app that decodes h264 streams. Maximum number of streams (cameras) that can be decoded is equal to 5. When I try to add one more camera I get errors: [h264 @ 0181858aa3c0] Error creating a NVDEC

Re: [Libav-user] list all available formats of webcam

2019-04-17 Thread Hans, Sven
Hi, probably I have to implement this functionality directly with Dshow in Windows and v4l2 in Linux. So the output in the console comes from the backend and not from ffmpeg? Mit freundlichen Grüßen / Best regards Sven Hans DERMALOG Identification Systems GmbH Systems Engineer Mittelweg 120