phukd - Irongeek

Download Report

Transcript phukd - Irongeek

SkyDog & IronGeek
http://Irongeek.com
http://Skydogcon.com





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 Derbycon
http://www.derbycon.com
http://Irongeek.com


Runs Skydogcon,
Outerz0ne and is a
volunteer/goon at Defcon,
Shmoocon and many other
cons
Got a real purdy mouth
http://Skydogcon.com
Together Trevor and Adrian have had experience doing
video at the following conferences:
•
•
•
•
•
•
Skydogcon
Derbycon
Hack3rcon
Outerz0ne
Phreaknic
BSides Las Vegas
http://Irongeek.com
•
•
•
•
•
BSides Cleveland
Notacon
Louisville Infosec
Shmoocon Firesides
…and others we
forget.
http://Skydogcon.com





We love sharing content
We run our own
Great advertisement for future cons
Professional houses are expensive
Faster turn around
http://Irongeek.com
http://Skydogcon.com
http://Irongeek.com
http://Skydogcon.com



Simple
Sucks for slides
MiniDV used to suck for
getting off the tape, but
at least you could do
direct capture on them
http://Irongeek.com
http://Skydogcon.com
Presenter’s Laptop
Live Capture
VGA to
S-Video
USB Video
Capture
Composite &
S-Video Switch
Capture Laptop
http://Irongeek.com
http://Skydogcon.com


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/
http://Irongeek.com
http://Skydogcon.com
Irongeek’s Old Rig
Skydog’s Old Rig
Live Capture
Presenter’s Laptop
Presenter’s Laptop
Slide Capture Laptop
VGA to
S-Video
Live Capture
VGA to
Composite
USB Video
Capture
V-Mate
http://Irongeek.com
V-Mate
http://Skydogcon.com

HDMI or DVI


VGA and Component


Can look almost as good as HDMI
S-Video


Both are digital, and electrically
similar. SDI is also digital, but
more for pro gear.
Better than composite
Composite

Looks like crap
http://Irongeek.com
Images from Wikipedia by Evan-Amos
http://Skydogcon.com








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
http://Irongeek.com
http://Skydogcon.com
http://Irongeek.com
http://Skydogcon.com




Laptop
Video Camera
USB Video Capture Device
http://www.dealextreme.com/p/usb-2-0-video-audiograbber-capture-49146
VGA to S-Video converter
http://www.dealextreme.com/p/usb-powered-vga-tocomposite-s-video-converter-box-1280-1024px-max-26804
SanDisk V-Mate
http://Irongeek.com
http://Skydogcon.com

Google for it. It’s been replaced on Microsoft’s site
with Expression Encoder.
http://Irongeek.com
http://Skydogcon.com

http://fixounet.free.fr/avidemux/
http://Irongeek.com
http://Skydogcon.com

http://www.virtualdub.org/
http://Irongeek.com
http://Skydogcon.com

http://audacity.sourceforge.net/
Also download LAME and FFMpeg while at the site
http://Irongeek.com
http://Skydogcon.com



Frames since Midnight
Makes timing videos easier
Still used to check sync
http://Irongeek.com
http://Skydogcon.com



Recombine Audio
ffmpeg -i input.flv -c copy -copyts output.mp4
Recombine & Resample Audio
ffmpeg -i input.flv -ar 22050 output.mp4
Loop through the above
FOR /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
http://Irongeek.com
http://Skydogcon.com

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_woverlay_w:y=main_h-overlay_h [tmp2]; [tmp2][sponfad]
overlay=x=main_w/2-overlay_w/2:y=main_h/2overlay_h/2" -c:v libx264 -crf 20 -preset veryslow -shortest
test.mkv
http://Irongeek.com
http://Skydogcon.com







Ffdshow
http://ffdshow-tryout.sourceforge.net/
http://x264.nl/
Video for Windows x264
http://sourceforge.net/projects/x264vfw/
XVID
http://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
Lame
http://lame.buanzo.com.ar/
K-lite should be avoided
http://Irongeek.com
http://Skydogcon.com
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 projected
slides = 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 together
livepluscorner = 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=363
function insertsign(clip mainclip, clip overlayclip, int startframe, int "endframe") {
endframe = default(endframe,startframe+overlayclip.framecount()-1)
endframe = (endframe == 0) ? startframe+overlayclip.framecount()-1 : endframe
endframe = (endframe >= mainclip.framecount()-1) ? mainclip.framecount()-1 : endframe
begin
middle
end
= (startframe == 1) ? mainclip.trim(0,-1) : mainclip.trim(0,startframe-1)
= mainclip.trim(startframe,endframe)
= (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 ++ end
return final
}
http://Irongeek.com
http://Skydogcon.com


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
http://Irongeek.com
http://Skydogcon.com




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
http://Irongeek.com
http://Skydogcon.com


Canon Consumer Camcorder (VIXIA $300 to $400)
Elgato Game Capture HD ($157.99)
http://www.bhphotovideo.com/c/product/879363REG/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/184982REG/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
http://Irongeek.com
http://Skydogcon.com






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
http://Irongeek.com
http://Skydogcon.com

AverMedia Live Gamer Portable ($157.99)
http://www.bhphotovideo.com/c/product/983193REG/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)

http://Irongeek.com
http://Skydogcon.com
Elgato was slower to start, but lag was a more or
less fixed amount
 AverMedia LGP varied lag as time went on in OBS
Other 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

http://Irongeek.com
http://Skydogcon.com
Irongeek’s OBS Rig
Presenter’s Laptop
VGA Switch
USB Video
Capture
VGA to
HDMI Scaler
HDMI USB
Video
Capture
Slide Capture Laptop
http://Irongeek.com
http://Skydogcon.com
http://Irongeek.com
http://Skydogcon.com

MiniDisplay to VGA/HDMI adapters


So many forget their own
HDMI to VGA adapters
http://www.meritline.com/hdmi-to-vga-adapter-audio-vga-to-hdmiconverter---p-113124.aspx

USB Active Cables
http://www.monoprice.com/products/product.asp?p_id=8489

Cables, Cables, Cables (Monoprice)
http://Irongeek.com
http://Skydogcon.com

Epiphan all in one box
http://www.epiphan.com/products/recording/lecture-recorder-x2/


Expensive, $1600+
Hopefully as more “Game”
recorder systems come out
this will be cheaper to do
Skiboy.org: Failing since 1995.
ONE Little Scooty Moulton shirt
available at the HFC auction.
http://Irongeek.com
http://Skydogcon.com

Youtube


Archive.org


Get a director account
Borrow university bandwidth
Others


Blip TV
Vimeo
http://Irongeek.com
http://Skydogcon.com






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
http://Irongeek.com
http://Skydogcon.com



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
http://Irongeek.com
http://Skydogcon.com




AVISynth Wiki
http://avisynth.org/mediawiki/
Video Help (great for tools and forums)
http://www.videohelp.com/
Doom 9 Forums
http://forum.doom9.org/
Nice overview of AV connectors
http://www.ramelectronics.net/howto-av.aspx
http://Irongeek.com
http://Skydogcon.com
Derbycon
Sept 24th-28th, 2014
Derbycon Art Credits to DigiP
Photo Credits to KC (devauto)
http://www.derbycon.com
Others
http://www.louisvilleinfosec.com
http://skydogcon.com
http://hack3rcon.org
http://Irongeek.com
http://outerz0ne.org
http://phreaknic.info
http://notacon.org
http://Skydogcon.com
42
Twitter: @Irongeek_ADC
http://Irongeek.com
http://Skydogcon.com