This file contains 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
# For all snippets, check documentation for details and settings. | |
# encode video from a V4L2 device, using specified settings. | |
# x265 worked somewhat better here and produced less skips (although uses 10x CPU compared to x264) | |
ffmpeg -f video4linux2 -framerate 30 -input_format mjpeg -video_size 1920x1080 -i /dev/video6 -c:v libx265 -preset ultrafast -c:a none -crf 20 out.mp4 | |
# Convert a raw YUYV422 frame from my USB "microscope" to PNG: | |
# other valid pixel formats are e.g. rgb24 or yuv420p | |
ffmpeg -f rawvideo -video_size 2592x1944 -pixel_format yuyv422 -i input_yuyv422_2592x1944.dat -f image2 output.png |
This file contains 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 | |
# origin: https://github.com/matrix-org/synapse/issues/2964#issuecomment-376869097 | |
logger "$0 started." | |
HOMEBASE="http://localhost" | |
ADMIN="@admin:matrix.example.org" | |
DBNAME="synapse" |
This file contains 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
// vim: set ts=2 sw=2: | |
var express = require('express'); | |
var http = require('http'); | |
var url = require('url'); | |
var xml2json = require('xml2json'); | |
var slideshare = require('./slideshare'); | |
var app = express.createServer(); |