Introduction
Introduction Statistics Contact Development Disclaimer Help
Add ffmpeg faststart processing to tag add command. - annna - Annna the nice fr…
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6…
Log
Files
Refs
Tags
README
---
commit 84a2732778c092fa5b9e4fab6dd9d4e44af55f8a
parent 2e0833d675be5bd18118d50bcf542b4f03e9619f
Author: Annna Robert-Houdin <[email protected]>
Date: Thu, 20 Feb 2020 20:07:39 +0100
Add ffmpeg faststart processing to tag add command.
Diffstat:
M annna-add-hashtag | 17 +++++++++++++++++
1 file changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/annna-add-hashtag b/annna-add-hashtag
@@ -51,6 +51,21 @@ dltag() {
return $error
}
+processtag() {
+ tag="$1"
+ uri="$2"
+
+ cd "${memecachedir}"
+ tagfile="$(basename "$(find . -name "${stag}.*" | grep -v .orig)")"
+ case "${tagfile}" in
+ *.MP4|*.mp4|*.MKV|*.mkv|*.webm|*.WEBM|*.mov|*.MOV)
+ printf "Making %s streamable by adding faststart.\n" "${tagfil…
+ ffmpeg -i "${tagfile}" -c copy -movflags faststart "faststart_…
+ mv "faststart_${tagfile}" "${tagfile}"
+ ;;
+ esac
+}
+
inserttag() {
tag="$1"
uri="$2"
@@ -100,6 +115,8 @@ addtag() {
dltag "$1" "$2"
[ $? -gt 0 ] && return
+ processtag "$1" "$2"
+ [ $? -gt 0 ] && return
inserttag "$1" "$2"
}
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.