Skip to content

Commit

Permalink
Disable Marker Auto Trim Marks
Browse files Browse the repository at this point in the history
  • Loading branch information
papr committed Nov 8, 2017
1 parent d363a88 commit e1cd728
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions pupil_src/launchables/player.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def player(rec_dir, ipc_pub_url, ipc_sub_url,
from seek_control import Seek_Control
from video_export_launcher import Video_Export_Launcher
from offline_surface_tracker import Offline_Surface_Tracker
from marker_auto_trim_marks import Marker_Auto_Trim_Marks
# from marker_auto_trim_marks import Marker_Auto_Trim_Marks
from fixation_detector import Offline_Fixation_Detector
from batch_exporter import Batch_Exporter
from log_display import Log_Display
Expand All @@ -111,7 +111,7 @@ def player(rec_dir, ipc_pub_url, ipc_sub_url,
Vis_Cross, Vis_Watermark, Vis_Eye_Video_Overlay, Vis_Scan_Path,
Offline_Fixation_Detector,
Video_Export_Launcher, Offline_Surface_Tracker, Raw_Data_Exporter,
Batch_Exporter, Annotation_Player, Log_History, Marker_Auto_Trim_Marks,
Batch_Exporter, Annotation_Player, Log_History,
Pupil_From_Recording, Offline_Pupil_Detection, Gaze_From_Recording,
Offline_Calibration] + runtime_plugins

Expand Down
5 changes: 3 additions & 2 deletions pupil_src/shared_modules/batch_exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def __init__(self, g_pool):
self.exports = []
self.new_exports = []
self.active_exports = []
default_path = os.path.expanduser('~/')
default_path = os.path.expanduser('~/work/pupil/recordings/demo')
self.destination_dir = default_path
self.source_dir = default_path

Expand Down Expand Up @@ -187,7 +187,8 @@ def recent_events(self, events):
logger.info("starting new job")
if self.active_exports:
self.workers[i] = self.active_exports.pop(0)
self.workers[i].start()
if not self.workers[i].is_alive():
self.workers[i].start()
else:
self.run = False

Expand Down
6 changes: 3 additions & 3 deletions pupil_src/shared_modules/exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def export(should_terminate, frames_to_export, current_frame, rec_dir, user_dir,
start_frame=None, end_frame=None, plugin_initializers=(), out_file_path=None, pre_computed={}):

logger = logging.getLogger(__name__+' with pid: '+str(os.getpid()))
logger.info('Starting video export with pid: {}'.format(os.getpid()))
print('Starting video export with pid: {}'.format(os.getpid()))

try:
update_recording_to_recent(rec_dir)
Expand Down Expand Up @@ -194,11 +194,11 @@ def export(should_terminate, frames_to_export, current_frame, rec_dir, user_dir,
effective_fps = float(current_frame.value)/duration

result = "Export done: Exported {} frames to {}. This took {} seconds. Exporter ran at {} frames per second."
logger.info(result.format(current_frame.value, out_file_path, duration, effective_fps))
print(result.format(current_frame.value, out_file_path, duration, effective_fps))

except:
from time import sleep
import traceback
trace = traceback.format_exc()
logger.error('Process Export (pid: {}) crashed with trace:\n{}'.format(os.getpid(), trace))
print('Process Export (pid: {}) crashed with trace:\n{}'.format(os.getpid(), trace))
sleep(1.0)

0 comments on commit e1cd728

Please sign in to comment.