This commit is contained in:
Rico Sta. Cruz 2014-03-26 19:56:06 +08:00
parent 4fbff4d412
commit 87bdcf9a41
3 changed files with 16 additions and 4 deletions

View File

@ -84,6 +84,9 @@ layout: default
.exist
expect(-> ...)
.throw /not a function/
### Chai-jQuery
global.jQuery = ...;

View File

@ -25,11 +25,19 @@ layout: default
-an # no audio
-vol N # volume (256=normal)
-acodec
-vcodec
### Ringtone conversion using ffmpeg
ffmpeg -i foo.mp3 -ac 1 -ab 128000 -f mp4 -acodec libfaac -y target.m4r
### To webm
### To web
ffmpeg -i input.mp4 -vcodec libvpx -acoder libvorbis output.webm
ffmpeg -i input.mov -vcodec h264 -acodec aac -strict -2 output.mp4
ffmpeg -i input.mov -vcodec libvpx -acodec libvorbis output.webm
<video width="320" height="240" controls>
<source src="movie.mp4"></source>
<source src="movie.webm"></source>
</video>

View File

@ -16,7 +16,8 @@ Set up the `coverage` task so you can do `npm run coverage` later.
### test/setup.js
Instead of requiring `YOURFILE.js`, use `-cov.js` when it's necessary. It's
preferred to do this in the test files (rather than the main entry points).
preferred to do this in the test files (rather than the main entry points) so
not to mess with browserify.
var cov = (!! process.env.COVERAGE);
global.Mylib = require(cov ? 'mylib' : 'mylib-cov');