https://trac.ffmpeg.org/wiki/StreamingGuide
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
# Steps to build and install tmux from source. | |
# Takes < 25 seconds on EC2 env [even on a low-end config instance]. | |
VERSION=2.5 | |
sudo yum -y remove tmux | |
sudo yum -y install wget tar libevent-devel ncurses-devel | |
wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz | |
tar xzf tmux-${VERSION}.tar.gz | |
rm -f tmux-${VERSION}.tar.gz | |
cd tmux-${VERSION} |
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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title> | |
Exploring Recursive Promises In JavaScript | |
</title> | |
</head> | |
<body> |
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
set nocompatible | |
syntax enable | |
set encoding=utf-8 | |
set showcmd | |
filetype plugin indent on | |
""Whitespace | |
set nowrap "don't wrap lines | |
set tabstop=2 shiftwidth=2 " a tab is two spaces (or set this to 4) | |
set expandtab "usespaces,nottabs(optional) |
brew install gst-plugins-base --with-libogg --with-theora --with-libvorbis
brew install gst-plugins-good --with-flac --with-taglib --with-libsoup --with-jpeg --with-libcaca --with-libshout --with-speex
brew install gst-plugins-bad --with-faad2 --with-libsndfile --with-libmms
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
# coding=utf-8 | |
# https://gstreamer.freedesktop.org/documentation/tutorials/basic/hello-world.html | |
# Also big thanks to https://stackoverflow.com/questions/35137165/gstreamer-1-0-video-from-tutorials-is-not-playing-on-macos | |
import gi | |
gi.require_versions({'Gst': '1.0'}) | |
from gi.repository import Gst, GLib | |
Gst.init(None) |
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
# coding=utf-8 | |
# https://gstreamer.freedesktop.org/documentation/tutorials/basic/concepts.html | |
# thanks to https://github.com/gkralik/python-gst-tutorial | |
import gi | |
# import sys | |
gi.require_versions({'Gtk': '3.0', 'Gst': '1.0'}) | |
from gi.repository import Gst, GObject, GLib, Gtk | |
Gst.init(None) |
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 python3 | |
# coding=utf-8 | |
# https://gstreamer.freedesktop.org/documentation/tutorials/basic/dynamic-pipelines.html | |
import gi | |
gi.require_versions({'Gtk': '3.0', 'Gst': '1.0'}) | |
from gi.repository import Gst, Gtk | |
Gst.init(None) |
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 python3 | |
# -*- coding:utf-8 -*- | |
""" | |
Basic tutorial 8: Short-cutting the pipeline | |
https://gstreamer.freedesktop.org/documentation/tutorials/basic/short-cutting-the-pipeline.html | |
""" | |
import sys | |
import logging | |
import gi |