sudo pip install fonttools
convert to xml and back:
ttx /path/to/font.otf
ttx /path/to/font.ttx
linux:
ffmpeg -safe 0 -f concat -i <(find . -type f -name '*' -printf "file '$PWD/%p'\n" | sort) -c copy output.mkv
/etc/rc.local
script is executed by the "root" user
if you want to execute commands as another user:
su - pi /do/something/as/oracle/user
make bash script:
!/bin/bash
sleep 20
iceweasel
make it executable:
chmod +x myscript.sh
A; B Run A and then B, regardless of success of A
A && B Run B if A succeeded
A || B Run B if A failed
A & Run A in background.
A; B Run A and then B, regardless of success of A
A && B Run B if A succeeded
A || B Run B if A failed
A & Run A in background.
change for all users:
nano /etc/bash.bashrc
export TIME_STYLE=long-iso
bash.bashrc -- sysem-wide .bashrc file for interactive bash shells
works without x
ffmpeg -i input.wav -c:a libfaac output.mp4
ffmpeg -i input.avi -c:v libx264 -c:a libfaac output.mkv
without re-encoding:
ffmpeg -i input.mp4 -c:v copy -c:a copy output.mkv
setting bitrate:
ffmpeg -i input.wav -b:a 192K out.mp3
ffmpeg -i input.avi -c:v libx264 -b:v 500K -c:a copy out.mp4
quality settings (better than with bitrate)
ffmpeg -i source.mp4 -c:v libx264 -crf 23 out.mp4
cutting video:
ffmpeg -i input.mov -ss 00:01:30 -c:v copy -c:a copy -t 00:01:30.500 output.mov
resizing:
ffmpeg -i hd-movie.mkv -c:v libx264 -s:v 854x480 -c:a copy out.mp4