Capture a video of a given X Window with gstreamer.
xwininfo| // 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 |
| #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) |
| #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; |