Get an image sequence from video using mplayer
mplayer video.avi -vo png
Extract audio from a video file
mplayer video.avi -ao pcm:file=arquivo.wav
Create a video file from a set of images
mencoder ""mf://*.jpg"" -mf fps=12 -o output.avi -ovc copy -lavcopts vcodec=raw
ffmpeg -framerate 24 -i *.png output.mp4
Convert video to mp4
avconv -i input.avi -c:v libx264 -crf 31 -preset fast -c:a libmp3lame output.mp4
#compression is greater for higher crf values, see also different presets
Split video file using ffmpeg
ffmpeg -i input.avi -ss X -t Y -acodec copy -vcodec copy output.avi
where X is the start time and Y the split length (in seconds or hh:mm:ss)
midi to mp3
timidity teste.mid -Ow -o - | ffmpeg -i - -acodec libmp3lame -ab 64k teste.mp3
Convert all the files from a directory to another format file.
for i in *.jpg; do
convert $i ${i%.jpg}.eps
done;
Concatenate videos into a single one
ffmpeg -f concat -safe 0 -i list.txt -c copy output.avi
Extract audio from video
ffmpeg -i input.mp4 -vn -acodec pcm_s16le output.wav
Python Related
python3 -m venv vname
source vname/bin/activate
python3 -m pip install package
python3 -m pip install package --upgrade
python3 -m pip install package==
bashrc
export PATH="$PATH:/usr/java/jre1.8.0_251/bin/"
export PYTHONPATH="${PYTHONPATH}:/home/folder/"
alias sshdimap='sshfs login@host:/home/folder/ /dstFolder/ -p 2222 -o reconnect'
Packages to install almost everything need to use latex
sudo apt-get install texlive-latex-extra latex-beamer texlive-extra-utils texlive-latex3 texlive-xetex texlive-generic-extra texlive-math-extra texlive-extra-utils texlive-doc-pt texlive-common texlive-lang-portuguese texlive-formats-extra texlive-science texlive-latex-recommended texlive-pictures texlive-latex-extra texlive-fonts-extra texlive-bibtex-extra abntex
Move mouse automatically
while [ 1 ]; do
xdotool mousemove_relative 1 1
sleep 1
done