Skip to content

Instantly share code, notes, and snippets.

// SPDX-License-Identifier: GPL-2.0
/*
* Zedboard ASoC sound card support
*
* @author Yuhei Horibe
* Original code: xlnx_pl_snd_card.c
* Reference: zed_adau1761.c
*
* This sound card driver is specific to Zedboard
* Both I2S transmitter and I2S receiver device tree nodes
#! /usr/bin/env python3
"""Run from root directory of repo https://github.com/lengstrom/fast-style-transfer to
create a .pb for use with OpenVINO.
"""
import sys
sys.path.insert(0, 'src')
import transform
import argparse
import tensorflow as tf
import os
@rrcoco
rrcoco / gst_messages.c
Created July 4, 2021 05:39 — forked from aultimus/gst_messages.c
PoC gstreamer prog that catches and handles forwarded multifilesink messages
#include <gst/gst.h>
// gcc gst_messages.c -g3 -o gst_messages `pkg-config --cflags --libs gstreamer-0.1`
static GMainLoop *loop;
static gboolean
my_bus_callback (GstBus *bus,
GstMessage *message,
gpointer data)
@rrcoco
rrcoco / gstreamer-recording-dynamic.c
Created June 22, 2021 11:06 — forked from crearo/gstreamer-recording-dynamic.c
Example of dynamic pipeline in Gstreamer (recording + display). Stop recording at will by hitting ctrl+c.
#include <string.h>
#include <gst/gst.h>
#include <signal.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
// v4l2src ! tee name=t t. ! x264enc ! mp4mux ! filesink location=/home/rish/Desktop/okay.264 t. ! videoconvert ! autovideosink
static GMainLoop *loop;
@rrcoco
rrcoco / Video Screen Capture with GStreamer.md
Created June 18, 2021 10:02 — forked from ShannonScott/Video Screen Capture with GStreamer.md
[Video Screen Capture with GStreamer] Capture a Linux desktop window video with gsteramer. #tags: gstreamer, linux, xwindows, video

Capture a video of a given X Window with gstreamer.

X Window ID

Get the target window ID with the following:

xwininfo