Skip to content

Instantly share code, notes, and snippets.

@dragonman225
Last active October 8, 2020 16:20
Show Gist options
  • Save dragonman225/a563ac0ef145f2ce6f85e4004540d078 to your computer and use it in GitHub Desktop.
Save dragonman225/a563ac0ef145f2ce6f85e4004540d078 to your computer and use it in GitHub Desktop.
Record "超!A&G+" radio programs. rtmpdump need to be installed. Usage: sh record_agqr.sh <duration> <directory_to_save_to>
#!/bin/bash
duration=$1
cwd=$2
start_time=$(date +%G.%m.%d-%H:%M)
rtmpdump \
-r rtmp://fms-base2.mitene.ad.jp/agqr/aandg333 -v -B "${duration}" \
-o "${cwd}/agqr_${start_time}+${duration}s.flv"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment