Skip to content

Instantly share code, notes, and snippets.

View ikriz's full-sized avatar
👨‍💻
Coding Magic

Kristen ikriz

👨‍💻
Coding Magic
View GitHub Profile
cvlc /home/ullaakut/Downloads/dummy.jpg -I dummy \
--sout-keep --no-drop-late-frames --no-skip-frames \
--image-duration 9999 \
--sout="#transcode{vcodec=h264,fps=15,venc=x264{preset=ultrafast,tune=zerolatency,keyint=30,bframes=0,ref=1,level=30,profile=baseline,hrd=cbr,crf=20,ratetol=1.0,vbv-maxrate=1200,vbv-bufsize=1200,lookahead=0}}:rtp{sdp=rtsp://:8554/live.sdp}" \
--sout-all
@ikriz
ikriz / gist:5e36e9acf5eab77202156c85af9d61f5
Created September 11, 2020 09:59
Unity Hub Commandline Help
Commands:
editors
description: list the releases and installed editors
alias: e
example: Unity\ Hub.app/Contents/MacOS/Unity\ Hub -- --headless editors -r
options:
[default] list of available releases and installed editors on your machine combined
--releases|-r only list of available releases promoted by Unity
--installed|-i only list of installed editors on your machine
@ikriz
ikriz / Display.RelativeMouseAt.cs
Last active October 8, 2020 11:39 — forked from karljj1/Display.RelativeMouseAt.cs
Emulate multiple display input using GameViews
Vector3 RelativeMouseAt()
{
var mouseOverWindow = EditorWindow.mouseOverWindow;
System.Reflection.Assembly assembly = typeof(UnityEditor.EditorWindow).Assembly;
Type type = assembly.GetType("UnityEditor.PlayModeView");
int displayID = 0;
if (type.IsInstanceOfType(mouseOverWindow))
{
var displayField = type.GetField("m_TargetDisplay", BindingFlags.NonPublic | BindingFlags.Instance);