| 56 |
56 |
"""
|
| 57 |
57 |
Class attributes are default.
|
| 58 |
58 |
"""
|
| 59 |
|
# Default values
|
| 60 |
|
negotiation_port = 17446 # receiving TCP (SIC) messages on it.
|
| 61 |
|
smtpserver = "smtp.sat.qc.ca"
|
| 62 |
|
email_info = "scenic@sat.qc.ca"
|
| 63 |
|
audio_source = "jackaudiosrc"
|
| 64 |
|
audio_sink = "jackaudiosink"
|
| 65 |
|
audio_codec = "raw"
|
| 66 |
|
audio_channels = 2
|
| 67 |
|
video_source = "v4l2src"
|
| 68 |
|
video_device = "/dev/video0"
|
| 69 |
|
video_deinterlace = False
|
| 70 |
|
video_input = 0
|
| 71 |
|
video_standard = "ntsc"
|
| 72 |
|
video_sink = "xvimagesink"
|
| 73 |
|
video_codec = "mpeg4"
|
| 74 |
|
video_display = ":0.0"
|
| 75 |
|
video_fullscreen = False
|
| 76 |
|
video_capture_size = "640x480"
|
| 77 |
|
#video_window_size = "640x480"
|
| 78 |
|
video_aspect_ratio = "4:3"
|
| 79 |
|
confirm_quit = True
|
| 80 |
|
theme = "Darklooks"
|
| 81 |
|
#video_bitrate = 3000000
|
| 82 |
|
video_bitrate = 3.0
|
| 83 |
|
video_jitterbuffer = 75
|
| 84 |
59 |
|
| 85 |
60 |
def __init__(self):
|
| 86 |
|
config_file = 'scenic.cfg'
|
| 87 |
|
config_dir = os.environ['HOME'] + '/.scenic'
|
|
61 |
# Default values
|
|
62 |
self.negotiation_port = 17446 # receiving TCP (SIC) messages on it.
|
|
63 |
self.smtpserver = "smtp.sat.qc.ca"
|
|
64 |
self.email_info = "scenic@sat.qc.ca"
|
|
65 |
self.audio_source = "jackaudiosrc"
|
|
66 |
self.audio_sink = "jackaudiosink"
|
|
67 |
self.audio_codec = "raw"
|
|
68 |
self.audio_channels = 2
|
|
69 |
self.video_source = "v4l2src"
|
|
70 |
self.video_device = "/dev/video0"
|
|
71 |
self.video_deinterlace = False
|
|
72 |
self.video_input = 0
|
|
73 |
self.video_standard = "ntsc"
|
|
74 |
self.video_sink = "xvimagesink"
|
|
75 |
self.video_codec = "mpeg4"
|
|
76 |
self.video_display = ":0.0"
|
|
77 |
self.video_fullscreen = False
|
|
78 |
self.video_capture_size = "640x480"
|
|
79 |
#video_window_size = "640x480"
|
|
80 |
self.video_aspect_ratio = "4:3"
|
|
81 |
self.confirm_quit = True
|
|
82 |
self.theme = "Darklooks"
|
|
83 |
self.video_bitrate = 3.0
|
|
84 |
self.video_jitterbuffer = 75
|
|
85 |
|
|
86 |
config_file = 'configuration.json'
|
|
87 |
config_dir = os.path.expanduser("~/.scenic")
|
| 88 |
88 |
config_file_path = os.path.join(config_dir, config_file)
|
| 89 |
89 |
saving.ConfigStateSaving.__init__(self, config_file_path)
|
| 90 |
90 |
|