tesla_dashcam icon indicating copy to clipboard operation
tesla_dashcam copied to clipboard

Unable to process with LAYOUT set to DIAMOND

Open GitHubGoody opened this issue 2 years ago • 13 comments

I'm trying to reprocess some videos using different layouts and other various settings, but when I hit enter, nothing happens. I've deleted the processed video and even tried to change the date in the filenames and folders of the sources videos, but that didn't work either.

I see there's a parameter to NOT reprocess, but how do I force reprocessing of the same source videos?

GitHubGoody avatar Aug 29 '21 23:08 GitHubGoody

Nothing happens at all? Nothing on screen? Can you run with —loglevel DEBUG

ehendrix23 avatar Aug 30 '21 01:08 ehendrix23

@ehendrix23 I isolated it to the Layout parameter I was playing with. When I change from any working layout (e.g. WIDESCREEN) to diamond (spelled like that and I've tried with and without CAPS), it doesn't process.

GitHubGoody avatar Sep 01 '21 20:09 GitHubGoody

Thx for the analysis.

Can you run it with --loglevel DEBUG so I can see the debug entries to determine what it is doing.

On my end running with DIAMOND worked, so need to understand what is going on.

Thx.

ehendrix23 avatar Sep 01 '21 23:09 ehendrix23

C:\Users\Adam>tesla_dashcam R:\Adam\Videos\TeslaCam\1-TeslaPi\SavedClips\2021-08-16_09-48-26 --output R:\Adam\Videos\TeslaCam\2-Processed --quality HIGH --font "\Users\Adam\tesla_dashcam\FONTS\TESLA.ttf" --fontcolor RED --fontsize 40 --layout DIAMOND --rear --motion_only --text_overlay_fmt {local_timestamp_rolling} --timestamp_format "%A, %B %d, %Y %H:%M:%S %p %Z" --loglevel DEBUG 2021-09-01 21:04:12,818:DEBUG: main Arguments : Namespace(background='black', chapter_offset=0, check_for_updates=False, clip_scale=None, compression='medium', delete_source=False, display_ts=False, end_offset=None, end_timestamp=None, exclude_subdirs=False, faststart=False, font='\\Users\\Adam\\tesla_dashcam\\FONTS\\TESLA.ttf', fontcolor='red', fontsize=40, fps=24, gpu_type=None, halign=None, include_beta=False, keep_events=False, keep_intermediate=False, layout='DIAMOND', loglevel='DEBUG', merge_timestamp_format='%Y-%m-%d_%H_%M', monitor=False, monitor_once=False, monitor_trigger=None, motion_only=True, no_check_for_updates=False, no_front=False, no_left=False, no_rear=False, no_right=False, no_timestamp=False, output='R:\Adam\Videos\TeslaCam\2-Processed', perspective=False, quality='HIGH', rear_or_mirror=0, sentry_offset=False, set_moviefile_timestamp='START', skip_existing=False, source=['R:\Adam\Videos\TeslaCam\1-TeslaPi\SavedClips\2021-08-16_09-48-26'], start_offset=None, start_timestamp=None, swap_frontrear=False, swap_leftright=None, system_notification=True, temp_dir=None, text_overlay_fmt='{local_timestamp_rolling}', timestamp_format='%A, %B %d, %Y %H:%M:%S %p %Z', title_screen_map=False, valign=None) 2021-09-01 21:04:12,818:DEBUG: main Platform is win32 2021-09-01 21:04:12,820:DEBUG: main Processor is Intel64 Family 6 Model 94 Stepping 3, GenuineIntel 2021-09-01 21:04:12,823:DEBUG: urllib3.connectionpool Starting new HTTPS connection (1): api.github.com:443 2021-09-01 21:04:12,989:DEBUG: urllib3.connectionpool https://api.github.com:443 "GET /repos/ehendrix23/tesla_dashcam/releases/latest HTTP/1.1" 200 997

GitHubGoody avatar Sep 02 '21 01:09 GitHubGoody

OK, even more weird right now. I just tried it with same settings as yours (except for --font) and no issues.

After you run it, can you execute echo $rc I want to see what the return code is.

ehendrix23 avatar Sep 22 '21 23:09 ehendrix23

Please re-open new issue if assistance is further required.

ehendrix23 avatar Nov 09 '21 22:11 ehendrix23

@ehendrix23 I have the latest build and just tried DIAMOND again. It's still not working for me. After attempting, I entered "echo $rc" and pressed ENTER. It returned $rc.

GitHubGoody avatar Dec 17 '21 19:12 GitHubGoody

Apologies, can you do, that should be it to get the return code on windows. echo %errorlevel%

ehendrix23 avatar Jan 13 '22 15:01 ehendrix23

@ehendrix23 It returned -1073741571

Is that helpful?

GitHubGoody avatar Feb 18 '22 13:02 GitHubGoody

@ehendrix23 Is there anything else I can do to help troubleshoot?

GitHubGoody avatar Mar 10 '22 19:03 GitHubGoody

Sorry, hadn’t had time yet. That return code is weird, my code definitely does not return that. I’ll have to look more in the code and see to add lines to get more information on where it pretty much just exists or crashes. Are you able to execute it as python code (not executable) or not comfortable with that? Trying to see if when I can need to supply custom binary or if you could grab the python code from here then and execute.

ehendrix23 avatar Mar 11 '22 03:03 ehendrix23

No problem ;-) I was just checking to make sure you didn't need anything else from me.

I just tried this again:

TeslaCam R:\Adam\Videos\TeslaCam\1-TeslaPi\SavedClips --output R:\Adam\Videos\TeslaCam\2-Processed --quality HIGH --font "\Users\Adam\tesla_dashcam\FONTS\TESLA.ttf" --fontcolor RED --fontsize 30 --layout DIAMOND --rear --motion_only --text_overlay_fmt "{event_reason} {event_city} {local_timestamp_rolling}" --timestamp_format "%A, %B %d, %Y %I:%M:%S %p %Z" --gpu --gpu_type nvidia

...and nothing happens still. Then I typed "echo %errorlevel%" and hit ENTER. It returned "-1073741571" again.

I'm willing to try whatever would help troubleshoot, but would probably need step-by-step instructions if it's not an executable.

GitHubGoody avatar Mar 11 '22 16:03 GitHubGoody

Summer came and went. What you provided from debug is your complete debug output correct?

Can you add --no-check_for_update parameter as well?

ehendrix23 avatar Nov 10 '22 00:11 ehendrix23