Skip to content

Commit

Permalink
create mp4 video
Browse files Browse the repository at this point in the history
  • Loading branch information
ufechner7 committed Sep 28, 2024
1 parent 66683f5 commit 22d3b05
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ video/*.gif
.venv
kps-image_tmp.so
src/model.jl
video/Tether_08b.mp4
6 changes: 5 additions & 1 deletion bin/export_gif
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,8 @@ if [[ $(basename $(pwd)) == "bin" ]]; then
fi
julia --project="./video" -e 'using Pkg; Pkg.update(); include("video/export_gif.jl")'
cd video
rm -rf *.png
rm -rf *.png
rm Tether.mp4
ffmpeg -i Tether.gif -movflags faststart -pix_fmt yuv420p -vf "scale=trunc(iw/2)*2:trunc(ih/2)*2" tmp.mp4
ffmpeg -i tmp.mp4 -r 20 -filter:v "setpts=0.5*PTS" Tether.mp4
rm tmp.mp4

0 comments on commit 22d3b05

Please sign in to comment.