Skip to content

Instantly share code, notes, and snippets.

View Macjon's full-sized avatar

Jonah Macjon

  • Mediahuis
  • Belgium
View GitHub Profile
@Macjon
Macjon / gs.sh
Created October 25, 2016 13:50 — forked from esrever10/gs.sh
gstreamer send and receive h264 rtp stream
# linux send h264 rtp stream:
gst-launch-1.0 -v ximagesrc ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000
# Macos send h264 rtp stream:
gst-launch-1.0 -v avfvideosrc capture-screen=true ! video/x-raw,framerate=20/1 ! videoscale ! videoconvert ! x264enc tune=zerolatency bitrate=500 speed-preset=superfast ! rtph264pay ! udpsink host=127.0.0.1 port=5000
# receive h264 rtp stream:
gst-launch-1.0 -v udpsrc port=5000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)H264, payload=(int)96" ! rtph264depay ! decodebin ! videoconvert ! autovideosink
@Macjon
Macjon / ThreadedManagedObjectContext.h
Created August 3, 2012 17:36 — forked from danielctull/ThreadedManagedObjectContext.h
NSManagedObjectContext for iOS 4. Maybe?
//
// ThreadedManagedObjectContext.h
// Tweetopolis
//
// Created by Daniel Tull on 25.07.2012.
// Copyright (c) 2012 Daniel Tull. All rights reserved.
//
#import <CoreData/CoreData.h>