annotate bin/makeAVI.sh @ 2:f9d4af74e3d0

convert firefox bookmarks file to xml, e.g. for making a new ~/u/New_Tabs.py
author Henry S. Thompson <ht@inf.ed.ac.uk>
date Tue, 18 Aug 2026 15:38:14 +0100
parents 2aa53823fb21
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
1 #!/bin/bash
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
2 f=${1##*/}
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
3 /c/Users/ht/AppData/Roaming/myFFmpeg/ffmpeg.exe -i $(cygpath -d "$1") -map 0:0 -map 0:1 -c:a libmp3lame -ac 2 -async 1 -c:v mpeg4 -b:v 1163.52k -maxrate 2327.04k -bufsize 2327.04k -r 25 -s 720x404 -aspect 180:101 -trellis 0 -qsquish 0.5 -me_range 16 -i_qoffset 0 -refs 3 -sws_flags fast_bilinear -sc_threshold 40 -g 200 -qmin 3 -qmax 51 -threads 4 -vtag DIVX -sn -y "C:\Users\ht\Videos/${f%.*}.avi" |\
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
4 while read l
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
5 do case l in
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
6 frame=*) printf '%s\r' "$l" ;;
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
7 *) printf '%s\n' "$l" ;;
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
8 esac
2aa53823fb21 new repo
Henry S. Thompson <ht@inf.ed.ac.uk>
parents:
diff changeset
9 done