This commit is contained in:
parent
4fbff4d412
commit
87bdcf9a41
3
chai.md
3
chai.md
|
@ -84,6 +84,9 @@ layout: default
|
||||||
|
|
||||||
.exist
|
.exist
|
||||||
|
|
||||||
|
expect(-> ...)
|
||||||
|
.throw /not a function/
|
||||||
|
|
||||||
### Chai-jQuery
|
### Chai-jQuery
|
||||||
|
|
||||||
global.jQuery = ...;
|
global.jQuery = ...;
|
||||||
|
|
14
ffmpeg.md
14
ffmpeg.md
|
@ -24,12 +24,20 @@ layout: default
|
||||||
-ac 1 # audio channels (1=mono, 2=stereo)
|
-ac 1 # audio channels (1=mono, 2=stereo)
|
||||||
-an # no audio
|
-an # no audio
|
||||||
-vol N # volume (256=normal)
|
-vol N # volume (256=normal)
|
||||||
|
|
||||||
|
-acodec
|
||||||
|
-vcodec
|
||||||
|
|
||||||
### Ringtone conversion using ffmpeg
|
### Ringtone conversion using ffmpeg
|
||||||
|
|
||||||
ffmpeg -i foo.mp3 -ac 1 -ab 128000 -f mp4 -acodec libfaac -y target.m4r
|
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>
|
||||||
|
|
|
@ -16,7 +16,8 @@ Set up the `coverage` task so you can do `npm run coverage` later.
|
||||||
### test/setup.js
|
### test/setup.js
|
||||||
|
|
||||||
Instead of requiring `YOURFILE.js`, use `-cov.js` when it's necessary. It's
|
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);
|
var cov = (!! process.env.COVERAGE);
|
||||||
global.Mylib = require(cov ? 'mylib' : 'mylib-cov');
|
global.Mylib = require(cov ? 'mylib' : 'mylib-cov');
|
||||||
|
|
Loading…
Reference in New Issue