[chronojump] video raw->System. assigned deviceID
- From: Xavier de Blas <xaviblas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chronojump] video raw->System. assigned deviceID
- Date: Mon, 22 Apr 2013 19:52:13 +0000 (UTC)
commit 0090c3f609af6dad8986293d0e87f14a9d23202d
Author: Xavier de Blas <xaviblas gmail com>
Date: Mon Apr 22 21:51:35 2013 +0200
video raw->System. assigned deviceID
CesarPlayer/Common/Enum.cs | 6 ++++--
CesarPlayer/Gui/CapturerBin.cs | 3 ++-
src/gui/chronojump.cs | 16 +++++++++++++++-
src/gui/person.cs | 3 ++-
4 files changed, 23 insertions(+), 5 deletions(-)
---
diff --git a/CesarPlayer/Common/Enum.cs b/CesarPlayer/Common/Enum.cs
index 4dc78af..546b5af 100644
--- a/CesarPlayer/Common/Enum.cs
+++ b/CesarPlayer/Common/Enum.cs
@@ -163,7 +163,9 @@ namespace LongoMatch.Video.Common
public enum CaptureSourceType {
None,
DV,
- Raw,
- DShow
+ //Raw,
+ //DShow
+ System,
+ URI,
}
}
diff --git a/CesarPlayer/Gui/CapturerBin.cs b/CesarPlayer/Gui/CapturerBin.cs
index 47f64b7..6136679 100644
--- a/CesarPlayer/Gui/CapturerBin.cs
+++ b/CesarPlayer/Gui/CapturerBin.cs
@@ -62,7 +62,8 @@ namespace LongoMatch.Gui
captureProps.AudioEncoder = AudioEncoderType.Aac;
captureProps.Muxer = VideoMuxerType.Mp4;
captureProps.OutputFile = "";
- captureProps.CaptureSourceType = CaptureSourceType.Raw;
+ //captureProps.CaptureSourceType = CaptureSourceType.Raw;
+ captureProps.CaptureSourceType = CaptureSourceType.System;
Type = CapturerType.Fake;
}
diff --git a/src/gui/chronojump.cs b/src/gui/chronojump.cs
index 4c0b2f6..8779a85 100644
--- a/src/gui/chronojump.cs
+++ b/src/gui/chronojump.cs
@@ -27,9 +27,11 @@ using System.IO.Ports;
using Mono.Unix;
using System.IO; //"File" things
using System.Collections; //ArrayList
+using System.Collections.Generic; //List
using LongoMatch.Gui;
using LongoMatch.Video.Capturer;
using LongoMatch.Video.Common;
+using LongoMatch.Video.Utils;
public partial class ChronoJumpWindow
{
@@ -2799,9 +2801,21 @@ public partial class ChronoJumpWindow
s.VideoBitrate = 1000;
s.AudioBitrate = 128;
- s.CaptureSourceType = CaptureSourceType.Raw;
+ //s.CaptureSourceType = CaptureSourceType.Raw;
+ //s.CaptureSourceType = CaptureSourceType.DV;
+ s.CaptureSourceType = CaptureSourceType.System;
s.Width = 360;
s.Height = 288;
+
+ List<LongoMatch.Video.Utils.Device> devices =
LongoMatch.Video.Utils.Device.ListVideoDevices();
+ foreach(LongoMatch.Video.Utils.Device dev in devices){
+ Log.WriteLine(dev.ID.ToString());
+ Log.WriteLine(dev.IDProperty.ToString());
+ Log.WriteLine(dev.DeviceType.ToString());
+ }
+
+ s.DeviceID = devices[0].ID;
+
capturer.CaptureProperties = s;
diff --git a/src/gui/person.cs b/src/gui/person.cs
index 5469977..4c0b08c 100644
--- a/src/gui/person.cs
+++ b/src/gui/person.cs
@@ -995,7 +995,8 @@ public class PersonAddModifyWindow
capturer = new CapturerBin();
CapturePropertiesStruct s = new CapturePropertiesStruct();
- s.CaptureSourceType = CaptureSourceType.Raw;
+ //s.CaptureSourceType = CaptureSourceType.Raw;
+ s.CaptureSourceType = CaptureSourceType.System;
capturer.CaptureProperties = s;
capturer.Type = CapturerType.Snapshot;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]