tictacsync 0.3a2__py3-none-any.whl → 0.3a3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of tictacsync might be problematic. Click here for more details.
- tictacsync/entry.py +3 -3
- tictacsync/timeline.py +30 -27
- {tictacsync-0.3a2.dist-info → tictacsync-0.3a3.dist-info}/METADATA +1 -1
- {tictacsync-0.3a2.dist-info → tictacsync-0.3a3.dist-info}/RECORD +8 -8
- {tictacsync-0.3a2.dist-info → tictacsync-0.3a3.dist-info}/LICENSE +0 -0
- {tictacsync-0.3a2.dist-info → tictacsync-0.3a3.dist-info}/WHEEL +0 -0
- {tictacsync-0.3a2.dist-info → tictacsync-0.3a3.dist-info}/entry_points.txt +0 -0
- {tictacsync-0.3a2.dist-info → tictacsync-0.3a3.dist-info}/top_level.txt +0 -0
tictacsync/entry.py
CHANGED
|
@@ -126,10 +126,10 @@ def main():
|
|
|
126
126
|
# logger.add(sys.stdout, filter="__main__")
|
|
127
127
|
# logger.add(sys.stdout, filter="device_scanner")
|
|
128
128
|
# logger.add(sys.stdout, filter="yaltc") _extract_sound_to_merge
|
|
129
|
-
|
|
129
|
+
logger.add(sys.stdout, filter=lambda r: r["function"] == "build_audio_and_write_video")
|
|
130
130
|
# logger.add(sys.stdout, filter=lambda r: r["function"] == "_get_audio_devices")
|
|
131
|
-
|
|
132
|
-
|
|
131
|
+
logger.add(sys.stdout, filter=lambda r: r["function"] == "_get_mix")
|
|
132
|
+
logger.add(sys.stdout, filter=lambda r: r["function"] == "_sox_mix")
|
|
133
133
|
top_dir = args.directory[0]
|
|
134
134
|
if os.path.isfile(top_dir):
|
|
135
135
|
file = top_dir
|
tictacsync/timeline.py
CHANGED
|
@@ -581,34 +581,37 @@ class AudioStitcherVideoMerger:
|
|
|
581
581
|
tracks. If not, mix all the tracks with sox.
|
|
582
582
|
|
|
583
583
|
"""
|
|
584
|
-
if device.tracks
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
sox_TTC_chan = device.tracks.rawtrx.index('ttc')
|
|
591
|
-
elif 'tc' in device.tracks.rawtrx:
|
|
592
|
-
sox_TTC_chan = device.tracks.rawtrx.index('tc')
|
|
593
|
-
else:
|
|
594
|
-
print('Error: no tc or ttc tag in track.txt')
|
|
595
|
-
sys.exit(1)
|
|
596
|
-
sox_TTC_chan += 1 # sox NZBIDX
|
|
597
|
-
logger.debug('TTC chan %i'%sox_TTC_chan)
|
|
598
|
-
# redo indexing since tracks.txt numbers refere to complete
|
|
599
|
-
# files and here audio file had TTC and muted channels
|
|
600
|
-
# removed.
|
|
601
|
-
shift = 0
|
|
602
|
-
if mix_tracks[0] > sox_TTC_chan:
|
|
603
|
-
shift += 1
|
|
604
|
-
for unused_tr in device.tracks.unused:
|
|
605
|
-
if mix_tracks[0] > unused_tr:
|
|
606
|
-
shift += 1
|
|
607
|
-
mix_tracks = [t-shift for t in mix_tracks]
|
|
608
|
-
logger.debug('new mix_tracks: %s'%mix_tracks)
|
|
609
|
-
return _sox_keep(multichan_tmpfl, mix_tracks)
|
|
610
|
-
else: # no tracks declaration, mix programmatically
|
|
584
|
+
if device.tracks is None:
|
|
585
|
+
logger.debug('no tracks.txt, mixing all')
|
|
586
|
+
return _sox_mix(_split_channels(multichan_tmpfl))
|
|
587
|
+
mix_tracks = device.tracks.mix
|
|
588
|
+
if mix_tracks == []:
|
|
589
|
+
logger.debug('tracks.txt present but no mix trx, mixing all')
|
|
611
590
|
return _sox_mix(_split_channels(multichan_tmpfl))
|
|
591
|
+
logger.debug('%s has mix %s'%(device.name, mix_tracks))
|
|
592
|
+
logger.debug('device %s'%device)
|
|
593
|
+
if 'ttc' in device.tracks.rawtrx:
|
|
594
|
+
sox_TTC_chan = device.tracks.rawtrx.index('ttc')
|
|
595
|
+
elif 'tc' in device.tracks.rawtrx:
|
|
596
|
+
sox_TTC_chan = device.tracks.rawtrx.index('tc')
|
|
597
|
+
else:
|
|
598
|
+
print('Error: no tc or ttc tag in track.txt')
|
|
599
|
+
sys.exit(1)
|
|
600
|
+
sox_TTC_chan += 1 # sox NZBIDX
|
|
601
|
+
logger.debug('TTC chan %i'%sox_TTC_chan)
|
|
602
|
+
# redo indexing since tracks.txt numbers refere to complete
|
|
603
|
+
# files and here audio file had TTC and muted channels
|
|
604
|
+
# removed.
|
|
605
|
+
shift = 0
|
|
606
|
+
if mix_tracks[0] > sox_TTC_chan:
|
|
607
|
+
shift += 1
|
|
608
|
+
for unused_tr in device.tracks.unused:
|
|
609
|
+
if mix_tracks[0] > unused_tr:
|
|
610
|
+
shift += 1
|
|
611
|
+
mix_tracks = [t-shift for t in mix_tracks]
|
|
612
|
+
logger.debug('new mix_tracks: %s'%mix_tracks)
|
|
613
|
+
return _sox_keep(multichan_tmpfl, mix_tracks)
|
|
614
|
+
|
|
612
615
|
|
|
613
616
|
def build_audio_and_write_video(self, top_dir, output_dir,
|
|
614
617
|
write_multicam_structure,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
tictacsync/LTCcheck.py,sha256=IEfpB_ZajWuRTWtqji0H-B2g7GQvWmGVjfT0Icumv7o,15704
|
|
2
2
|
tictacsync/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
3
3
|
tictacsync/device_scanner.py,sha256=-m2gd0XWXyJLNWfpLc_XQbMwFfNLJ4y3AmI4abz85W4,27558
|
|
4
|
-
tictacsync/entry.py,sha256=
|
|
4
|
+
tictacsync/entry.py,sha256=zyF8alGtJ57fmKm-_w1eCZber-T9VmeuKFL6yRyRofM,11385
|
|
5
5
|
tictacsync/multi2polywav.py,sha256=Zl5EP2Yf-PKiZ8ewRSwqWsDULvKKjeWANK_-Yd5RAg4,7279
|
|
6
6
|
tictacsync/remergemix.py,sha256=BUtZ8YHw5Oz8VseTD-A4imNbtF7h391pw5yyl6v6OG4,4885
|
|
7
7
|
tictacsync/synciso.py,sha256=XmUcdUF9rl4VdCm7XW4PeYWYWM0vgAY9dC2hapoul9g,4821
|
|
8
|
-
tictacsync/timeline.py,sha256=
|
|
8
|
+
tictacsync/timeline.py,sha256=Qy37vFmFsGDSVpEio3ts_TmGeD96868qfioIevhp92U,45925
|
|
9
9
|
tictacsync/yaltc.py,sha256=eGCDzp5aTF4zqFN4wNfiESXRnaHEXtQB-u13gYBf8g8,76810
|
|
10
|
-
tictacsync-0.
|
|
11
|
-
tictacsync-0.
|
|
12
|
-
tictacsync-0.
|
|
13
|
-
tictacsync-0.
|
|
14
|
-
tictacsync-0.
|
|
15
|
-
tictacsync-0.
|
|
10
|
+
tictacsync-0.3a3.dist-info/LICENSE,sha256=ZAOPXLh1zlQAnhHUd7oLslKM01YZ5UiAu3STYjwIxck,1068
|
|
11
|
+
tictacsync-0.3a3.dist-info/METADATA,sha256=RLwLKCbmVfO1A1dBZL-wdF9I4nHk2km0c5j05N9mTIY,5298
|
|
12
|
+
tictacsync-0.3a3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
|
|
13
|
+
tictacsync-0.3a3.dist-info/entry_points.txt,sha256=g3tdFFrVRcrKpuyKOCLUVBMgYfV65q9kpLZUOD_XCKg,139
|
|
14
|
+
tictacsync-0.3a3.dist-info/top_level.txt,sha256=eaCWG-BsYTRR-gLTJbK4RfcaXajr0gjQ6wG97MkGRrg,11
|
|
15
|
+
tictacsync-0.3a3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|