# How to build opencv with latest version of Gstreamer 1.18

**URL:** <https://forum.opencv.org/t/how-to-build-opencv-with-latest-version-of-gstreamer-1-18/3662>\
**Category:** Python\
**Tags:** gstreamer, build\
**Created:** [June 3, 2021, 4:40pm UTC](https://forum.opencv.org/t/how-to-build-opencv-with-latest-version-of-gstreamer-1-18/3662 "2021-06-03T16:40:57Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![crackwitz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.opencv.org/crackwitz/32/14_2.png) [@crackwitz](https://forum.opencv.org/u/crackwitz)\
**Post date:** [June 3, 2021, 10:24pm UTC](https://forum.opencv.org/t/how-to-build-opencv-with-latest-version-of-gstreamer-1-18/3662/8 "2021-06-03T22:24:41Z")

</div>

that isn’t gstreamer, that’s ffmpeg

you need to build ffmpeg differently. see here, same error that says “recompile with -fPIC”, and same resolution: [Error: ‘AVStream’ {aka ‘struct AVStream’} has no member named ‘codec’ - #8 by crackwitz](https://forum.opencv.org/t/error-avstream-aka-struct-avstream-has-no-member-named-codec/3506/8)

---

_[View the full topic](https://forum.opencv.org/t/how-to-build-opencv-with-latest-version-of-gstreamer-1-18/3662)._
