Skip to content

Instantly share code, notes, and snippets.

View tausackhn's full-sized avatar

Kirill tausackhn

  • Russia
View GitHub Profile
@tausackhn
tausackhn / videos.json
Created March 2, 2018 18:40 — forked from aguilarcarlos/videos.json
Creative Commons Videos
{
"categories":[
{
"name":"Movies",
"videos":[
{
"description":"Big Buck Bunny tells the story of a giant rabbit with a heart bigger than himself. When one sunny day three rodents rudely harass him, something snaps... and the rabbit ain't no bunny anymore! In the typical cartoon tradition he prepares the nasty rodents a comical revenge.\n\nLicensed under the Creative Commons Attribution license\nhttp://www.bigbuckbunny.org",
"sources":[
"http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4"
],
@tausackhn
tausackhn / splitter.sh
Last active January 21, 2018 00:36
Split videofiles by size approximately.
#!/bin/bash
#
# Split video in chunks with similar size (depends on bitrate, the best option CBR).
#
# require: ffmpeg
# usage: splitter.sh -s chunk_size[KB,MB,GB] [--processes N] file [file ...]
#
# arguments:
# chunk_size[KB,MB,GB] chunk size in KB, MB, GB, or bytes by default
# [--processes N] (optional) number of parallel ffmpeg processes
@tausackhn
tausackhn / twitch_playlist.user.js
Last active August 1, 2016 09:15
Getting Twitch.tv live source playlist
// ==UserScript==
// @name Twitch Playlists
// @namespace taus-guit
// @description Getting m3u8 playlist on live twitch channel.
// @include *.twitch.tv/*
// @version 1
// @grant GM_setClipboard
// @grant GM_addStyle
// @grant GM_xmlhttpRequest
// ==/UserScript==