Project

General

Profile

Video Release Process » History » Version 2

tnt, 01/15/2022 09:10 PM

1 1 tnt
h1. Video Release Process
2
3
Unless the presenter has an objection, talks are recorded and published afterward. This page details the current process.
4
5
Note that the process uses "Davinci Resolve":https://www.blackmagicdesign.com/products/davinciresolve/ for the editing. It's not OSS but this is what I'm used to and have already setup for other jobs, so this is what I use.
6
7
h2. Source material
8
9
The BBB instance raw stream dump can be downloaded just by looking up the link in the page source. Or simply using the script below and feeding it the meeting ID which is in the URL when viewing the raw stream dump through the BBB interface.
10
11
Once downloaded, ffmpeg is used to repackage the video streams in `mp4` container and transcode the audio from OPUS into FLAC to bring them into containers/formats that the linux version of resolve can load. (Note newer version of resolve should support MKV now, but that hasn't been tried. Sticking with the "tried and working" process for now).
12
13
<pre><code class="shell">
14
#!/bin/bash
15
set -e
16
17
ODC_SLUG="$1"
18
MEETING_ID="$2"
19
20
curl -o "tmp_webcams.webm"   "https://meeting4.franken.de/presentation/${MEETING_ID}/video/webcams.webm"
21
curl -o "tmp_deskshare.webm" "https://meeting4.franken.de/presentation/${MEETING_ID}/deskshare/deskshare.webm"
22
23
ffmpeg -i "tmp_webcams.webm"   -vn -c:a flac -sample_fmt s16 "${ODC_SLUG}-audio.flac"
24
ffmpeg -i "tmp_webcams.webm"   -an -c:v copy                 "${ODC_SLUG}-webcam-vp9.mp4"
25
ffmpeg -i "tmp_deskshare.webm" -an -c:v copy                 "${ODC_SLUG}-screen-vp9.mp4"
26
27
rm "tmp_webcams.webm" "tmp_deskshare.webm"
28
</code></pre>
29
30
31
h2. Edit
32
33 2 tnt
Just do a normal edit, trimming start / stop and anything that shouldn't be in there (like technical issues or whatever).
34
Some notes / guidelines :
35 1 tnt
36 2 tnt
37
* Project Settings
38
** 1280x720 24fps
39
** Davinci YRGB (not color managed) 
40
** Fairlight -14 LUFS target loudness 
41
* Intro:
42
** Use a Fusion composition (two examples attached), tweak as needed (font size, ...)
43
** About 10 second long
44
** Start speaker audio intro ~ 1-2 second in
45
** Transition to slide: Dip-To-Color-Dissolve, 1s, Ease In-Out
46
* Q&A:
47
** If there is no such slide, use a Fusion composition for video
48
** Cut out any long blanks
49
* Outro:
50
** Check there is a "thanks for watching" or similar
51
** Fade to black ~ 3 second
52
* Floating Head:
53
** Magic mask with expand and feather edge. Add alpha out on color page from the magic mask node.
54
** Add power window to control the crop
55
* Audio:
56
** FX: Dialogue processor filter with default for "Male VO"
57
** EQ: Lo cut at 100 Hz, Hi cut at 10 kHz
58
** Adjust audio level in Q/A section for the individual speaker
59
* Master Render
60
** Video: Grassvalley HQX 720p
61
** Audio: Linear PCM 16 bits
62 1 tnt
63
h2. Local encode
64
65
Once the master render is done, the file is transcoded into a few formats more suitable for online viewing using ffmpeg using the script below :
66
Theses are relatively low bitrates but perfectly fine for "slides" type of content with voice-over in 720p.
67
(Note the script is design to work on a machine with a NVidia card and driver to have hw acceleration of h264 and h265 encoding)
68
69
<pre><code class="shell">
70
#!/bin/bash
71
set -e
72
73
ODC_SLUG="$1"
74
ODC_RENDER_PATH="$2"
75
ODC_RENDER_MASTER="${ODC_RENDER_PATH}/osmodevcall-${ODC_SLUG}_master.mov"
76
77
ffmpeg \
78
	-hwaccel cuda -hwaccel_output_format cuda \
79
	-i ${ODC_RENDER} \
80
	-c:v h264_nvenc -b:v 1M -pix_fmt yuv420p \
81
	-c:a aac -b:a 96k \
82
	"${ODC_RENDER_PATH}/osmodevcall-${ODC_SLUG}_h264_420.mp4"
83
84
ffmpeg \
85
	-hwaccel cuda -hwaccel_output_format cuda \
86
	-i ${ODC_RENDER} \
87
	-c:v hevc_nvenc -b:v 512k -pix_fmt yuv420p \
88
	-c:a aac -b:a 96k \
89
	"${ODC_RENDER_PATH}/osmodevcall-${ODC_SLUG}_h265_420.mp4"
90
91
ffmpeg \
92
	-i ${ODC_RENDER} \
93
	-c:v libvpx-vp9 -b:v 400k \
94
	-c:a libopus -b:a 80k \
95
	"${ODC_RENDER_PATH}/osmodevcall-${ODC_SLUG}_vp9.webm"
96
</code></pre>
97
98
99
h2. VOC upload
100
101
The final step is to feed the master render to the VOC rendering pipeline so the talk can be published on https://media.ccc.de .
102
103
FIXME
Add picture from clipboard (Maximum size: 48.8 MB)