Changes

Home

4,681 bytes removed, 16:53, 16 May 2012
no edit summary
[[Teaching]]
 
[[Video Tools]]
== Teaching Resources ==
== NLP ==
[[NLP]]
 
== Video Tools ==
=== Non-finalcut capture path===
* FireWireSDK capture utility to m2t file
* m2t to mov:
<code>ffmpeg -i ocean_hdv_ca_200903_200911.m2t -f mov -vcodec copy -acodec copy ocean_hdv_ca_200903_200911.mov</code>
*
=== High Resolution Video ===
* 24P workflow with open source tools [http://eugenia.gnomefiles.org/2007/07/13/canon-hv20-24p-pulldown]
* HDMI capture card (BlackMagic Intensity) [http://www.blackmagic-design.com/products/intensity/]
* PCI-Mini and BlackMagic card solution on MBPro [http://panocamera.com/blog/?cat=3]
 
=== Sub-titles and Closed- Captioning===
[[subtitle manipulation]]
 
=== VIDEO CONVERSION ===
* ffmpeg command reference http://linux.die.net/man/1/ffmpeg
 
* <code> ffmpeg -i infile.avi -vcodec mpeg4 -b 8000k outfile.mp4 </code>
* drop audio <code> ffmpeg -i infile.avi -vcodec mpeg4 -an -b 8000k outfile.mp4 </code>
* resize to youtube preferred HD <code> ffmpeg -i infile.avi -vcodec mpeg4 -s 1280x720 -b 8000k outfile.mp4 </code>
* youtube recommendations http://www.youtube.com/t/howto_makevideo
* vimeo http://www.vimeo.com/help/compression
 
=== VIDEO -> FRAMES ===
* <code> ffmpeg -i infile.avi -s 720x480 -f image2 infile-%03d.tga</code>
* <code> ffmpeg -i toiletpaperhead\ wind.mov -deinterlace -r 0.5 -an -y -vcodec mjpeg -f image2 -sameq /Volumes/Reservoir/Frames/toilet_0.5/toiletpaper_wind_0.5_%05d.jpg</code>
=== FRAMES -> VIDEO ===
<code> ffmpeg -i /Volumes/Reservoir/Frames/toilet_0.5/toiletpaper_wind_0.5_%05d.jpg \
-r 30 -vcodec mpeg4 -an -b 4000k toiletpaper_wind_0.5.mp4
</code>
 
* Force input framerate to 8 fps, output framerate to 30fps:
<code>
ffmpeg -r 8 -i dfsp%04d.tif -r 30 -vcodec mpeg4 -an -b 24000k dfsp03.mp4
</code>
 
*imagemagick to crop/convert images:
 
<code>
convert '*.tif' -resize 1280x720 resized/dfsp%04d.tif
</code>
 
<code>
convert -verbose 'dfsp01_%04d.tif'[1-500] -resize 1280x720 resized/dfsp%04d.tif
</code>
 
*converting through python script
<source lang="python">
from subprocess import call
 
import sys
for i in range(751,6992):
try:
cmd = "dfsp01_%04d.tif -resize 1280x720 /Volumes/Reservoir/Process/dfsp/dfsp%04d.tif"%(i, i)
print "convert " + cmd
retcode = call("convert " + cmd, shell=True)
if retcode < 0:
print >>sys.stderr, "Child was terminated by signal", -retcode
else:
print >>sys.stderr, "Child returned", retcode
except OSError, e:
print >>sys.stderr, "Execution failed:", e
 
</source>
 
* downsizing 4k frames to HD 1080p (using imagemagick):
imconvert scstereo_01628.tif -geometry 1920x1080 small.tif
* joining left and right frames to make single-frame images (with python and imagemagick <code> montage </code> command):
<source lang="python">
from subprocess import call
import sys
for i in range(0,5856):
try:
cmd = "-geometry +0+0 left/scstereo_left_%05d.tif right/scstere_right_%05d.tif -depth 8 joined/wide_1080p_%05d.tif"%(i, i, i)
print "montage " + cmd
retcode = call("montage " + cmd, shell=True)
if retcode < 0:
print >>sys.stderr, "Child was terminated by signal", -retcode
else:
print >>sys.stderr, "Child returned", retcode
except OSError, e:
print >>sys.stderr, "Execution failed:", e
 
</source>
=== TIMELAPSE ===
<code>
 
ffmpeg -r 1 -i %04d.jpg -vcodec mjpeg -qscale 1 -s 1440x1080 -an output_1080.avi
 
</code>
 
=== Misc ===
[[ffmpeg to make a dvd]]
 
DV cam as a webcam
* http://www.trackercam.com/TCamWeb/dvdriver.htm
 
Monitor Mount
* http://en.wikipedia.org/wiki/Flat_Display_Mounting_Interface
* M4 screws (approx 10mm long), in square 100mm across.
 
=== Modifying VideoInput lib for OpenFrameworks ===
* Added "Bdaiface.h" to DShow.h in C:\\Dev-CPP\\Include
* install ffdshow filter for MPEG2 Decoding http://sourceforge.net/projects/ffdshow-tryout/
 
DirectShow details:
<source lang="cpp">
// Setup the other filters necessary to handle MPEG2TS Stream
// Capture Device -> MPEG-2 Demultiplexer -> ffdshow Video Decoder -> Frame Grabber
 
// MPEG-2 Demultiplexer Filter
// Major Type: Video
// Sub Type: MPEG2_VIDEO
// Format: MPEG2Video
// New Pin
// Name: Video
// Media Type: MPEG2 Program Video
// PID Mapping:
// PID: x0810
// Pin: Video
// Elementary Stream (A/V only)
 
// ffdshow Video Decoder Filter
// Codecs
// Format: MPEG2
// Decoder: libmpeg2
// Supported FOURCCs/remarks: MPEG2 codec
// In:
// Major Type: Video
// Sub Type: MPEG2_VIDEO
// Format: MPEG2Video
// Out:
// Major Type: Video
// Sub Type: YV12
// Format: YV12 1536x-1080, 12bits,
// Aspect Ratio: 16x9,
// Interlace format: Frames
// rcSrc=[0,0,1440,1080]
// rcDst=[0,0,1440,1080]
</source>
== Book Formatting ==