Quick steps to install FFmpeg on Windows 10
- Execution of video from IP camera via Real Time Streaming Protocol (RTSP) outputs pink screen.
- Received error when creating a VideoWriter.
Error:
MFX: Can't initialize session
[ERROR:0] global C:\jenkins\workspace\OpenCV\OpenVINO\2021.4\build\windows\opencv\modules\videoio\src\cap.cpp (589) cv::VideoWriter::open VIDEOIO(CV_IMAGES): raised OpenCV exception:
OpenCV(4.5.3-openvino) C:\jenkins\workspace\OpenCV\OpenVINO\2021.4\build\windows\opencv\modules\videoio\src\cap_images.cpp:253: error: (-5:Bad argument) CAP_IMAGES: can't find
starting number (in the name of file): Videos\driveway.avi in function 'cv::icvExtractPattern'
Steps to install FFmpeg on Windows® 10:
- Go to the directory: "<INSTALL_DIR>\openvino\opencv"
- Right-click on ffmpeg-download.ps1 script in Windows PowerShell to download the opencv_ffmpeg_64.dll file.
- Reboot the PC when the installation is completed.