# Changing video speed smoothly

**URL:** https://discourse.processing.org/t/changing-video-speed-smoothly/5568
**Category:** Coding Questions
**Created:** [November 15, 2018, 7:14pm UTC](https://discourse.processing.org/t/changing-video-speed-smoothly/5568 "2018-11-15T19:14:31Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![trpnnr](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@trpnnr](https://discourse.processing.org/u/trpnnr)
#### Post date: [November 15, 2018, 7:14pm UTC](https://discourse.processing.org/t/changing-video-speed-smoothly/5568/1 "2018-11-15T19:14:31Z")

</div>

Hello, I am wondering if it may be possible to change the speed of a video file dynamically without the result having a choppy appearance - ie to speed up to or slow down smoothly to a specified rate.

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [November 15, 2018, 7:41pm UTC](https://discourse.processing.org/t/changing-video-speed-smoothly/5568/2 "2018-11-15T19:41:10Z")

</div>

Which video library? Simply put - unlikely. But try different codecs.

---

<div class="post-metadata">

### Author: ![trpnnr](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@trpnnr](https://discourse.processing.org/u/trpnnr)
#### Post date: [November 15, 2018, 8:29pm UTC](https://discourse.processing.org/t/changing-video-speed-smoothly/5568/3 "2018-11-15T20:29:49Z")

</div>

I’ve only been experimenting with mov files in the processing.video library

---

<div class="post-metadata">

### Author: ![neilcsmith](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/neilcsmith/32/144_2.png) [@neilcsmith](https://discourse.processing.org/u/neilcsmith)
#### Post date: [November 15, 2018, 9:14pm UTC](https://discourse.processing.org/t/changing-video-speed-smoothly/5568/4 "2018-11-15T21:14:45Z")

</div>

Mov is a container not a codec. Make sure to try with different codecs. Also, if you’re not already, try v2 beta of the video library.

However, I’m not sure you’ll have much joy. Working directly with GStreamer I’ve had the same problem. Also be careful how frequently you try and change speed. Are you setting it every frame when transitioning?

---

<div class="post-metadata">

### Author: ![trpnnr](https://avatars.discourse-cdn.com/v4/letter/t/bbe5ce/32.png) [@trpnnr](https://discourse.processing.org/u/trpnnr)
#### Post date: [November 15, 2018, 9:57pm UTC](https://discourse.processing.org/t/changing-video-speed-smoothly/5568/5 "2018-11-15T21:57:53Z")

</div>

I anticipated that resetting it that rapidly would be quite taxing so at the moment I only have it updating to a new speed every 30ms but without any kind of ramp, just a hard reset. i’m only working with files downloaded from youtube while I test things so I have limited control of codec (but video is relatively new territory for me as a musician so maybe there’s a simple converter?)
