xonecas.io
311
Fn

ffmpeg-node / commit d90ea80

cleaned up readme and test

xonecas2011-01-29 d90ea8028a5e47fcded58d26ab2961563500a4f7 parent 6b4d504

2 files changed

README+12−3
@@ -38,15 +38,24 @@ These are the ffmpeg commands used by the module for the convenience methods.
3838
3939 mp4:
4040
41- ffmpeg -i ./test.3gp -acodec libfaac -ab 128k -ar 41000 -vcodec libx264 -vpre slow -vpre baseline -s 640x360 -r 25 ./test.mp4
41+ ffmpeg -i ./test.3gp \
42+ -acodec libfaac -ab 128k -ar 41000 \
43+ -vcodec libx264 -vpre slow -vpre baseline -s 640x360 -r 25 \
44+ ./test.mp4
4245
4346
4447 ogg:
4548
46- ffmpeg -i ./test.3gp -acodec libvorbis -ab 128k -ar 41000 -vcodec libtheora -s 640x360 -r 30 ./test.ogg
49+ ffmpeg -i ./test.3gp \
50+ -acodec libvorbis -ab 128k -ar 41000 \
51+ -vcodec libtheora -s 640x360 -r 30 \
52+ ./test.ogg
4753
4854 webm:
4955
50- ffmpeg -i test.3gp -acodec libvorbis -ab 128k -ar 41000 -vcodec libvpx -s 640x360 -b 614400 -aspect 16:9 video.webm
56+ ffmpeg -i ./test.3gp \
57+ -acodec libvorbis -ab 128k -ar 41000 \
58+ -vcodec libvpx -s 640x360 -b 614400 -aspect 16:9 \
59+ ./video.webm
5160
5261
test.js+0−5
@@ -1,6 +1,5 @@
11 var ffmpeg = require('./ffmpeg-node.js');
22
3-/*
43 ffmpeg.command('./test.3gp', {
54 'acodec': 'libfaac',
65 'ab': '128k',
@@ -17,9 +16,7 @@ ffmpeg.command('./test.3gp', {
1716 console.log('it worked');
1817
1918 });
20-*/
2119
22-/*
2320 ffmpeg.toMp4('./test.3gp', {
2421 'width': '640',
2522 'height': '360'
@@ -28,8 +25,6 @@ ffmpeg.toMp4('./test.3gp', {
2825 console.log('it worked');
2926
3027 });
31-*/
32-
3328
3429 ffmpeg.toOgg('./test.3gp', {
3530 'width': '640',