Skip to content

Instantly share code, notes, and snippets.

@corupta
corupta / watermark_spread_spectrum.py
Created September 16, 2022 14:05 — forked from tam17aki/watermark_spread_spectrum.py
A python script to perform audio watermark embedding/detection on the basis of direct-sequence spread spectrum method.
#!/usr/bin/env python3
"""A python script to perform audio watermark embedding/detection
on the basis of direct-sequence spread spectrum method."""
# Copyright (C) 2020 by Akira TAMAMORI
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
@corupta
corupta / compile-ffmpeg-nvenc-jetson.sh
Last active November 13, 2021 17:44
Jetson - FFMPEG for PyAV
#!/bin/bash
# This script builds an ffmpeg4 allowing us to install PyAV with pip3 install av
# I tried to make it use cuda, but failed, so far only libx264 works well (a fast cpu encoder).
# I'm using jetson agx 32 with jetpack 4.6 on ubuntu 18
# makesure jetpack packages are install (cuda part is removed from original script)
# it doesn't use nvmpi hardware encoder but rather tries to use gpu/cuda accelaration
# I couldn't make nvmpi version (ffmpeg-jetson repo) work successfully.
@corupta
corupta / subtitles-renamer.sh
Last active January 17, 2021 19:34 — forked from bigantal/subtitles-renamer.sh
Allow handling subtitles with no season markings, add no-season option to allow this.
#!/usr/bin/env bash
# Renames subtitles files according to tv shows names found in a directory and its subdirectories RECURSIVELY
# Acceped syntaxes for season/episode are: 304, s3e04, s03e04, 3x04, Season 03 Episode 04 (case insensitive)
#
# Usage:
# Put this gist somewhere in your $PATH, like /usr/local/bin/subtitles-renamer
# Chmod +x it
# cd ~/YourHolidaysTvShowsWithSubtitles
# subtitles-renamer