How to create and upload a video to the youtube channel - gridapapps/GridapGeosciences.jl GitHub Wiki

Let me bring here some quick notes to assist in the creation and upload of videos to your Youtube channel

I will present here a possible workflow starting from any output of a transient FE problem that can be visualized in ParaView. I hope that you can easily adapt these instructions to other contexts.

ParaView: Export RAW video data (numbered sequence of PNGs)

  1. Go to File > Save Animation to open the Animation Settings Dialog.
  2. Important: YouTube on desktop machines uses a 16:9 aspect ratio player. To fit the YouTube player perfectly, change the resolution in the Animation Settings Dialog to one of the recommended resolution and aspect ratios.

ffmpeg: Process PNGs to encode a Youtube-ready MP4 video

  1. If you do not have ffmpeg, download the latest version. On Ubuntu 14.04, it is not available on the repository. There are several alternatives, but I have followed these instructions for version 3.3.3.
  2. Download the libx264 codec. Try either libavcodec-extra-53 or 54.
  3. Execute ffpmeg -encoders on the command line interface to show the list of available encoders. Check that libx264 is on the list. If not, something went wrong with either point 1. or 2.
  4. Encode the sequence of PNGs into a MP4 video. After reading:
ffmpeg -r 8 -f image2 -s 1920x1080 -i pic.%04d.png -vcodec libx264 -movflags faststart -tune stillimage -profile:v high -bf 2 -g 30 -coder 1 -crf 18 -pix_fmt yuv420p test.mkv

Youtube: Upload new video

  1. Make sure you have the necessary privileges to upload videos on the YouTube channel.
  2. Watch this Youtube Help video with the upload instructions.