scripts/encode_*.sh for datenspuren recordings
This commit is contained in:
parent
5080b1113b
commit
80bf8ff3a8
10
scripts/encode_gif.sh
Executable file
10
scripts/encode_gif.sh
Executable file
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if=$1
|
||||||
|
of=`basename "$if"|sed -e 's/\..\+//'`
|
||||||
|
|
||||||
|
#~/ffmpeg/
|
||||||
|
ffmpeg -i "$if" -ss 10 -r 0.004 -b 100k -bt 100000k -s 360x202 "$of.%05d.jpg" && \
|
||||||
|
convert -delay 50 -loop 0 "$of.?????.jpg" "$of.gif" && \
|
||||||
|
mv "$of.00001.jpg" "$of.jpg" && \
|
||||||
|
rm "$of".?????.jpg
|
35
scripts/encode_mp4.sh
Executable file
35
scripts/encode_mp4.sh
Executable file
|
@ -0,0 +1,35 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if=$1
|
||||||
|
of=`basename "$1"|sed -e 's/.avi/.mp4/'`
|
||||||
|
|
||||||
|
schedtool -De \
|
||||||
|
~/ffmpeg/ffmpeg -i "$if" \
|
||||||
|
-threads 2 \
|
||||||
|
-f mp4 \
|
||||||
|
-an \
|
||||||
|
-vcodec libx264 \
|
||||||
|
-vpre slower_firstpass \
|
||||||
|
-b 800k \
|
||||||
|
-bt 800k \
|
||||||
|
-s 720x406 \
|
||||||
|
-pass 1 \
|
||||||
|
-passlogfile "$of.ffmpeg2pass" \
|
||||||
|
-y \
|
||||||
|
/dev/null && \
|
||||||
|
schedtool -De \
|
||||||
|
~/ffmpeg/ffmpeg -i "$if" \
|
||||||
|
-threads 2 \
|
||||||
|
-f mp4 \
|
||||||
|
-acodec libmp3lame \
|
||||||
|
-ab 160k \
|
||||||
|
-vcodec libx264 \
|
||||||
|
-vpre slower \
|
||||||
|
-b 800k \
|
||||||
|
-bt 800k \
|
||||||
|
-s 720x406 \
|
||||||
|
-pass 2 \
|
||||||
|
-passlogfile "$of.ffmpeg2pass" \
|
||||||
|
-y \
|
||||||
|
"$of"
|
||||||
|
|
35
scripts/encode_webm.sh
Executable file
35
scripts/encode_webm.sh
Executable file
|
@ -0,0 +1,35 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
if=$1
|
||||||
|
of=`basename "$1"|sed -e 's/.avi/.webm/'`
|
||||||
|
|
||||||
|
if [ ! -f "$of.ffmpeg2pass" ]; then
|
||||||
|
schedtool -De \
|
||||||
|
~/ffmpeg/ffmpeg -i "$if" \
|
||||||
|
-threads 4 \
|
||||||
|
-f webm \
|
||||||
|
-an \
|
||||||
|
-vcodec libvpx \
|
||||||
|
-b 400k \
|
||||||
|
-bt 400k \
|
||||||
|
-s 720x405 \
|
||||||
|
-pass 1 \
|
||||||
|
-passlogfile "$of.ffmpeg2pass" \
|
||||||
|
-y \
|
||||||
|
/dev/null || exit 1
|
||||||
|
fi
|
||||||
|
schedtool -De \
|
||||||
|
~/ffmpeg/ffmpeg -i "$if" \
|
||||||
|
-threads 4 \
|
||||||
|
-f webm \
|
||||||
|
-acodec libvorbis \
|
||||||
|
-ab 160k \
|
||||||
|
-vcodec libvpx \
|
||||||
|
-b 400k \
|
||||||
|
-bt 400k \
|
||||||
|
-s 720x405 \
|
||||||
|
-pass 2 \
|
||||||
|
-passlogfile "$of.ffmpeg2pass" \
|
||||||
|
-y \
|
||||||
|
"$of" || exit 1
|
||||||
|
|
Loading…
Reference in New Issue
Block a user