Skip to content
This repository has been archived by the owner on Jul 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #423 from JuliaPlots/sd/fix_gif
Browse files Browse the repository at this point in the history
remove compression from gif
  • Loading branch information
asinghvi17 authored May 2, 2020
2 parents 4e6bb70 + b044a82 commit 5448eac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/display.jl
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ function save(path::String, io::VideoStream;
palette_path = dirname(io.path)
pname = joinpath(palette_path, "palette.bmp")
isfile(pname) && rm(pname, force = true)
ffmpeg_exe(`-loglevel quiet -i $(io.path) -crf $compression -vf "$filters,palettegen" -y $pname`)
ffmpeg_exe(`-loglevel quiet -i $(io.path) -crf $compression -i $pname -lavfi "$filters [x]; [x][1:v] paletteuse" -y $path`)
ffmpeg_exe(`-loglevel quiet -i $(io.path) -vf "$filters,palettegen" -y $pname`)
ffmpeg_exe(`-loglevel quiet -i $(io.path) -i $pname -lavfi "$filters [x]; [x][1:v] paletteuse" -y $path`)
rm(pname, force = true)
else
rm(io.path)
Expand Down

0 comments on commit 5448eac

Please sign in to comment.