Can be used for streaming data (webcam or screen capture) from the Windows to WSL
Run from a WSL terminal
ip route list default | awk '{print $3}'
#!/usr/bin/env bash | |
if [ "`echo ${1} | grep -i mongo`" ]; then | |
PASS=$(bw get item "${1}" | jq --join-output --raw-output .login.password | jq --slurp --raw-input '@uri' --raw-output) | |
else | |
PASS=$(bw get item "${1}" | jq --join-output --raw-output .login.password) | |
fi | |
echo ${PASS} | |
echo ${PASS} | pbcopy |
# Based on example here https://trac.ffmpeg.org/wiki/Encode/YouTube | |
text=$(basename $1 .wav) | |
ffmpeg -i $1 -filter_complex \ | |
"[0:a]avectorscope=s=640x518,pad=1280:720[vs]; \ | |
[0:a]showspectrum=mode=separate:color=intensity:scale=cbrt:s=640x518[ss]; \ | |
[0:a]showwaves=s=1280x202:mode=line[sw]; \ | |
[vs][ss]overlay=w[bg]; \ | |
[bg][sw]overlay=0:H-h,drawtext=fontfile=/usr/share/fonts/truetype/fonts-japanese-gothic.ttf:fontcolor=white:x=10:y=10:text=$text[out]" \ | |
-map "[out]" -map 0:a -c:v libx264 -preset fast -crf 18 -c:a copy $text.mkv |
# Based on example here https://trac.ffmpeg.org/wiki/Encode/YouTube | |
text=$(basename $1 .wav) | |
ffmpeg -i $1 -filter_complex \ | |
"[0:a]avectorscope=s=640x518,pad=1280:720[vs]; \ | |
[0:a]showspectrum=mode=separate:color=intensity:scale=cbrt:s=640x518[ss]; \ | |
[0:a]showwaves=s=1280x202:mode=line[sw]; \ | |
[vs][ss]overlay=w[bg]; \ | |
[bg][sw]overlay=0:H-h,drawtext=fontfile=/usr/share/fonts/truetype/fonts-japanese-gothic.ttf:fontcolor=white:x=10:y=10:text=$text[out]" \ | |
-map "[out]" -map 0:a -c:v libx264 -preset fast -crf 18 -c:a copy $text.mkv |
Can be used for streaming data (webcam or screen capture) from the Windows to WSL
Run from a WSL terminal
ip route list default | awk '{print $3}'