-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprocess.sh
More file actions
33 lines (25 loc) · 834 Bytes
/
process.sh
File metadata and controls
33 lines (25 loc) · 834 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
set -e
echo "Downloading Video from : $INPUT_URL"
curl -o input.mp4 "$INPUT_URL"
# Creating a Output Dirctory to store processed ffmpeg stuff.
echo "Creating Output Dircetory.."
mkdir outputs
echo "Running ffmpeg processing...."
ffmpeg -loglevel verbose -i input.mp4 \
-codec:v libx264 \
-codec:a aac \
-hls_time 10 \
-hls_playlist_type vod \
-hls_segment_filename "outputs/segment%03d.ts" \
-start_number 0 \
outputs/index.m3u8
echo "Processing Complete..."
# run a node.js file to upload the segment files to final S3Bucket.
echo "Running a Upload_TO_S3_Service..."
echo "Running a Upload_TO_S3_Service..."
echo "Running a Upload_TO_S3_Service..."
echo "Running a Upload_TO_S3_Service..."
echo "Running a Upload_TO_S3_Service..."
node dist/index.js
# tail -f /dev/null , some time testing Purpose.