Category : ffmpeg

My code is based on https://stackoverflow.com/a/32279430/5941827. I run FFmpeg with the following params: std::stringstream sstm; sstm << "ffmpeg -loglevel error -y -f rawvideo -vcodec rawvideo -s " << std::to_string(width) << "x" << std::to_string(height) // << " -pix_fmt rgb24 -framerate " << std::to_string(fps) << " -i – -c:v libx264 -preset " << getPreset(encodeSpeed) << // " ..

Read more

I am trying to figure out hardware decoding in ffmpeg in c ++. I get about the same errors on any api. Here is the initialization code: AVHWDeviceType devType = av_hwdevice_find_type_by_name(HW_DECODER_NAME); for (int i = 0;; i++) { const AVCodecHWConfig *config = avcodec_get_hw_config(av_codec, i); if (!config) { fprintf(stderr, "Decoder %s does not support device type ..

Read more

I’m making screen capture app using HBITMAP to get desktop image and ffmpeg to make a video file and put all the frames there. But here is the problem, while capturing program takes up all the RAM and because of that operating system is frozen. So is there any way to limit memory usage for ..

Read more

I link avcodec.lib, …. avxxx.lib (ffmpeg library) to my vs2008 project, but show the error message box "procedure entry point could not be located in the dynamic link library" while double click it. I check my program with DLL dependencies tool, it shows the program try to find DXVA2CreateDirect3DDeviceManager9 in avcodec.dll. It is impossible to ..

Read more