-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7efff36
commit f41fee4
Showing
8 changed files
with
192 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Execute using: | ||
# tesla_dashcam <Location of video files> --output <Location to store encoded video files> @CROSS.txt | ||
|
||
# Skip if encoded file already exist. | ||
--skip_existing | ||
|
||
# Delete processed files when video file is encoded. | ||
# --delete_source | ||
|
||
# CROSS Layout | ||
--layout CROSS | ||
|
||
# Put clip info bottom left | ||
--halign LEFT --valign BOTTOM | ||
|
||
# Output city and rolling timestamp | ||
--text_overlay_fmt "City: {event_city} Date/Time: {local_timestamp_rolling}" | ||
|
||
# Fast forward through portions where there is no motion detected | ||
--motion_only | ||
|
||
# Encode with x265 | ||
--encoding x265 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Execute using: | ||
# tesla_dashcam <Location of video files> --output <Location to store encoded video files> @CROSS_PERSPECTIVE.txt | ||
|
||
# Skip if encoded file already exist. | ||
--skip_existing | ||
|
||
# Delete processed files when video file is encoded. | ||
# --delete_source | ||
|
||
# CROSS Layout | ||
--layout CROSS | ||
|
||
# Left and Right cameras in perspective | ||
--perspective | ||
|
||
# Put clip info bottom left | ||
--halign LEFT --valign BOTTOM | ||
|
||
# Output city and rolling timestamp | ||
--text_overlay_fmt "City: {event_city} Date/Time: {local_timestamp_rolling}" | ||
|
||
# Fast forward through portions where there is no motion detected | ||
--motion_only | ||
|
||
# Encode with x265 | ||
--encoding x265 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Execute using: | ||
# tesla_dashcam <Location of video files> --output <Location to store encoded video files> @DIAMOND.txt | ||
|
||
# Skip if encoded file already exist. | ||
--skip_existing | ||
|
||
# Delete processed files when video file is encoded. | ||
# --delete_source | ||
|
||
# DIAMOND Layout | ||
--layout DIAMOND | ||
|
||
# Put clip info top right | ||
--halign RIGHT --valign TOP | ||
|
||
# Output city and timestamp | ||
--text_overlay_fmt "City: {event_city}\nDate/Time: {local_timestamp}" | ||
|
||
# Fast forward through portions where there is no motion detected | ||
--motion_only | ||
|
||
# Encode with x265 | ||
--encoding x265 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Execute using: | ||
# tesla_dashcam <Location of video files> --output <Location to store encoded video files> @DIAMOND_PERSPECTIVE.txt | ||
|
||
# Skip if encoded file already exist. | ||
--skip_existing | ||
|
||
# Delete processed files when video file is encoded. | ||
# --delete_source | ||
|
||
# DIAMOND Layout | ||
--layout DIAMOND | ||
|
||
# Left and Right cameras in perspective | ||
--perspective | ||
|
||
# Put clip info top right | ||
--halign RIGHT --valign TOP | ||
|
||
# Output city and timestamp | ||
--text_overlay_fmt "City: {event_city}\nDate/Time: {local_timestamp}" | ||
|
||
# Fast forward through portions where there is no motion detected | ||
--motion_only | ||
|
||
# Encode with x265 | ||
--encoding x265 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Execute using: | ||
# tesla_dashcam <Location of video files> --output <Location to store encoded video files> @FULLSCREEN.txt | ||
|
||
# Skip if encoded file already exist. | ||
--skip_existing | ||
|
||
# Delete processed files when video file is encoded. | ||
# --delete_source | ||
|
||
# FULLSCREEN Layout | ||
--layout FULLSCREEN | ||
|
||
# Put clip info in upper left | ||
--halign LEFT --valign TOP | ||
|
||
# Output reason for save, city, and rolling timestamp (each on new line) | ||
--text_overlay_fmt "Saved Reason: {event_reason}\nCity: {event_city}\nDate/Time: {local_timestamp_rolling}" | ||
|
||
# Fast forward through portions where there is no motion detected | ||
--motion_only | ||
|
||
# Encode with x265 | ||
--encoding x265 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Execute using: | ||
# tesla_dashcam <Location of video files> --output <Location to store encoded video files> @FULLSCREEN_REAR.txt | ||
|
||
# Skip if encoded file already exist. | ||
--skip_existing | ||
|
||
# Delete processed files when video file is encoded. | ||
# --delete_source | ||
|
||
# FULLSCREEN Layout | ||
--layout FULLSCREEN | ||
|
||
# Show left & right cameras as looking backwards instead of through a mirror | ||
--rear | ||
|
||
# Put clip info in upper left | ||
--halign LEFT --valign TOP | ||
|
||
# Output reason for save, city, and rolling timestamp (each on new line) | ||
--text_overlay_fmt "Saved Reason: {event_reason}\nCity: {event_city}\nDate/Time: {local_timestamp_rolling}" | ||
|
||
# Fast forward through portions where there is no motion detected | ||
--motion_only | ||
|
||
# Encode with x265 | ||
--encoding x265 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Execute using: | ||
# tesla_dashcam <Location of video files> --output <Location to store encoded video files> @WIDESCREEN_REAR.txt | ||
|
||
# Skip if encoded file already exist. | ||
--skip_existing | ||
|
||
# Delete processed files when video file is encoded. | ||
# --delete_source | ||
|
||
# WIDESCREEN Layout | ||
--layout WIDESCREEN | ||
|
||
# Show left & right cameras as looking backwards instead of through a mirror | ||
--rear | ||
|
||
# Put clip info bottom center | ||
--halign CENTER --valign BOTTOM | ||
|
||
# Output only rolling timestamp | ||
--text_overlay_fmt "Date/Time: {local_timestamp_rolling}" | ||
|
||
# Fast forward through portions where there is no motion detected | ||
--motion_only | ||
|
||
# Encode with x265 | ||
--encoding x265 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
Command="python /Users/ehendrix/Documents_local/GitHub/tesla_dashcam/tesla_dashcam/tesla_dashcam.py" | ||
# InputFolder="/Volumes/TeslaCam/TeslaCam/SavedClips" | ||
InputFolder="/Volumes/TeslaCam/TeslaCam/SentryClips/2020-09-19_*" | ||
OutputFolder="/Volumes/SD Card" | ||
PreferenceFolder="/Users/ehendrix/Documents_local/GitHub/tesla_dashcam/Preference_Files" | ||
|
||
for preferencefile in ${PreferenceFolder}/*; do | ||
filename="${preferencefile##*/}" | ||
folder=${filename%%.*} | ||
echo "Using Preference File ${filename}" | ||
if [ ! -d "${OutputFolder}/${folder}" ]; then | ||
mkdir "${OutputFolder}/${folder}" | ||
fi | ||
${Command} "${InputFolder}" --loglevel DEBUG --output "${OutputFolder}/${folder}" @${preferencefile} | ||
exit | ||
done | ||
|