# Video Production Howto
## Download
Download videos from Google Drive (Contact Brian Proffitt for location)
## Trim dead air
Trim the dead space from the beginning of the video. This can be done with your favorite video editing tool, or with `ffmpeg`. There is a script named `trim` available to do some of the work for you. See the *Automation* section below to download this utility.
Usage: `trim whatever.mp4 124` (Removes the initial 124 seconds of the video.)
Watch the video until the actual content starts, and then trim the empty time. For example, if the actual content starts at :09, then you'll `trim vide.mp4 9`
Overwrite the original with the trimmed version.
When you're done trimming all of the files in a particular directory, place a file in the directory named DONE to indicate that we can move to the next step.
## Title card
Each video must hav a title card added using the provided template, with the name of the talk on it.
A script is available which creates this title card. Again, see the *Automation* section below.
Usage: `./generate_title "TITLE" "AUTHOR"`
Eg: `./generate_title "Introduction to ponies" "Rich Bowen"`
## Putting it all together ...
A bumper containing sponsor logos must be put on the beginning of each video. The bumper, title card, and trimmed video can be merged together using `mlt-melt`:
`mlt-melt -profile atsc_1080p_2997 TITLECARD.png out=120 preroll.mp4 -mix 30 -mixer luma mlW1815.mp4 -mix 30 -mixer luma endcard.png out=240 -mix 30 -mixer luma -consumer avformat:mlW1815_final.mp4 v=libx264 preset=slow crf=18 a=copy pix_fmt=yuv420p strict=-2`
(With, of course, the various filenames swapped out.)
Note that the final file should have `_final` as part of the filename. Do not overwrite the original.
Since everything is included in this, you can run this for all of the files in your particular track by creating a shell script with the above line repeated for each of your videos.
## Automation Files
Files for automating all of this process are in https://svn.apache.org/repos/infra/apachecon/www.apachecon.com/ApacheCon_Video_Production_Workflow/
`svn checkout https://svn.apache.org/repos/infra/apachecon/www.apachecon.com/ApacheCon_Video_Production_Workflow/`
Some of these tools are written in Perl. You will need to install a couple of additional Perl modules to use them.
`sudo cpan install Text::Wrap`
`sudo cpan install Getopt::Long`
## Exceptions
* Multi-video talks
* Pre-recorded talks
* Keynotes
## Upload
Put the processed files back where you got the originals. Do not overwrite the original files.
## YouTube instructions
The Title of the video should be the title of the talk.
Each video should be in two playlists: "ApacheCon @Home 2021" and "ApacheCon @Home 2021: TRACK NAME"
The description of the video should be:
```
TITLE
SPEAKER(s)
A presentation from ApacheCon @Home 2021
https://apachecon.com/acah2021/
ABSTRACT
```
Add the following Tags:
apachecon,acah2021,apachecon@home,apachecon@home 2021
## Video processing software packages
### Fedora 34
You'll need to enable RPM Fusion repositories:
```shell
$ sudo dnf -y install https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-34.noarch.rpm install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-34.noarch.rpm
```
And then install the following packages:
```shell
$ sudo dnf -y install ffmpeg ImageMagick ladspa mlt mlt-freeworld
```