forked from tgrabiec/osv-apps
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ffmpeg: added version that takes binaries from host
Signed-off-by: Waldemar Kozaczuk <[email protected]>
- Loading branch information
Showing
3 changed files
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.PHONY: module clean | ||
|
||
SRC = $(shell readlink -f ../..) | ||
|
||
ffmpeg_path = $(shell realpath $$(which ffmpeg)) | ||
|
||
module: | ||
$(SRC)/scripts/manifest_from_host.sh $(ffmpeg_path) > usr.manifest | ||
|
||
clean: | ||
rm -rf usr.manifest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Open source audio & video processing framework - https://www.ffmpeg.org/ | ||
|
||
The default command prints list of supported formats. | ||
|
||
Examples: | ||
- get details of video - ./scripts/run.py -e '/ffmpeg -i http://clips.vorwaerts-gmbh.de/VfE_html5.mp4' | ||
- extract 10 seconds of video starting at 10 seconds offset - ./scripts/run.py -e '/ffmpeg -i http://clips.vorwaerts-gmbh.de/VfE_html5.mp4 -ss 00:00:10 -codec copy -t 10 output.mp4' | ||
- extract png image for each second of video - ./scripts/run.py -e '/ffmpeg -i http://clips.vorwaerts-gmbh.de/VfE_html5.mp4 -r 1 -f image2 image-%2d.png | ||
|
||
For more examples read https://www.ostechnix.com/20-ffmpeg-commands-beginners/ | ||
|
||
There are number of test videos of different formats you can use from here - https://standaloneinstaller.com/blog/big-list-of-sample-videos-for-testers-124.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
from osv.modules import api | ||
|
||
api.require("libz") | ||
default = api.run("/ffmpeg -formats") |