This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Recompress video, add audio waveform | |
# usage: ./compress-video-waveform.sh video-source video-destination | |
videocodec="libx264 -strict -2 -crf 20 -preset slow" | |
audiocodec="libmp3lame -b:a 320k" | |
waveform="[0:a]showwaves=s=1920x540:mode=cline:split_channels=1:colors=\#ffffff40|\#ffffff40,format=argb[w];[0:v][w]overlay=(W-w)/2:(H-h)/2[v]" | |
ffmpeg -y -i $1 -c:v $videocodec -acodec $audiocodec -filter_complex $waveform -map "[v]" -map 0:a $2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Convert Ardour left+right wavs to stereo flac files | |
for f in *%L.wav; | |
do | |
left=$f | |
right=$(echo $f | sed s/%L/%R/) | |
stereo=$(echo $f | sed s/%L.wav/.flac/) | |
ffmpeg -y -i "$left" -i "$right" -filter_complex "[0:a][1:a]join=inputs=2:channel_layout=stereo[a]" -map "[a]" -acodec flac "$stereo" # && rm -f "$left" "$right" | |
done | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Makefile to convert audio files to videos, with audio waves display | |
# What you need to upload a nice audio on Youtube but you don't have a video | |
# | |
# Needs: | |
# - a music/ folder with flac files | |
# - a covers/ folder with 1920x1080 pictures, | |
# each with the same name than the flac, ending with "-1080p.png" | |
# - a video/ folder to store the generated videos | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewPagerTester { | |
private ViewPager mPager; | |
private int mDelay; | |
public ViewPagerTester(ViewPager pager, int delay) { | |
mPager = pager; | |
mDelay = delay; | |
} | |
public void run() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
""" | |
Retreive package ratings from Ubuntu Software Center | |
gautier at soundconverter.org | |
""" | |
from sys import argv, exit | |
from time import sleep |