# RTSP ffmpeg set flags

**URL:** <https://forum.opencv.org/t/rtsp-ffmpeg-set-flags/14382>\
**Category:** C++\
**Created:** [August 29, 2023, 11:27am UTC](https://forum.opencv.org/t/rtsp-ffmpeg-set-flags/14382 "2023-08-29T11:27:35Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cudawarped](https://avatars.discourse-cdn.com/v4/letter/c/9dc877/32.png) [@cudawarped](https://forum.opencv.org/u/cudawarped)\
**Post date:** [August 31, 2023, 11:50am UTC](https://forum.opencv.org/t/rtsp-ffmpeg-set-flags/14382/4 "2023-08-31T11:50:52Z")

</div>

> [@serkan](#):
>
> I think it compiled from binary opencv\_videoio\_ffmpeg\_64.dll. i changed cmakelist.txt of videoio add src cap\_ffmpeg.cpp caused a lot of lib error.

That’s correct which is why my comment above specified not on windows.

In windows you can try building against FFMpeg, see

> [@Error: 'Your platform doesn't suppport hardware accelerated AV1 decoding.' when i use 'cv2.VideoCapture'](https://forum.opencv.org/t/error-your-platform-doesnt-suppport-hardware-accelerated-av1-decoding-when-i-use-cv2-videocapture/9605/14):
>
> To build against FFmpeg and get AV1 decoding you need to: Build or dowload and extract a build of FFMpeg to \<FFMPEG\_BUILD\>. I would suggest simply downloading from [here](https://github.com/BtbN/FFmpeg-Builds/releases) and depending on your license requirements you will want to download either [ffmpeg-n5.0.1-7-g7389a49fd3-win64-gpl-shared-5.0.zip](https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2022-06-30-12-32/ffmpeg-n5.0.1-7-g7389a49fd3-win64-gpl-shared-5.0.zip) or [ffmpeg-n5.0.1-7-g7389a49fd3-win64-lgpl-shared-5.0.zip](https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2022-06-30-12-32/ffmpeg-n5.0.1-7-g7389a49fd3-win64-lgpl-shared-5.0.zip) Create a cmake directory \<FFMPEG\_BUILD\>/cmake. Save the cmake script (ffmpeg-config.cmake) mentioned in the below post to that directory…

---

_[View the full topic](https://forum.opencv.org/t/rtsp-ffmpeg-set-flags/14382)._
