Skip to content

Latest commit

 

History

History
54 lines (34 loc) · 2.31 KB

INTERNAL.md

File metadata and controls

54 lines (34 loc) · 2.31 KB

Exabyte.io Internal Documentation

Uploading/Updating Tutorial Videos

Follow the below instructions to upload/update a tutorial video:

  1. Create a metadata file similar to the one in here.

    Note: For each step, the time elapsed between startTime and endTime should approximately be the duration of the spoken sentence. I.e. this is almost impossible to get right on the first try and will need further refinement.

  2. Make sure to remove youTubeId. This field is automatically added by the video manager script once the video is uploaded.

  3. In metadata file, descriptionLinks is a list of links which are added to video description. See description template for more details.

  4. Run the below command to add voice to the video:

    python video-manager.py voiceover --file PATH_TO_ORIGINAL_VIDEO --metadata PATH_TO_METADATA --audio PATH_TO_SAVE_AUDIO --output PATH_TO_SAVE_NEW_VIDEO

    whereby PATH_TO_SAVE_AUDIO and PATH_TO_SAVE_NEW_VIDEO should have the file extension .mp3 and .mp4, respectively.

  5. Retry step 4 with adjusted youTubeCaptions data until the optimal outcome is achieved.

  6. Before uploading, make sure that the timings of the youTubeCaptions sentences in the metadata file match exactly the duration of their pronunciations in the voiceover. This ensures that the subtitles will be synced correctly to the voice in the final online video version.

  7. Run the below command to upload/update the video once metadata is ready:

    python video-manager.py upload --file PATH_TO_VIDEO --metadata PATH_TO_METADATA
  8. The video privacy status is set to unlisted by default. Pass privacy status as below to override it:

    python video-manager.py update --file PATH_TO_VIDEO --metadata PATH_TO_METADATA --privacyStatus public
  9. Commit the new changes to metadata file such as youTubeId and push.

Translating to Other Languages

Use translate.py script to generate translated docs using Google API:

python translate.py -t 100

See script source for options. Use the below regex to fix image links in WebStorm once translation is done:

/ images / (\w+) /    <- contains a space as the final character
/images/$1/