File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 11#!/bin/env python3
22
33import os
4+ import platform
45import argparse
56
67from funscript_editor .api import show_editor , generate_funscript
@@ -22,7 +23,7 @@ def main():
2223 if os .getcwd () not in os .environ ['PATH' ]:
2324 os .environ ['PATH' ] = os .getcwd () + os .sep + os .environ ['PATH' ]
2425
25- if os .path .abspath (__file__ ).startswith ("/nix" ):
26+ if platform . system (). lower (). startswith ( "linux" ) or os .path .abspath (__file__ ).startswith ("/nix" ):
2627 # pynput does not work well with native wayland so we use xwayland to get proper keyboard inputs
2728 if os .environ .get ('DISPLAY' ):
2829 print ("Warning: Force QT_QPA_PLATFORM=xcb for better user experience" )
Original file line number Diff line number Diff line change @@ -86,6 +86,7 @@ def __init__(self,
8686 self .params = params
8787 self .video_info = video_info
8888 self .tracking_points = {}
89+ self .projection_config = {'name' : 'None' , 'video_filter' : '' }
8990 self .score = {
9091 'x' : [],
9192 'y' : [],
@@ -513,6 +514,7 @@ def tracking(self) -> str:
513514 return "Could not extract first frame, please re-encode your video"
514515
515516 self .projection_config = self .ui .get_video_projection_config (first_frame , self .params .projection )
517+ print ("Use projection config:" , self .projection_config )
516518
517519 video = FFmpegStream (
518520 video_path = self .params .video_path ,
You can’t perform that action at this time.
0 commit comments