Last active
February 7, 2021 07:16
-
-
Save dyama/c5b05b28abf83a663798 to your computer and use it in GitHub Desktop.
Simple recorder for Twitcasting.tv
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
#!/bin/bash | |
# coding: utf-8 | |
# twitcast.sh by dyama | |
if [ -n "$1" ]; then | |
id=$(echo "$1" | sed 's|^.*/||g') | |
fname="${id}_$(date +'%F_%H-%M-%S').ts" | |
ffmpeg -i "http://twitcasting.tv/$id/metastream.m3u8" \ | |
-vcodec copy -acodec copy -f mpegts "$fname" | |
else | |
echo "usage: $0 twitcasting_account" | |
fi |
Uhm...do I just run this or- I mean it is an .sh file. Sorry I am an awful noob at this-
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks for your works!