Skip to content

Commit 865bc5b

Browse files
authored
Add files via upload
1 parent 25e6a7e commit 865bc5b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

DashCamPipeline.sh

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,14 @@ FileType=${1:-"mp4"}
2222
now=$(date +"%m_%d_%Y__%H%M")
2323

2424
# ---------------------------------------------------------------------------------------
25-
echo -e "Removing Audio..."
25+
echo -e "\nRemoving Audio..."
2626
cd 1.Do
2727
for f in *.$FileType; do
28+
echo -n '*'
2829
ffmpeg -i $PWD/$f -vcodec copy -an ../2.NoAudio/$f 2>> ../logs/$now.log
2930
done
3031
ELAPSED_TIME=$(($SECONDS - $START_TIME))
31-
echo -e "\t-Done in $(($ELAPSED_TIME/60)) min $(($ELAPSED_TIME%60)) sec\n\n"
32+
echo -e "\n\t-Done in $(($ELAPSED_TIME/60)) min $(($ELAPSED_TIME%60)) sec\n\n"
3233
START_TIME=$SECONDS
3334

3435

@@ -37,14 +38,14 @@ cd ../2.NoAudio/
3738

3839
for f in *.$FileType; do
3940
# for audio and Video
40-
# ffmpeg -i $PWD/$f -r 75 -filter_complex "[0:v]setpts=0.5*PTS[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]" ../3.fast/$f
41+
# ffmpeg -i $PWD/$f -r $NewFrameRate -filter_complex "[0:v]setpts=$speed*PTS[v];[0:a]atempo=2.0[a]" -map "[v]" -map "[a]" ../3.Fast/$f 2>> ../logs/$now.log
4142

4243
#only for video:
43-
44+
echo -n '*'
4445
ffmpeg -i $PWD/$f -r $NewFrameRate -filter:v "setpts=$speed*PTS" ../3.Fast/$f 2>> ../logs/$now.log
4546
done
4647
ELAPSED_TIME=$(($SECONDS - $START_TIME))
47-
echo -e "\t-Done in $(($ELAPSED_TIME/60)) min $(($ELAPSED_TIME%60)) sec\n\n"
48+
echo -e "\n\t-Done in $(($ELAPSED_TIME/60)) min $(($ELAPSED_TIME%60)) sec\n\n"
4849
START_TIME=$SECONDS
4950

5051
echo -e "Concatinate all..."

0 commit comments

Comments
 (0)