Page History
- 2014-Nov-05 16:19 adesmet
- 2014-Nov-05 16:15 adesmet
- 2014-Nov-05 16:14 adesmet
- 2014-Nov-05 16:12 adesmet
- 2014-Nov-05 16:11 adesmet
- 2014-Nov-05 15:54 adesmet
- 2014-Nov-03 17:07 adesmet
- 2014-Oct-28 15:24 adesmet
- 2014-Oct-28 14:47 adesmet
- 2014-Oct-28 14:17 adesmet
- 2014-Oct-28 14:16 adesmet
- 2014-Oct-28 14:14 adesmet
- 2014-Oct-28 13:59 adesmet
- 2014-Oct-28 13:47 adesmet
- 2014-Oct-20 15:13 adesmet
- 2014-Oct-20 14:47 adesmet
- 2014-Oct-20 14:46 adesmet
- 2014-Oct-20 14:44 adesmet
- 2014-Aug-08 14:10 adesmet
- 2014-Aug-05 17:16 adesmet
- 2014-Jun-11 11:35 adesmet
- 2014-May-22 14:28 adesmet
- 2014-May-22 14:27 adesmet
- 2014-May-22 13:23 adesmet
- 2014-May-22 13:22 adesmet
- 2014-May-22 13:19 adesmet
- 2014-May-22 13:06 adesmet
- 2014-May-22 13:06 adesmet
The good news is that there is no reason we can't just host the video ourselves!
The following is a general strategy; as of May 2014 it has not been tested.
Downloads
Put the files up for download! There is no reason to not just offer for download the exact same files created for streaming (below).
You might want to ensure the web server sets the Content-Disposition header so that it's downloaded and not viewed in browser. promising looking summary of the technique
Streaming
Dive Into HTML5 has a good overview of what you need to do. The situation is even better if you're willing to require a "recent" web browser (2011+), in which case you can ignore Flash and Theora+Vorbis+Ogg and exclusively rely on H.264(baseline)+AAC(low complexity)+MP4 and WebM.
Dive Into HTML5's recommendations for creating the files should work, but are probably overkill. If you've got a good ffmpeg install (Try /u/a/d/adesmet/bin/opt/ffmpeg/bin/ffmpeg ) it can do the job. The full details are a bit long, but here is a summary:
ffmpeg -i input.mp4 -c:v libvpx -qmax 42 -qmin 10 -b:v 1M -c:a libvorbis -q:a 4 -f webm out.webm ffmpeg -i input.mp4 -c:v libx264 -profile:v baseline -crf 23 -c:a libfaac out.mp4
You can use ffmpeg to do lossless trimming of files (say, to break a single video into multiple videos, or to trim off dead time). source
# START and LENGTH are seconds or hh:mm:ss. ffmpeg -acodec copy -vcodec copy -ss START -t LENGTH -i ORIGINALFILE.mp4 OUTFILE.mp4
You can also crop the video with ffmpeg, which may be useful if part of the video feel is always empty (say, the video is wide enough to handle a 16:9 slide, but only 4:3 slides are shown. This is lossy, so you'll probably want to merge it into the conversion step. source
ffmpeg -i ORIGINALFILE.mp4 -filter:v "crop=out_w:out_h:x:y" OUTFILE.mp4