Welcome to Nick's Random Musings

Of course I don't know what I'm doing, what fun would that be?


How to switch your pitch on linux


meta
Nick Gully, Denver

Say you want to sound like you are huffing Helium.

Recoding with Cheese, save a file (on Fedora 37, this becomes a .webm)

Cut the audio out of the video:
ffmpeg -i 2023-02-13-203611.webm  -vn -acodec copy "output.oga"

Shift the pitch up:
ffmpeg -i output.oga -filter:a "rubberband=pitch=2.059463094352953" 
out_balloon2.wav

Then add the audio to a 
ffmpeg -loop 1 -y -i balloon.png -i out_balloon2.wav -shortest -acodec 
copy -vcodec mjpeg the_ballon_knows.avi

The Balloon Knows Where It Is…

Fun with PyTest


meta
Nick Gully, Denver

If you want to debug a pytest within a framework,

import pytest;pytest.set_trace()

at a point in a test you want to break at, then

./pytestrun.sh tests/foo_engine/test_my_grits.py --pdb

and it’ll break there in your pytest to the debugger.

Yummemory


meta
Nick Gully, Denver

Baggage

Christmas Cat


meta
Nick Gully, Denver

Baggage

Halfway down the stairs


meta
Nick Gully, Denver

Baggage

« Older Posts Newer Posts »