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
| import tkinter as tk | |
| from tkVideoPlayer import TkinterVideo | |
| from ffmpeg import FFmpeg, Progress | |
| import os | |
| import sys | |
| import argparse | |
| parser = argparse.ArgumentParser(description="Crop a video") | |
| parser.add_argument("video", metavar="video", type=str, help="video file to crop") | |
| args = parser.parse_args() |
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
| # Convert the video to a 480x GIF @ x2 speed | |
| file1=$(basename -- "$1") | |
| dir=$(dirname "$1") | |
| file1="${file1%.*}" | |
| /usr/local/bin/ffmpeg -hide_banner -loglevel panic -i "$1" -filter_complex "[0:v] scale=w='min(480,iw)':h=-1,fps=8,setpts=(1/2)*PTS, split [a][b]; [a] palettegen [p]; [b][p] paletteuse" -y "$dir/$file1.gif" |
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
| from selenium import webdriver | |
| from selenium.webdriver.common.by import By | |
| from selenium.webdriver.support.ui import WebDriverWait | |
| from selenium.webdriver.support import expected_conditions as EC | |
| import logging | |
| import os | |
| import sys | |
| import argparse | |
| import urllib.parse |
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
| # pip install cyndilib opencv-python | |
| import cv2 | |
| from cyndilib.wrapper.ndi_recv import RecvColorFormat, RecvBandwidth | |
| from cyndilib.finder import Finder | |
| from cyndilib.receiver import Receiver | |
| from cyndilib.video_frame import VideoFrameSync | |
| finder = Finder() | |
| # Create a Receiver without a source |
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
| from PyQt6.QtCore import QObject, QThread, pyqtSignal, Qt, QTimer | |
| from PyQt6.QtWidgets import QGraphicsView, QGraphicsScene, QGraphicsPixmapItem, QApplication | |
| from PyQt6.QtGui import QImage, QPixmap | |
| import cv2 | |
| import time | |
| class CameraWorker(QObject): | |
| frameCaptured = pyqtSignal(object) # Emit frame data | |
| def __init__(self, camera_index=0): |
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
| extern "C" { | |
| #include <libavformat/avformat.h> | |
| #include <libavcodec/avcodec.h> | |
| #include <libavutil/frame.h> | |
| #include <libavutil/mem.h> | |
| #include <libavutil/opt.h> | |
| #include <libswresample/swresample.h> | |
| } | |
| #include <iostream> |
OlderNewer