/// <summary> /// Initializes an instance of <see cref="MuxedStreamInfo"/>. /// </summary> public MuxedStreamInfo( int tag, string url, Container container, FileSize size, Bitrate bitrate, string audioCodec, string videoCodec, string videoQualityLabel, VideoQuality videoQuality, VideoResolution resolution, Framerate framerate) { Tag = tag; Url = url; Container = container; Size = size; Bitrate = bitrate; AudioCodec = audioCodec; VideoCodec = videoCodec; VideoQualityLabel = videoQualityLabel; VideoQuality = videoQuality; Resolution = resolution; Framerate = framerate; }
/// <inheritdoc /> public int CompareTo(VideoQuality other) { var maxHeightComparison = MaxHeight.CompareTo(other.MaxHeight); var framerateComparison = Framerate.CompareTo(other.Framerate); return(maxHeightComparison != 0 ? maxHeightComparison : framerateComparison); }
private void Awake() { if (instance != null && instance != this) { Destroy(this); } else { instance = this; DontDestroyOnLoad(this); } }
public override string BuildArguments() { string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture); return ("-y " + //Yes to override existing files $"-framerate {framerate} " + // Frmaerate in $"-i \"{InputFile}\" " + // Input File $"-r {framerate} " + // Framerate out "-vcodec libx264 -crf 0 " + $"\"{OutputFile}\""); }
public override string BuildArguments() { string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture); return ("-y " + //Yes to override existing files $"-ss {StartTimeSpan:hh\\:mm\\:ss\\.ff} " + // Starting Position $"-i \"{InputFile}\" " + // Input File $"-t {Duration:hh\\:mm\\:ss\\.ff} " + // Duration $"-r {framerate} " + "-vf " + // video filter parameters" + $"\"setpts=PTS-STARTPTS, hqdn3d=10, scale = {Width}:{Height}\" " + "-vcodec libx264 -crf 0 " + $"\"{OutputFile}\""); }
/// <summary> /// Initializes new Demo testbed. /// </summary> public DemoGame() { _graphics = new GraphicsDeviceManager(this); _content = new ContentManager(Services); //graphics.SynchronizeWithVerticalRetrace = false; IsMouseVisible = true; _camera = new Camera(this); _fps = new Framerate(this); _fps.UpdateFrequency = 100; Components.Add(_camera); Components.Add(_fps); ResetPhysics(); }
public static PluginsLoader GetInstance() { Config.GetInstance(); DrawGrid.GetInstance(); UICommandQueue.GetInstance().InitFromGlThread(); HeightMapPersistence.GetInstance(); SlopeMapPersistence.GetInstance(); MouseFilterSdlMouseCache.GetInstance(); KeyFilterSdlKeyCache.GetInstance(); KeyFilterConfigMappingsFactory.GetInstance(); MainUI.GetInstance(); HeightEditor.GetInstance(); Camera.GetInstance(); Framerate.GetInstance(); FrustrumCulling.GetInstance(); return(instance); }
public override string BuildArguments() { string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture); return ("-y " + //Yes to override existing files $"-ss {StartTimeSpan:hh\\:mm\\:ss\\.ff} " + // Starting Position $"-i \"{InputFile}\" " + // Input File $"-t {Duration:hh\\:mm\\:ss\\.ff} " + // Duration $"-r {framerate} " + "-vf " + // video filter parameters" + $"\"" + $"setpts=PTS-STARTPTS, hqdn3d=10" + (ClipLeft ? $", stereo3d=sbsl:ml" : "") + // de-3D // (DeLense ? $", lenscorrection=k1=0:k2=-0.33" : "") + (ClipLeft ? $", scale = {Width / 2}:{Height}" : $", scale = {Width}:{Height}") + "\" " + (ClipLeft ? "-metadata:s:v:0 stereo_mode=\"mono\" " : "") + //de-3D "-vcodec libx264 -crf 0 " + $"\"{OutputFile}\""); }
void OnGUI() { GUI.skin.label.normal.textColor = Color.white; GUI.Label(new Rect(16.0f, 0.0f, 128.0f, 24.0f), Framerate.Fps().ToString()); }
void Update() { //Ocean.AdjustPitch(); //Ocean.SetSoundPositionRelativeToViewer(); Framerate.Update(); }
public static void SetDefaultProjectFramerate(Framerate framerate) { defaultProjectFramerate = (int)framerate; }
public override string BuildArguments() { string framerate = Framerate.ToString("F2", CultureInfo.InvariantCulture); return($"-stats -y -r {framerate} -i \"{InputFile}\" -i \"{PaletteFile}\" -filter_complex paletteuse -plays 0 \"{OutputFile}\""); }