Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- This describes a modification of NASA's Juno spacecraft video of it's Jupiter approach from Mid 2016.
- Video is here: https://www.youtube.com/edit?video_id=VpLcCaEMd50
- How the movie is made
- 1. download video file from
- https://www.youtube.com/watch?time_continue=21&v=XpsQimYhNkA
- 2. Extract frames, excluding intro and outro video. tiff = minimal loss
- ffmpeg -i JunoOrig.mp4 -ss 00:00:32.47 -to 00:02:00.29 juno%06d.tiff
- 2.5 imagine algorithm to blend images so planets have 'tails'
- imagine images in a sequence
- 1
- 2
- 3
- 4
- 5
- now imagine you want to blend the last 4 images with the current image
- 1
- 12
- 123
- 1234
- 2345
- 3456
- 4567
- 567
- 67
- 7
- before loop
- create x -- dim 1 so its slightly less bright
- do loop
- 1 - composite with x. save new image as x. copy x to 1x. darken x.
- 2 - composite with x. save new image as x. copy x to 2x. darken x.
- 3. run bash script to blend images together as in algorithm
- bash -x compit
- $!/usr/bin/env bash
- cp juno000001.tiff tmp.tiff
- convert -modulate 90,100,90 tmp.tiff tmp.tiff
- for i in `ls | egrep "^juno.*tiff"`; do
- echo $i
- composite -blend 100x100 $i tmp.tiff tmp.tiff
- cp tmp.tiff tmp$i
- convert -modulate 90 tmp.tiff tmp.tiff
- done
- 4. convert images to movie format
- ffmpeg -framerate 29.97 -i tmpjuno%06d.tiff -c:v libx264 -pix_fmt yuv420p out.mp4
- See Also:
- Emily Lakdawalla's https://twitter.com/elakdawalla - crucial for inspiration
- Alex Parker's https://twitter.com/Alex_Parker
- Planetary Society http://www.planetary.org/blogs/emily-lakdawalla/2016/07042245-juno-has-arrived.html
- NASA Juno mission https://www.nasa.gov/mission_pages/juno/main/
- user ConstNT http://stackoverflow.com/questions/8287759/extracting-frames-from-mp4-flv
- user slhck http://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg
- Feh https://feh.finalrewind.org/
- Ubuntu Linux http://www.ubuntu.org http://www.linux.org
- ffmpeg http://ffmpeg.org
- ffmpeg slideshow: https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
- ImageMagick http://www.imagemagick.org
- ImageMagick composite: http://www.imagemagick.org/Usage/compose/
Add Comment
Please, Sign In to add comment