Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

specifying files doesn't seem to do anything #189

Open
marcone opened this issue Dec 17, 2021 · 1 comment
Open

specifying files doesn't seem to do anything #189

marcone opened this issue Dec 17, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@marcone
Copy link

marcone commented Dec 17, 2021

According to the built-in help I should be able to specify files: "Filenames can be provided as well to manage individual clips."
When I specify a list of files I see them being added to the list of files to process, however no output is generated:

$ ~/.local/bin/tesla_dashcam --no-timestamp --loglevel DEBUG --no-notification *.mp4
2021-12-17 14:11:06,567:DEBUG:  tesla_dashcam.tesla_dashcam     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, ffmpeg='ffmpeg', font='/usr/share/fonts/truetype/freefont/FreeSans.ttf', fontcolor='white', fontsize=None, fps=24, gpu_type=None, halign=None, include_beta=False, keep_events=False, keep_intermediate=False, layout='FULLSCREEN', loglevel='DEBUG', merge_timestamp_format='%Y-%m-%d_%H_%M', monitor=False, monitor_once=False, monitor_trigger=None, motion_only=False, no_check_for_updates=False, no_front=False, no_left=False, no_rear=False, no_right=False, no_timestamp=True, output='/home/marcone/Videos/Tesla_Dashcam/', perspective=False, quality='LOWER', rear_or_mirror=None, sentry_end_offset=None, sentry_offset=False, sentry_start_offset=None, set_moviefile_timestamp='START', skip_existing=False, source=['2021-12-13_11-29-36-back.mp4', '2021-12-13_11-29-36-front.mp4', '2021-12-13_11-29-36-left_repeater.mp4', '2021-12-13_11-29-36-right_repeater.mp4', '2021-12-13_11-30-37-back.mp4', '2021-12-13_11-30-37-front.mp4', '2021-12-13_11-30-37-left_repeater.mp4', '2021-12-13_11-30-37-right_repeater.mp4'], start_offset=None, start_timestamp=None, swap_frontrear=False, swap_leftright=None, system_notification=False, temp_dir=None, text_overlay_fmt='{local_timestamp_rolling}', timestamp_format='%x %X', title_screen_map=False, valign=None)
2021-12-17 14:11:06,568:DEBUG:  tesla_dashcam.tesla_dashcam     Platform is linux
2021-12-17 14:11:06,568:DEBUG:  tesla_dashcam.tesla_dashcam     Processor is x86_64
2021-12-17 14:11:06,569:DEBUG:  urllib3.connectionpool  Starting new HTTPS connection (1): api.github.com:443
2021-12-17 14:11:06,679:DEBUG:  urllib3.connectionpool  https://api.github.com:443 "GET /repos/ehendrix23/tesla_dashcam/releases/latest HTTP/1.1" 200 1313
2021-12-17 14:11:06,684:DEBUG:  tesla_dashcam.tesla_dashcam     Video Settings {'source_folder': ['2021-12-13_11-29-36-back.mp4', '2021-12-13_11-29-36-front.mp4', '2021-12-13_11-29-36-left_repeater.mp4', '2021-12-13_11-29-36-right_repeater.mp4', '2021-12-13_11-30-37-back.mp4', '2021-12-13_11-30-37-front.mp4', '2021-12-13_11-30-37-left_repeater.mp4', '2021-12-13_11-30-37-right_repeater.mp4'], 'exclude_subdirs': False, 'output': '/home/marcone/Videos/Tesla_Dashcam/', 'target_folder': '/home/marcone/Videos/Tesla_Dashcam', 'target_filename': None, 'temp_dir': None, 'run_type': 'RUN', 'merge_subdirs': False, 'merge_group_template': None, 'merge_timestamp_format': '%Y-%m-%d_%H_%M', 'chapter_offset': 0, 'movie_filename': None, 'set_moviefile_timestamp': 'START', 'keep_intermediate': False, 'keep_events': False, 'notification': False, 'movie_layout': 'FULLSCREEN', 'movie_speed': '', 'video_encoding': ['-c:v', 'libx264'], 'movie_encoding': 'x264', 'fps': 24, 'movie_compression': 'medium', 'movie_quality': 'LOWER', 'background': ';color=duration={duration}:s={width}x{height}:c=black, fps=24 ', 'ffmpeg_exec': 'ffmpeg', 'ffmpeg_hwdev': [], 'ffmpeg_hwout': [], 'base': 'color=duration={duration}:s=1920x960:c=black, fps=24 [base]', 'video_layout': <tesla_dashcam.tesla_dashcam.FullScreen object at 0x7f89bec6fc10>, 'clip_positions': ';[base][left] overlay=eof_action=pass:repeatlast=0:x=0:y=480 [left1];[left1][front] overlay=eof_action=pass:repeatlast=0:x=640:y=0 [front1];[front1][right] overlay=eof_action=pass:repeatlast=0:x=1280:y=480 [right1];[right1][rear] overlay=eof_action=pass:repeatlast=0:x=640:y=480 [rear1]', 'ffmpeg_text_overlay': '', 'text_overlay_format': '{local_timestamp_rolling}', 'timestamp_format': '%x %X', 'ffmpeg_speed': '', 'ffmpeg_motiononly': '', 'ffmpeg_hwupload': '', 'movflags_faststart': True, 'input_clip': 'rear1', 'other_params': ['-preset', 'medium', '-crf', '28', '-c:v', 'libx264'], 'left_camera': 'setpts=PTS-STARTPTS, scale=640x480 , hflip [left]', 'front_camera': 'setpts=PTS-STARTPTS, scale=640x480  [front]', 'right_camera': 'setpts=PTS-STARTPTS, scale=640x480 , hflip [right]', 'rear_camera': 'setpts=PTS-STARTPTS, scale=640x480 , hflip [rear]', 'start_timestamp': None, 'end_timestamp': None, 'start_offset': None, 'end_offset': None, 'sentry_start_offset': None, 'sentry_end_offset': None, 'sentry_offset': False, 'skip_existing': False}
2021-12-17 14:11:06,684:DEBUG:  tesla_dashcam.tesla_dashcam     Layout Settings <tesla_dashcam.tesla_dashcam.FullScreen object at 0x7f89bec6fc10>
2021-12-17 14:11:06,684:DEBUG:  tesla_dashcam.tesla_dashcam     video_settings attribute movie_filename set to 2021-12-17_14_11.
2021-12-17 14:11:06,684:DEBUG:  tesla_dashcam.tesla_dashcam     Determining all the folders to scan for video files
2021-12-17 14:11:06,684:DEBUG:  tesla_dashcam.tesla_dashcam     Processing provided source path 2021-12-13_11-29-36-back.mp4.
2021-12-17 14:11:06,685:DEBUG:  tesla_dashcam.tesla_dashcam     Processing 2021-12-13_11-29-36-back.mp4.
2021-12-17 14:11:06,685:DEBUG:  tesla_dashcam.tesla_dashcam     Processing provided source path 2021-12-13_11-29-36-front.mp4.
2021-12-17 14:11:06,685:DEBUG:  tesla_dashcam.tesla_dashcam     Processing 2021-12-13_11-29-36-front.mp4.
2021-12-17 14:11:06,685:DEBUG:  tesla_dashcam.tesla_dashcam     Processing provided source path 2021-12-13_11-29-36-left_repeater.mp4.
2021-12-17 14:11:06,685:DEBUG:  tesla_dashcam.tesla_dashcam     Processing 2021-12-13_11-29-36-left_repeater.mp4.
2021-12-17 14:11:06,686:DEBUG:  tesla_dashcam.tesla_dashcam     Processing provided source path 2021-12-13_11-29-36-right_repeater.mp4.
2021-12-17 14:11:06,686:DEBUG:  tesla_dashcam.tesla_dashcam     Processing 2021-12-13_11-29-36-right_repeater.mp4.
2021-12-17 14:11:06,686:DEBUG:  tesla_dashcam.tesla_dashcam     Processing provided source path 2021-12-13_11-30-37-back.mp4.
2021-12-17 14:11:06,686:DEBUG:  tesla_dashcam.tesla_dashcam     Processing 2021-12-13_11-30-37-back.mp4.
2021-12-17 14:11:06,686:DEBUG:  tesla_dashcam.tesla_dashcam     Processing provided source path 2021-12-13_11-30-37-front.mp4.
2021-12-17 14:11:06,686:DEBUG:  tesla_dashcam.tesla_dashcam     Processing 2021-12-13_11-30-37-front.mp4.
2021-12-17 14:11:06,687:DEBUG:  tesla_dashcam.tesla_dashcam     Processing provided source path 2021-12-13_11-30-37-left_repeater.mp4.
2021-12-17 14:11:06,687:DEBUG:  tesla_dashcam.tesla_dashcam     Processing 2021-12-13_11-30-37-left_repeater.mp4.
2021-12-17 14:11:06,687:DEBUG:  tesla_dashcam.tesla_dashcam     Processing provided source path 2021-12-13_11-30-37-right_repeater.mp4.
2021-12-17 14:11:06,687:DEBUG:  tesla_dashcam.tesla_dashcam     Processing 2021-12-13_11-30-37-right_repeater.mp4.
Scanning 8 folder(s)
2021-12-17 14:11:06,687:DEBUG:  tesla_dashcam.tesla_dashcam     Adding video file 2021-12-13_11-29-36-back.mp4.
2021-12-17 14:11:06,772:DEBUG:  tesla_dashcam.tesla_dashcam     Adding video file 2021-12-13_11-29-36-front.mp4.
2021-12-17 14:11:06,838:DEBUG:  tesla_dashcam.tesla_dashcam     Adding video file 2021-12-13_11-29-36-left_repeater.mp4.
2021-12-17 14:11:06,906:DEBUG:  tesla_dashcam.tesla_dashcam     Adding video file 2021-12-13_11-29-36-right_repeater.mp4.
2021-12-17 14:11:06,974:DEBUG:  tesla_dashcam.tesla_dashcam     Adding video file 2021-12-13_11-30-37-back.mp4.
2021-12-17 14:11:07,054:DEBUG:  tesla_dashcam.tesla_dashcam     Adding video file 2021-12-13_11-30-37-front.mp4.
2021-12-17 14:11:07,120:DEBUG:  tesla_dashcam.tesla_dashcam     Adding video file 2021-12-13_11-30-37-left_repeater.mp4.
2021-12-17 14:11:07,182:DEBUG:  tesla_dashcam.tesla_dashcam     Adding video file 2021-12-13_11-30-37-right_repeater.mp4.
2021-12-17 14:11:07,244:DEBUG:  tesla_dashcam.tesla_dashcam     8 folders contain clips.
There are 8 event folder(s) with 0 clips to process.
All folders have been processed, resulting movie files are located in /home/marcone/Videos/Tesla_Dashcam
Total processing time: 0:00:00

When instead of specifying the files I specify the folder they are in, it works as expected.

@ehendrix23 ehendrix23 added the bug Something isn't working label Nov 10, 2022
@ehendrix23
Copy link
Owner

Will look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants