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 -*- | |
import argparse | |
import os | |
import sys | |
parser = argparse.ArgumentParser( | |
formatter_class=argparse.ArgumentDefaultsHelpFormatter | |
) |
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 -*- | |
# Copyright 2018, Florent Thiery | |
import gi | |
import sys | |
gi.require_version('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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import gi | |
gi.require_version('Gst', '1.0') | |
from gi.repository import Gst, GLib | |
Gst.init(None) | |
p = "videotestsrc is-live=true ! autovideosink" |
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 | |
FOLDER=/opt/gstreamer | |
mkdir -p $FOLDER | |
git clone https://github.com/GStreamer/gst-build.git $FOLDER | |
cd $FOLDER | |
mkdir build | |
meson -Denable_python=true build | |
cd build | |
ninja | |
echo "Now run: $FOLDER/gst-uninstalled.py" |
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/sh | |
# ---------------------------------------------------------------------------- | |
# | |
# create-uninstalled-setup.sh | |
# | |
# Little shell script that creates a fresh GStreamer uninstalled setup in | |
# your home directory. | |
# | |
# ---------------------------------------------------------------------------- | |
# |
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 -*- | |
import gi | |
gi.require_version("Gst", "1.0") | |
gi.require_version("GstAudio", "1.0") | |
from gi.repository import Gst, GstAudio, GObject | |
import sys | |
GObject.threads_init() | |
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 -*- | |
import gi | |
gi.require_version("Gst", "1.0") | |
gi.require_version("GstAudio", "1.0") | |
from gi.repository import Gst, GstAudio, GObject | |
import sys | |
GObject.threads_init() | |
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
[Desktop Entry] | |
Name=Java | |
Comment=Java | |
GenericName=Java | |
Keywords=java | |
Exec=java -jar %f | |
Terminal=false | |
X-MultipleArgs=false | |
Type=Application | |
MimeType=application/x-java-archive |
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 -*- | |
# Copyright 2016, Florent Thiery | |
import os | |
import sys | |
import requests | |
from zipfile import ZipFile | |
API_KEY = 'my-api-key' | |
BASE_URL = 'https://my.mediaserver.com' |
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 python | |
# -*- coding: utf-8 -*- | |
# Copyright 2016, Florent Thiery | |
import requests | |
API_KEY = 'your-api-key' | |
BASE_URL = 'https://your.mediaserver.net' | |
VERIFY_SSL = False | |
PROXIES = {'http': '', 'https': ''} |