Compare commits
3 commits
793da444ad
...
e221626191
Author | SHA1 | Date | |
---|---|---|---|
e221626191 | |||
9021131e8d | |||
44bd62897c |
3 changed files with 10 additions and 3 deletions
|
@ -28,7 +28,8 @@ CONFIG = {
|
||||||
"sub_border_color": "0.0/0.0/0.0/0.75",
|
"sub_border_color": "0.0/0.0/0.0/0.75",
|
||||||
"sub_margin": 2 * 36 + 6,
|
"sub_margin": 2 * 36 + 6,
|
||||||
"sub_spacing": 0,
|
"sub_spacing": 0,
|
||||||
"vf": None
|
"vf": None,
|
||||||
|
"sync_group": None,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -277,6 +278,8 @@ class Sync(Thread):
|
||||||
"%0.4f %s"
|
"%0.4f %s"
|
||||||
% (self.mpv.time_pos, self.mpv.playlist_current_pos)
|
% (self.mpv.time_pos, self.mpv.playlist_current_pos)
|
||||||
).encode()
|
).encode()
|
||||||
|
if CONFIG.get("sync_group"):
|
||||||
|
msg = (b"%s " % CONFIG["sync_group"]) + msg
|
||||||
except:
|
except:
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
|
@ -307,6 +310,11 @@ class Sync(Thread):
|
||||||
except OSError:
|
except OSError:
|
||||||
logger.error("socket closed")
|
logger.error("socket closed")
|
||||||
else:
|
else:
|
||||||
|
if CONFIG.get("sync_group"):
|
||||||
|
if data[0] != str(CONFIG["sync_group"]):
|
||||||
|
return self.read_position_main()
|
||||||
|
else:
|
||||||
|
data = data[1:]
|
||||||
self._last_ping = data[0]
|
self._last_ping = data[0]
|
||||||
if data[0] == "pause":
|
if data[0] == "pause":
|
||||||
self.is_paused = True
|
self.is_paused = True
|
||||||
|
|
|
@ -552,7 +552,7 @@ def render_all(options):
|
||||||
shutil.move(fragment_prefix / "front-5.1.mp4", fragment_prefix / "front.mp4")
|
shutil.move(fragment_prefix / "front-5.1.mp4", fragment_prefix / "front.mp4")
|
||||||
for fn in (
|
for fn in (
|
||||||
"audio-5.1.mp4",
|
"audio-5.1.mp4",
|
||||||
"audio-center.wav", "audio-rear.wav", "audio-center.wav",
|
"audio-center.wav", "audio-rear.wav",
|
||||||
"audio-front.wav", "audio-back.wav", "back-audio.mp4",
|
"audio-front.wav", "audio-back.wav", "back-audio.mp4",
|
||||||
"fl.wav", "fr.wav", "fc.wav", "lfe.wav", "bl.wav", "br.wav",
|
"fl.wav", "fr.wav", "fc.wav", "lfe.wav", "bl.wav", "br.wav",
|
||||||
):
|
):
|
||||||
|
|
|
@ -554,7 +554,6 @@ class KDEnliveProject:
|
||||||
] + value)
|
] + value)
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
def properties(self, *props):
|
def properties(self, *props):
|
||||||
return [
|
return [
|
||||||
self.get_element("property", attrib={"name": name}, text=str(value) if value is not None else value)
|
self.get_element("property", attrib={"name": name}, text=str(value) if value is not None else value)
|
||||||
|
|
Loading…
Reference in a new issue