tictacsync 0.3a1__tar.gz → 0.3a3__tar.gz
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-0.3a1/tictacsync.egg-info → tictacsync-0.3a3}/PKG-INFO +1 -1
- {tictacsync-0.3a1 → tictacsync-0.3a3}/setup.py +1 -1
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync/entry.py +3 -3
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync/timeline.py +33 -29
- {tictacsync-0.3a1 → tictacsync-0.3a3/tictacsync.egg-info}/PKG-INFO +1 -1
- {tictacsync-0.3a1 → tictacsync-0.3a3}/LICENSE +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/README.md +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/setup.cfg +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync/__init__.py +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync/device_scanner.py +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync/multi2polywav.py +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync/remergemix.py +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync/yaltc.py +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync.egg-info/SOURCES.txt +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync.egg-info/dependency_links.txt +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync.egg-info/entry_points.txt +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync.egg-info/not-zip-safe +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync.egg-info/requires.txt +0 -0
- {tictacsync-0.3a1 → tictacsync-0.3a3}/tictacsync.egg-info/top_level.txt +0 -0
|
@@ -31,7 +31,7 @@ setup(
|
|
|
31
31
|
'multi2polywav = tictacsync.multi2polywav:main',
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
|
-
version = '0.
|
|
34
|
+
version = '0.3a3',
|
|
35
35
|
description = "command for syncing audio video recordings",
|
|
36
36
|
long_description_content_type='text/markdown',
|
|
37
37
|
long_description = long_descr,
|
|
@@ -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
|
|
@@ -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
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
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')
|
|
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,
|
|
@@ -687,7 +690,8 @@ class AudioStitcherVideoMerger:
|
|
|
687
690
|
mixes = [self._get_mix(device, multi_chan_audio)
|
|
688
691
|
for device, multi_chan_audio
|
|
689
692
|
in merged_audio_files_by_device]
|
|
690
|
-
logger.debug('
|
|
693
|
+
logger.debug('there are %i dev mixes'%len(mixes))
|
|
694
|
+
logger.debug('mixes %s'%mixes)
|
|
691
695
|
dev_mixes_mix = _sox_mix(mixes)
|
|
692
696
|
# dev_mixes_mix = _sox_combine([audio for _, audio
|
|
693
697
|
# in merged_audio_files_by_device]) # all devices
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|