dbright

Juno Jupiter movie modification

Jul 5th, 2016
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. This describes a modification of NASA's Juno spacecraft video of it's Jupiter approach from Mid 2016.
  2.  
  3. Video is here: https://www.youtube.com/edit?video_id=VpLcCaEMd50
  4.  
  5. How the movie is made
  6.  
  7. 1. download video file from
  8.  
  9. https://www.youtube.com/watch?time_continue=21&v=XpsQimYhNkA
  10.  
  11. 2. Extract frames, excluding intro and outro video. tiff = minimal loss
  12.  
  13. ffmpeg -i JunoOrig.mp4 -ss 00:00:32.47 -to 00:02:00.29 juno%06d.tiff
  14.  
  15. 2.5 imagine algorithm to blend images so planets have 'tails'
  16.  
  17. imagine images in a sequence
  18.  
  19. 1
  20. 2
  21. 3
  22. 4
  23. 5
  24.  
  25. now imagine you want to blend the last 4 images with the current image
  26.  
  27. 1
  28. 12
  29. 123
  30. 1234
  31. 2345
  32. 3456
  33. 4567
  34. 567
  35. 67
  36. 7
  37. before loop
  38.  
  39. create x -- dim 1 so its slightly less bright
  40.  
  41. do loop
  42. 1 - composite with x. save new image as x. copy x to 1x. darken x.
  43. 2 - composite with x. save new image as x. copy x to 2x. darken x.
  44.  
  45.  
  46. 3. run bash script to blend images together as in algorithm
  47.  
  48. bash -x compit
  49.  
  50. $!/usr/bin/env bash
  51.  
  52. cp juno000001.tiff tmp.tiff
  53. convert -modulate 90,100,90 tmp.tiff tmp.tiff
  54.  
  55. for i in `ls | egrep "^juno.*tiff"`; do
  56. echo $i
  57. composite -blend 100x100 $i tmp.tiff tmp.tiff
  58. cp tmp.tiff tmp$i
  59. convert -modulate 90 tmp.tiff tmp.tiff
  60. done
  61.  
  62. 4. convert images to movie format
  63.  
  64. ffmpeg -framerate 29.97 -i tmpjuno%06d.tiff -c:v libx264 -pix_fmt yuv420p out.mp4
  65.  
  66.  
  67. See Also:
  68.  
  69. Emily Lakdawalla's https://twitter.com/elakdawalla - crucial for inspiration
  70. Alex Parker's https://twitter.com/Alex_Parker
  71. Planetary Society http://www.planetary.org/blogs/emily-lakdawalla/2016/07042245-juno-has-arrived.html
  72. NASA Juno mission https://www.nasa.gov/mission_pages/juno/main/
  73.  
  74. user ConstNT http://stackoverflow.com/questions/8287759/extracting-frames-from-mp4-flv
  75. user slhck http://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg
  76. Feh https://feh.finalrewind.org/
  77. Ubuntu Linux http://www.ubuntu.org http://www.linux.org
  78. ffmpeg http://ffmpeg.org
  79. ffmpeg slideshow: https://trac.ffmpeg.org/wiki/Create%20a%20video%20slideshow%20from%20images
  80. ImageMagick http://www.imagemagick.org
  81. ImageMagick composite: http://www.imagemagick.org/Usage/compose/
Add Comment
Please, Sign In to add comment