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

linux issue #39

Closed
j450h1 opened this issue Jun 4, 2019 · 1 comment
Closed

linux issue #39

j450h1 opened this issue Jun 4, 2019 · 1 comment

Comments

@j450h1
Copy link

j450h1 commented Jun 4, 2019

python3 "tesla_dashcam/tesla_dashcam/tesla_dashcam.py"

Traceback (most recent call last):
  File "tesla_dashcam/tesla_dashcam/tesla_dashcam.py", line 2251, in <module>
    sys.exit(main())
  File "tesla_dashcam/tesla_dashcam/tesla_dashcam.py", line 1441, in main
    ffmpeg_default = resource_path(FFMPEG.get(sys.platform, 'ffmpeg'))
  File "tesla_dashcam/tesla_dashcam/tesla_dashcam.py", line 1374, in resource_path
    return os.path.join(base_path, relative_path)
  File "/usr/lib/python3.5/posixpath.py", line 89, in join
    genericpath._check_arg_types('join', a, *p)
  File "/usr/lib/python3.5/genericpath.py", line 143, in _check_arg_types
    (funcname, s.__class__.__name__)) from None
TypeError: join() argument must be str or bytes, not 'PosixPath'
ehendrix23 added a commit that referenced this issue Jul 29, 2019
* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented
@ehendrix23
Copy link
Owner

Release 0.1.11 should fix this issue.

ehendrix23 added a commit that referenced this issue Aug 20, 2019
* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release
ehendrix23 added a commit that referenced this issue Sep 26, 2019
* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13
ehendrix23 added a commit that referenced this issue Sep 26, 2019
* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13
ehendrix23 added a commit that referenced this issue Sep 27, 2019
* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13
ehendrix23 added a commit that referenced this issue Oct 1, 2019
* Release 0.1.13 (#72) (#73)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Provide more clarity with font file and ffmpeg

* Cleanup

* Release 0.1.13 (#72) (#75)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Updates for fixing if font file exist

* rear cam filename fix (#76)

* Fix missing python-dateutil with PIP install

* Fix missing fonts in Docker image (#79)

* Add tzdata package to allow for specifying the timezone used for the timestamps

* Add fonts-freefont-ttf package so the required font is available for the timestamps

* Set version to 0.1.15

* Fix for multiple source with MONITOR or MONITOR_ONCE

* Reduce motion sensitivity
ehendrix23 added a commit that referenced this issue Oct 1, 2019
* Release 0.1.13 (#72) (#73)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Provide more clarity with font file and ffmpeg

* Cleanup

* Release 0.1.13 (#72) (#75)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Updates for fixing if font file exist

* rear cam filename fix (#76)

* Fix missing python-dateutil with PIP install

* Fix missing fonts in Docker image (#79)

* Add tzdata package to allow for specifying the timezone used for the timestamps

* Add fonts-freefont-ttf package so the required font is available for the timestamps

* Set version to 0.1.15

* Fix for multiple source with MONITOR or MONITOR_ONCE

* Reduce motion sensitivity

* Remove print
ehendrix23 added a commit that referenced this issue Nov 15, 2019
* Release 0.1.13 (#72) (#73)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Provide more clarity with font file and ffmpeg

* Cleanup

* Release 0.1.13 (#72) (#75)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Updates for fixing if font file exist

* rear cam filename fix (#76)

* Fix missing python-dateutil with PIP install

* Fix missing fonts in Docker image (#79)

* Add tzdata package to allow for specifying the timezone used for the timestamps

* Add fonts-freefont-ttf package so the required font is available for the timestamps

* Set version to 0.1.15

* Fix for multiple source with MONITOR or MONITOR_ONCE

* Reduce motion sensitivity

* Remove print

* Fix defaults for rear, mirror, swap

Set defaults for mirror (when front is shown), rear (when front is not shown), and swap (swap when rear, not when mirror).

* Change download link to latest

* updating text since there are now 4 cameras (#83)

* fix for example value when setting marker (#84)

* Layout improvements

Options to scale each clip
Option to set background color
Allow float for changing speed
Swap left&right for rear viewing, not for mirror

* Fix issue swap left/rear; add swapp front/rear

* Updated readme with new option --swap_frontrear

* Fixes etc..

-) Fixed issue with swapping cameras
-) Moved font items into Font class
-) Fixed errors with getattr
-) Centered front camera in FullScreen
-) Made all camera override methods private
-) Fixed font alignment in Diamond layout
-) Allow scale to be resolution as well

* Support spaces and comments in parameter file

Support comments and spaces in parameter file.

* PEP cleanup

PEP cleanup

* Add fps

* Use --scale for all scaling

* Re-organized help, added optional debug logging

Re-organized parameter help output by grouping it.
Added --loglevel for debug data

* Beta 0.1.16.1

* Fixes for grouping checks

* Arial unicode for MacOS

* Improved message for missing font on Linux

* Only run if main

Only run if main and not imported.

* Update README

* Few more debug lines

* Fix H.265/HEVC encoding with Intel GPU (#98)

* Update README.rst

* Clean-up README

* Release 0.1.16
ehendrix23 added a commit that referenced this issue Nov 15, 2019
* Release 0.1.13 (#72) (#73)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Provide more clarity with font file and ffmpeg

* Cleanup

* Release 0.1.13 (#72) (#75)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Updates for fixing if font file exist

* rear cam filename fix (#76)

* Fix missing python-dateutil with PIP install

* Fix missing fonts in Docker image (#79)

* Add tzdata package to allow for specifying the timezone used for the timestamps

* Add fonts-freefont-ttf package so the required font is available for the timestamps

* Set version to 0.1.15

* Fix for multiple source with MONITOR or MONITOR_ONCE

* Reduce motion sensitivity

* Remove print

* Fix defaults for rear, mirror, swap

Set defaults for mirror (when front is shown), rear (when front is not shown), and swap (swap when rear, not when mirror).

* Change download link to latest

* updating text since there are now 4 cameras (#83)

* fix for example value when setting marker (#84)

* Layout improvements

Options to scale each clip
Option to set background color
Allow float for changing speed
Swap left&right for rear viewing, not for mirror

* Fix issue swap left/rear; add swapp front/rear

* Updated readme with new option --swap_frontrear

* Fixes etc..

-) Fixed issue with swapping cameras
-) Moved font items into Font class
-) Fixed errors with getattr
-) Centered front camera in FullScreen
-) Made all camera override methods private
-) Fixed font alignment in Diamond layout
-) Allow scale to be resolution as well

* Support spaces and comments in parameter file

Support comments and spaces in parameter file.

* PEP cleanup

PEP cleanup

* Add fps

* Use --scale for all scaling

* Re-organized help, added optional debug logging

Re-organized parameter help output by grouping it.
Added --loglevel for debug data

* Beta 0.1.16.1

* Fixes for grouping checks

* Arial unicode for MacOS

* Improved message for missing font on Linux

* Only run if main

Only run if main and not imported.

* Update README

* Few more debug lines

* Fix H.265/HEVC encoding with Intel GPU (#98)

* Update README.rst

* Clean-up README

* Release 0.1.16
ehendrix23 added a commit that referenced this issue Nov 15, 2019
* Release 0.1.13 (#72) (#73)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Provide more clarity with font file and ffmpeg

* Cleanup

* Release 0.1.13 (#72) (#75)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Updates for fixing if font file exist

* rear cam filename fix (#76)

* Fix missing python-dateutil with PIP install

* Fix missing fonts in Docker image (#79)

* Add tzdata package to allow for specifying the timezone used for the timestamps

* Add fonts-freefont-ttf package so the required font is available for the timestamps

* Set version to 0.1.15

* Fix for multiple source with MONITOR or MONITOR_ONCE

* Reduce motion sensitivity

* Remove print

* Fix defaults for rear, mirror, swap

Set defaults for mirror (when front is shown), rear (when front is not shown), and swap (swap when rear, not when mirror).

* Change download link to latest

* updating text since there are now 4 cameras (#83)

* fix for example value when setting marker (#84)

* Layout improvements

Options to scale each clip
Option to set background color
Allow float for changing speed
Swap left&right for rear viewing, not for mirror

* Fix issue swap left/rear; add swapp front/rear

* Updated readme with new option --swap_frontrear

* Fixes etc..

-) Fixed issue with swapping cameras
-) Moved font items into Font class
-) Fixed errors with getattr
-) Centered front camera in FullScreen
-) Made all camera override methods private
-) Fixed font alignment in Diamond layout
-) Allow scale to be resolution as well

* Support spaces and comments in parameter file

Support comments and spaces in parameter file.

* PEP cleanup

PEP cleanup

* Add fps

* Use --scale for all scaling

* Re-organized help, added optional debug logging

Re-organized parameter help output by grouping it.
Added --loglevel for debug data

* Beta 0.1.16.1

* Fixes for grouping checks

* Arial unicode for MacOS

* Improved message for missing font on Linux

* Only run if main

Only run if main and not imported.

* Update README

* Few more debug lines

* Fix H.265/HEVC encoding with Intel GPU (#98)

* Update README.rst

* Clean-up README

* Release 0.1.16

* Release 0.1.16 (#103) (#104)

* Release 0.1.13 (#72) (#73)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Provide more clarity with font file and ffmpeg

* Cleanup

* Release 0.1.13 (#72) (#75)

* Temp exe

* Updated temporary exe file

* Delete tesla_dashcam_190b3.exe

* Fix check release

* Updated README with initial 0.1.10 and additional TODO

Updated README with items already in progress for 0.1.10

Added items to TODO list

* Fix running tesla_dashcam when installed with pip

* Updated README with additional items done for next release

* Initial set of updates for 0.1.10.

* Timestamp sorting fix

* Added Chapter Markers in To-Do list

* Made behaviour for single folder same as multiple

Made behaviour for single folder discovered same as multiple.

* --delete_souce now also for execution without --monitor

* Updated README and reorged 0.1.10 items a bit

* Fix deleting foldr file if name same as clip name

* Exclude ffmpeg.exe

* Default output folder, change in folder filename

Added default output folder
Changed folder filename to <Start_Timestamp>_<End_Timestamp>
Source is optional now

* Set Python version to 3.7 only

* Updated readme for 0.1.10

Finished updating readme

* Set version to 0.1.10

* Fixed metadata issue

Fixed if all 3 files of a timestamp are corrupt
Ensured that video_timestamp is dateformat if timestamp was retrieved from filename instead of clip.

* Fixed issue if camera file was missing

Fixed an issue if a camera file was missing.
Removed now unused MOVIE_LAYOUT dictionary

* Release 0.1.10

* Fixed traceback issue for ffmpeg (#39)

* Added option to test distribution with TestPyPi

* Version change to 0.1.11

* Updated README

Added 2 fixes for 0.1.11
Added option to crop videos in TODO section

* Fixed output folder issues

* Missing piece for PyPi

Figured out missing piece allowing easy execution from PyPi.

* Updated links to executables

* Removed DIAGONAL as it is not implemented

* Formatting update with Black

Formatting update with Black

* Fix for folder deletion with empty files

Fix for issue #40 where folders would not be deleted if there are 0-byte or corrupt files within the folder

* Fixed --output with filename issue

Fixed issue #52  with --output when providing a filename

* Changed concat for movie creation

Changed how to concatenate the clips in create_movie resulting in massive performance improvement.

* Updated README for create_movie

Updated readme for create_movie performance improvement

* Add chapter markers

Concatenated video files now will have chapter markers. Folder level will have chapters for each clip, merged will have chapters for each folder

* removed single clip exception

Removed single clip exception for creating movie as we now add chapters in it as well hence need to process.

* Add flags -movstart and +faststart

Added flags -movstart and +faststart to movies (not clips) created

* Updated README

* Version change to 0.1.12 beta 0

* Further fix for output argument

Further fix for output argument to determine what was provided.

* Fix chapter settings when video speed is adjusted

Chapter settings were not taking into consideration that clips were sped-up or slowed-down.

* Fix issue 54 (win10toast notifier)

Potential fix for issue 54

* Missed something

* Fix traceback with invalid output path

* Trigger file or folder and few fixes

Option to provide a trigger file or folder for monitoring.
Fix for sub-dir scanning
Fix for nothing being processed if . was provided as source.

* Cosmetic fixes

* Added chapter offset & movie filename fix

Added optional chapter offset for merged video file.
Fix for moviefile when output filename is provided on monitor

* Beta version 0.1.12.2

* Fix typo in new version check output (#56)

* Update README

* Final prep of README for 0.1.12

* Cleanup

* Fixes for chapter and deletion with corruptio files

Fix for chapter of 1st clip
Fix for deletion of files & folders with corrupt files.

* Fix oopsie

* Fix if file does not have timestamp

Fix if fiel does not have timestamp for issue introduced with fixing deletion of corrupt/empty files

* Added durations of resulting movie to print out

* Version to 0.1.12 for release

* Updates from Black

* Check if font file exist

Check if font file (provided or default) exist and if not return error. This to prevent errors during ffmpeg execution.

* Merged movie filename default to current date/time

Set the default filename for merged video to current date/time instead of just the folder name

* Check ffmpeg exist

Check that executable ffmpeg exist and can be called before executing.

* Check Python version

Check to make sure Python version is minimum required

* Fix merge video using relative path

Fix error for merging videos when providing a relative path for --output.

* New option --gpu_type

New option --gpu_type to identify GPU in system (NVIDIA or Intel).

* Add ability to exclude cameras

New options to exclude certain cameras from the output

* Option --no-faststart

New option --no-faststart to not set faststart flag as it can result in issues on network shares

* --start_timestamp, --end_timestamp, --start_offset, --end_offset

New parameters --start_timestamp, --end_timestamp, --start_offset, --end_offset to restrict based on timestamps and do offsets.

* Fixed issue with --gpu_type

Fixed issue with --gpu_type

* Raspberry Pi H.264 encoding support

Add support for H.264 GPU encoding for Raspberry Pi.

* Metadata fix for missing files

Fix issue in collecting metadata when some of the camera files are missing

* Ignore hidden files in folder

Ignore any potential hidden files (Linux/Mac) within folder. For example hidden file created by already opening some of the video files in another program.

* Update README.rst

* Fix for timestamps

Logic for filtering on the timestamps was incorrect

* Rear camera, new layouts, temp_dir

Support for rear camera in V10
New layouts CROSS and DIAMOND
--perspective option to allow perspective in every layout
temp_dir option
Add SentryClips folder to source if none provided

* solving #69 - shorten video (#70)

* Commenting lines out that cause Issue #68

* Added support for `--shorten` command to resolve Issue #69

* Update Readme for --shorten

Formatting updates.

* Update to --motion_only and --skip_existing

Update to --motion_only
New skip_existing

* Small change to metadata

* Version 0.1.13

Version 0.1.13

* Updates for fixing if font file exist

* rear cam filename fix (#76)

* Fix missing python-dateutil with PIP install

* Fix missing fonts in Docker image (#79)

* Add tzdata package to allow for specifying the timezone used for the timestamps

* Add fonts-freefont-ttf package so the required font is available for the timestamps

* Set version to 0.1.15

* Fix for multiple source with MONITOR or MONITOR_ONCE

* Reduce motion sensitivity

* Remove print

* Fix defaults for rear, mirror, swap

Set defaults for mirror (when front is shown), rear (when front is not shown), and swap (swap when rear, not when mirror).

* Change download link to latest

* updating text since there are now 4 cameras (#83)

* fix for example value when setting marker (#84)

* Layout improvements

Options to scale each clip
Option to set background color
Allow float for changing speed
Swap left&right for rear viewing, not for mirror

* Fix issue swap left/rear; add swapp front/rear

* Updated readme with new option --swap_frontrear

* Fixes etc..

-) Fixed issue with swapping cameras
-) Moved font items into Font class
-) Fixed errors with getattr
-) Centered front camera in FullScreen
-) Made all camera override methods private
-) Fixed font alignment in Diamond layout
-) Allow scale to be resolution as well

* Support spaces and comments in parameter file

Support comments and spaces in parameter file.

* PEP cleanup

PEP cleanup

* Add fps

* Use --scale for all scaling

* Re-organized help, added optional debug logging

Re-organized parameter help output by grouping it.
Added --loglevel for debug data

* Beta 0.1.16.1

* Fixes for grouping checks

* Arial unicode for MacOS

* Improved message for missing font on Linux

* Only run if main

Only run if main and not imported.

* Update README

* Few more debug lines

* Fix H.265/HEVC encoding with Intel GPU (#98)

* Update README.rst

* Clean-up README

* Release 0.1.16

* Final version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants