Created
October 9, 2025 18:00
-
-
Save atareao/28d25be908c58a565ae84b701c24b993 to your computer and use it in GitHub Desktop.
portadas
This file contains hidden or 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/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