Circle ci fails rspec tests that using ffmpeg library

Hi, I’m getting strange error like Could not parse output from FFProbe: on tests which use ffmpeg. Here is stacktrace of error:

  1. API::V1::OwnMovies Update movie when movie params are invalid should respond with status
    Failure/Error: time: lambda { |instance| (FFMPEG::Movie.new(instance.queued_for_write[:original].path).duration / 2).to_i }

    RuntimeError:
    Could not parse output from FFProbe:

    ./app/models/video.rb:19:in `new’

    ./app/models/video.rb:19:in `block in class:Video

    ./app/controllers/api/v1/own_movies.rb:74:in `block (3 levels) in class:OwnMovies

    ./spec/controllers/api/v1/own_movies_spec.rb:61:in `block (4 levels) in <top (required)>’

    ./spec/support/matchers/controllers.rb:7:in `call’

    ./spec/support/matchers/controllers.rb:7:in `block (2 levels) in <top (required)>’

    ./spec/controllers/api/v1/own_movies_spec.rb:76:in `block (4 levels) in <top (required)>’

    ------------------

    — Caused by: —

    JSON::ParserError:

    JSON::ParserError

    ./app/models/video.rb:19:in `new’