http://irongeek.com skydog & irongeek

38
ttp://Irongeek.com http://Skydogcon.c VIDEO TALES AND FAILS: RECORDING YOUR CONFERENCE AND SHARING IT WITH THE COMMUNITY SkyDog & IronGeek

Upload: marilyn-foster

Post on 25-Dec-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

VIDEO TALES AND FAILS: RECORDING YOUR CONFERENCE AND SHARING IT

WITH THE COMMUNITYSkyDog & IronGeek

Page 2: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Who are we?

I run Irongeek.com I have an interest in InfoSec

education I don’t know everything -

I’m just a geek with time on my hands

Sr. Information Security Engineer at a Fortune 1000

Co-Founder of Derbyconhttp://www.derbycon.com

Runs Skydogcon, Outerz0ne and is a volunteer/goon at Defcon, Shmoocon and many other cons

Got a real purdy mouth

Page 3: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Why we may know what we are talking about (take with a grain of salt and a shot of tequila)

Together Trevor and Adrian have had experience doing video at the following conferences:

• Skydogcon• Derbycon• Hack3rcon• Outerz0ne• Phreaknic• BSides Las Vegas

• BSides Cleveland• Notacon• Louisville Infosec• Shmoocon Firesides• …and others we

forget.

Page 4: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Why we got into recording hacker cons

We love sharing content We run our own Great advertisement for future cons Professional houses are expensive Faster turn around

Page 5: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

HISTORY OF OUR RIGS

Page 6: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Single Camera

Simple Sucks for slides MiniDV used to suck for

getting off the tape, but at least you could do direct capture on them

Page 7: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Scan converter, slides and a video switch.

Presenter’s Laptop

VGA to S-Video

USB Video Capture

Live Capture

Capture Laptop

Composite & S-Video Switch

Page 8: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Enter AVISynth

Composite Picture-In-Picture in post Avisynth

http://avisynth.org AVISynth Virtual File System

http://www.turtlewar.org/avfs/ BeHappy Plugins

http://behappy.codeplex.com/

Page 9: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Setups

Presenter’s Laptop

VGA to S-Video

USB Video Capture

Live Capture

Slide Capture Laptop

Presenter’s Laptop

VGA to Composite

V-Mate

Skydog’s Old Rig

V-Mate

Live Capture

Irongeek’s Old Rig

Page 10: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Video Connectors In Descending Levels of Quality

HDMI or DVI Both are digital, and electrically

similar. SDI is also digital, but more for pro gear.

VGA and Component Can look almost as good as HDMI

S-Video Better than composite

Composite Looks like crap

Images from Wikipedia by Evan-Amos

Page 11: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Audio

Martin does most of this at Derbycon, but here are a few recommendations

Make sure you have testing time Small cons may work with ambient audio, but for large ones

it sucks Avoid long cable runs Don’t have one cable on top of another, it may induce a

current Have devices plugged into same wall outlet (up to a limit) Have converter cables for XLR to 3.5mm stereo Audacity can work wonders

Page 12: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

So, how did I make these?

Page 14: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Windows Media Encoder x64 Edition

Google for it. It’s been replaced on Microsoft’s site with Expression Encoder.

Page 15: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

AVIDemux

http://fixounet.free.fr/avidemux/

Page 16: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

VirtualDub

http://www.virtualdub.org/

Page 17: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Audacity http://audacity.sourceforge.net/

Also download LAME and FFMpeg while at the site

Page 18: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Clock, Clock, Clock-in on Heaven’s Door

Frames since Midnight Makes timing videos easier Still used to check sync

Page 19: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

FFMPEG(Mostly for OSB method)

Recombine Audioffmpeg -i input.flv -c copy -copyts output.mp4

Recombine & Resample Audioffmpeg -i input.flv -ar 22050 output.mp4

Loop through the aboveFOR /F "usebackq delims==" %i IN (`dir *.flv /b`) DO ffmpeg -i %i -c copy -copyts fixed\%~ni.mp4

FOR /F "usebackq delims==" %i IN (`dir *.flv /b`) DO ffmpeg -i %i -ar 22050 fixed\%~ni.mp4

Page 20: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

FFMPEG for putting vids together

Christopher Hawkins gave me something like this:ffmpeg -loop 1 -i sponsors.png -i slides.mp4 -i 00000.MTS -i corner.mp4 -filter_complex "amix=inputs=2; [0:v] fade=t=out:st=1:d=2 [sponfad]; [1:v] fade=t=in:d=3, pad=iw+480 [fadpadslide]; [2:v] scale=480:360, fade=t=in:d=2 [fadspeak]; [3:v] fade=t=in:d=2 [fadcorn]; [fadpadslide][fadspeak] overlay=x=main_w-overlay_w [tmp1]; [tmp1][fadcorn] overlay=x=main_w-overlay_w:y=main_h-overlay_h [tmp2]; [tmp2][sponfad] overlay=x=main_w/2-overlay_w/2:y=main_h/2-overlay_h/2" -c:v libx264 -crf 20 -preset veryslow -shortest test.mkv

Page 21: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Codecs and Filters(Install order and version to use is confusing as hell)

Ffdshowhttp://ffdshow-tryout.sourceforge.net/ http://x264.nl/

Video for Windows x264http://sourceforge.net/projects/x264vfw/

XVIDhttp://www.xvid.org/Downloads.15.0.html

Haali Media Splitter (for working with MP4s)http://haali.su/mkv/

DSFMgr (remove filters)http://www.softella.com/dsfm/index.en.htm

Lamehttp://lame.buanzo.com.ar/

K-lite should be avoided

Page 22: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Stop! Demo Time!SetMemoryMax(256)#SetMTMode(3)a = DirectShowSource("00000.MTS", fps=25, convertfps=true)b = DirectShowSource("00001.MTS", fps=25, convertfps=true)rawslides=DirectShowSource("slides.mp4", fps=15, convertfps=true, audio=false)splicedvideo=AlignedSplice(a,b).ConvertToMono#splicedvideo=a.ConvertToMono#cleandub = DirectShowSource("clean.wav")#Just a for a logo for the corner, I use it to give info about the presentation.corner = ImageSource("corner.png",pixel_type="RGB24").LanczosResize(480,360).Subtitle("\nTitle\nSpeaker",size=30,align=8,lsp=10,halo_color=$00aa00,text_color=$aaffaa)sponsors = ImageReader("sponsors.png",pixel_type="RGB32").LanczosResize(1440,720)

#SetMTMode(3)#The line tells the script what to use for the large section of the video where I put the slide show/what was being projectedslides = rawslides.ConvertToRGB24().ConvertFPS(25).Trim(0,0,false).LanczosResize(960,720)livevid = splicedvideo.ConvertToRGB24().Trim(0,0,false).crop(250,0,1080,1080).LanczosResize(480,360)

#Now to add all the file togetherlivepluscorner = StackVertical(livevid,corner)StackHorizontal(slides,livepluscorner).AudioDub(livevid).insertsign(sponsors, 1, 150)

#SetMTMode(6)#insertsign(sponsors, 1, 150) #I think I got this function from TheFluff here: http://forum.aegisub.org/viewtopic.php?t=363function insertsign(clip mainclip, clip overlayclip, int startframe, int "endframe") {

endframe = default(endframe,startframe+overlayclip.framecount()-1)endframe = (endframe == 0) ? startframe+overlayclip.framecount()-1 : endframeendframe = (endframe >= mainclip.framecount()-1) ? mainclip.framecount()-1 : endframe begin = (startframe == 1) ? mainclip.trim(0,-1) : mainclip.trim(0,startframe-1)middle = mainclip.trim(startframe,endframe) end = (endframe == mainclip.framecount()-1) ? blankclip(mainclip,length=0) : mainclip.trim(endframe+1,0) middleoverlay = Overlay(middle, overlayclip, mask=overlayclip.showalpha())

final = (startframe == 0) ? middleoverlay ++ end : begin ++ middleoverlay ++ endreturn final

}

Page 23: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

How to get them out fast!

Recording the conference is the middle part Prep

Art needs to be ready before the con Skelton web pages and bios Pre-generated directories Files with titles and file names

Training Volunteers Get reliable video staff Handout and video training People will flake

Page 24: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

New System!

Live picture in picture rendering! Open Broadcaster Software (OBS)

http://obsproject.com Faster and gives options to stream! HDMI Capture on USB 2.0 devices is a few seconds

behind so we had to add a delay

Page 25: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Derbycon 3.0 Hardware Canon Consumer Camcorder (VIXIA $300 to $400) Elgato Game Capture HD ($157.99)

http://www.bhphotovideo.com/c/product/879363-REG/Elgato_Systems_10025010_Game_Capture_HD_High.html

2X2 SVGA VGA MATRIX Switcher ($28.05)http://www.monoprice.com/products/product.asp?p_id=4083

STC-250N for composite out of cameras ($14.95)http://www.bhphotovideo.com/c/product/184982-REG/Canon_3067A002_STV_250N_Mini_A_V_Angled.html

be careful what you get! VGA to HDMI Scaler $31.79 Video Capture Dongle S-Video/Composite

http://www.monoprice.com/products/product.asp?p_id=5616

Tripods

Page 26: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Problems

VGA to HDMI scaler failed to convert a lot of laptops’ signals EDID of projector vs. scaler may have been the issue 4x3 matted with black bars, which got compressed again

because we expected to skew something 16x9 to 4x3 Long cable runs and lack of testing time may have caused

the audio/ground noise we got If the scaler failed with a given laptop, we went full screen

with the camera, but composite capture sucked! Fixing in post with raw capture would have been easier, but

getting the whole con up would have taken longer

Page 27: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Hardware Changes for Hack3rcon

AverMedia Live Gamer Portable ($157.99)http://www.bhphotovideo.com/c/product/983193-REG/avermedia_c875_live_gamer_portable.html

LKV351PRO VGA to HDMI Scaler ($51.99)(Having a problem getting the above scaler to work with AverMedia LGP)

Now I can ditch the composite capture device, take HDMI out of the camera into the Elgato and use LGP for capturing the presenter’s laptop

Evan at Skydogcon is using: Gefen EXT-VGAAUD-2-HDMIS VGA to HDMI Scaler ($187.76) Blackmagic Design UltraStudio Mini Recorder Capture

Device ($137.75)

Page 28: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Problems & Other Options

Elgato was slower to start, but lag was a more or less fixed amount

AverMedia LGP varied lag as time went on in OBSOther option to record speaker? Logitech HD Webcam C615 1080P ($36.99)

Fast Small (just one device) Use sound card in laptop if you do not want ambient Very compressed “1080p” Limited zoom options

Page 29: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

New Live Capture Setup

Presenter’s Laptop

VGA to HDMI Scaler

HDMI USB Video

Capture

Slide Capture Laptop

Irongeek’s OBS Rig

USB Video Capture

VGA Switch

Page 30: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

OBS Demo

Page 31: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Hardware Extras

MiniDisplay to VGA/HDMI adapters So many forget their own

HDMI to VGA adaptershttp://www.meritline.com/hdmi-to-vga-adapter-audio-vga-to-hdmi-converter---p-113124.aspx

USB Active Cableshttp://www.monoprice.com/products/product.asp?p_id=8489

Cables, Cables, Cables (Monoprice)

Page 32: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Scott’s Rig?

Epiphan all in one boxhttp://www.epiphan.com/products/recording/lecture-recorder-x2/

Expensive, $1600+ Hopefully as more “Game”

recorder systems come outthis will be cheaper to do

Skiboy.org: Failing since 1995.ONE Little Scooty Moulton shirt available at the HFC auction.

Page 33: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Hosting the videos

Youtube Get a director account

Archive.org Borrow university bandwidth

Others Blip TV Vimeo

Page 34: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Tips to speakers. How not to drive the recording guy crazy

Moving around a lot (We have to live with it) Bring your dongles Have you hooked your laptop to a projector before? Rock the MIC (or at least speak into it) Repeat audience questions Please don’t show/say stuff that needs to be

redacted Client info Doc on desktop

Page 35: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

Future plans

Hacker con recording gear loaner program We want to make a traveling box that we can send

from con to con to record their talks Adrian is planning to donate some old gear just to

get it out of the house

Page 36: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

More Useful Sites

AVISynth Wikihttp://avisynth.org/mediawiki/

Video Help (great for tools and forums)http://www.videohelp.com/

Doom 9 Forumshttp://forum.doom9.org/

Nice overview of AV connectorshttp://www.ramelectronics.net/howto-av.aspx

Page 37: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

EventsDerbycon

Sept 24th-28th, 2014http://www.derbycon.com

Othershttp://www.louisvilleinfosec.com

http://skydogcon.com http://hack3rcon.org

http://outerz0ne.org

http://phreaknic.info http://notacon.org

Ph

oto

Cre

dits

to

KC

(d

eva

uto

)De

rbyco

n A

rt Cre

dits to

Dig

iP

Page 38: Http://Irongeek.com  SkyDog & IronGeek

http://Irongeek.com http://Skydogcon.com

QUESTIONS?42

Twitter: @Irongeek_ADC