[COMMIT osv-apps master] node-express and ffmpeg: made it work with ROFS

2 views
Skip to first unread message

Commit Bot

unread,
Apr 20, 2020, 1:09:38 AM4/20/20
to osv...@googlegroups.com, Waldemar Kozaczuk
From: Waldemar Kozaczuk <jwkoz...@gmail.com>
Committer: Waldemar Kozaczuk <jwkoz...@gmail.com>
Branch: master

node-express and ffmpeg: made it work with ROFS

Signed-off-by: Waldemar Kozaczuk <jwkoz...@gmail.com>

---
diff --git a/ffmpeg/module.py b/ffmpeg/module.py
--- a/ffmpeg/module.py
+++ b/ffmpeg/module.py
@@ -4,6 +4,6 @@

default = api.run("/ffmpeg.so -formats")
video_details = api.run('/ffmpeg.so -i http://clips.vorwaerts-gmbh.de/VfE_html5.mp4')
-video_subclip = api.run('/ffmpeg.so -i http://clips.vorwaerts-gmbh.de/VfE_html5.mp4 -ss 00:00:10 -codec copy -t 10 output.mp4')
-video_extract_png = api.run('/ffmpeg.so -i http://clips.vorwaerts-gmbh.de/VfE_html5.mp4 -r 1 -f image2 image-%2d.png')
+video_subclip = api.run('/ffmpeg.so -i http://clips.vorwaerts-gmbh.de/VfE_html5.mp4 -ss 00:00:10 -codec copy -t 10 /tmp/output.mp4')
+video_extract_png = api.run('/ffmpeg.so -i http://clips.vorwaerts-gmbh.de/VfE_html5.mp4 -r 1 -f image2 /tmp/image-%2d.png')
video_transcode = api.run('/ffmpeg.so -i http://clips.vorwaerts-gmbh.de/VfE_html5.mp4 -c:v libx265 -crf 28 -an -f mpegts tcp://192.168.122.1:12345')
diff --git a/node-express-example/Makefile b/node-express-example/Makefile
--- a/node-express-example/Makefile
+++ b/node-express-example/Makefile
@@ -8,7 +8,7 @@ ROOTFS/express:
mkdir -p ROOTFS
git clone git://github.com/strongloop/express.git --depth 1 ROOTFS/express
cd ROOTFS/express && npm install
- rm -rf ROOTFS/express/test
+ rm -rf ROOTFS/express/test ROOTFS/express/.git ROOTFS/express/examples/downloads/files/
test:
python test.py
clean:
Reply all
Reply to author
Forward
0 new messages