Skip to content

Commit

Permalink
Add preference example files
Browse files Browse the repository at this point in the history
  • Loading branch information
ehendrix23 committed Oct 21, 2020
1 parent 7efff36 commit f41fee4
Show file tree
Hide file tree
Showing 8 changed files with 192 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Preference_Files/CROSS.txt
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
26 changes: 26 additions & 0 deletions Preference_Files/CROSS_PERSPECTIVE.txt
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
23 changes: 23 additions & 0 deletions Preference_Files/DIAMOND.txt
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
26 changes: 26 additions & 0 deletions Preference_Files/DIAMOND_PERSPECTIVE.txt
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
23 changes: 23 additions & 0 deletions Preference_Files/FULLSCREEN.txt
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
26 changes: 26 additions & 0 deletions Preference_Files/FULLSCREEN_REAR.txt
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
26 changes: 26 additions & 0 deletions Preference_Files/WIDESCREEN_REAR.txt
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
19 changes: 19 additions & 0 deletions RunPreferences.bash
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

0 comments on commit f41fee4

Please sign in to comment.