Skip to content

Instantly share code, notes, and snippets.

@atareao
Created October 9, 2025 18:00
Show Gist options
  • Select an option

  • Save atareao/28d25be908c58a565ae84b701c24b993 to your computer and use it in GitHub Desktop.

Select an option

Save atareao/28d25be908c58a565ae84b701c24b993 to your computer and use it in GitHub Desktop.
portadas
#!/usr/bin/env bash
set -euxo pipefail
echo {{origen}} {{episode}}
if [ -f "{{origen}}" ]; then
source ~/.config/zsh/plugins/atareao/portada_podcast_obsidian.sh
source ~/.config/zsh/plugins/atareao/imp3_obsidian.sh
ffmpeg -i "{{origen}}" -c:v h264_nvenc -filter:a "volume=3dB" "completos/podcasts/e{{episode}}.mkv"
ffmpeg -i "completos/podcasts/e{{episode}}.mkv" -map 0:1 -ac 1 -vn -ab 128000 -c:a libmp3lame "/data/podcasts/audio/e{{episode}}.mp3"
dia=$(date +%d)
portada_podcast {{episode}} "$dia"
imp3 {{episode}}
rm "{{origen}}"
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment