Skip to content

Instantly share code, notes, and snippets.

@dyama
Last active February 7, 2021 07:16
Show Gist options
  • Save dyama/c5b05b28abf83a663798 to your computer and use it in GitHub Desktop.
Save dyama/c5b05b28abf83a663798 to your computer and use it in GitHub Desktop.
Simple recorder for Twitcasting.tv
#!/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
@fcicq
Copy link

fcicq commented Dec 27, 2015

thanks for your works!

@Pyzza28
Copy link

Pyzza28 commented Oct 3, 2020

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