# Creating a video from a stack of Images

**URL:** <https://discourse.julialang.org/t/creating-a-video-from-a-stack-of-images/646>\
**Category:** Signal and Image Processing\
**Created:** [November 30, 2016, 4:28am UTC](https://discourse.julialang.org/t/creating-a-video-from-a-stack-of-images/646 "2016-11-30T04:28:11Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![vchuravy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vchuravy/32/8_2.png) [@vchuravy](https://discourse.julialang.org/u/vchuravy)\
**Post date:** [December 6, 2016, 2:19am UTC](https://discourse.julialang.org/t/creating-a-video-from-a-stack-of-images/646/6 "2016-12-06T02:19:46Z")

</div>

Thank you all for the suggestions I solved my particular problem the following way

```julia
open(`ffmpeg -f rawvideo -pix_fmt gray -s:v 5120x5120 -r 70 -i pipe:0 test.mkv`, "w") do out
    for frame in video
        img = convert(Image{Gray{U8}}, frame)
        write(out, reinterpret(UInt8, data(img)))
    end
end

```

It is not terrible performant but it get’s the job done for now.

---

_[View the full topic](https://discourse.julialang.org/t/creating-a-video-from-a-stack-of-images/646)._
