# OpenCV VideoWriter\_fourcc error

**URL:** <https://discourse.julialang.org/t/opencv-videowriter-fourcc-error/77710>\
**Category:** General Usage\
**Tags:** video\
**Created:** [March 10, 2022, 6:22pm UTC](https://discourse.julialang.org/t/opencv-videowriter-fourcc-error/77710 "2022-03-10T18:22:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cirobr](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cirobr/32/219994_2.png) [@cirobr](https://discourse.julialang.org/u/cirobr)\
**Post date:** [March 10, 2022, 6:22pm UTC](https://discourse.julialang.org/t/opencv-videowriter-fourcc-error/77710/1 "2022-03-10T18:22:43Z")

</div>

Hello,

Running the below instructions as preparation for writing a sequence of images to a video file with OpenCV as framework:

```julia
using OpenCV; const cv = OpenCV
fourcc = cv.VideoWriter_fourcc(*'XVID') 

```

The instruction “fourcc” when compiled gives the following error:

```julia
julia> fourcc = cv.VideoWriter_fourcc(*'XVID') 
ERROR: syntax: "*" is not a unary operator
Stacktrace:
 [1] top-level scope
   @ none:1

```

Any help/direction is appreciated. Thanks.
