-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathscript.sh
More file actions
37 lines (33 loc) · 1019 Bytes
/
script.sh
File metadata and controls
37 lines (33 loc) · 1019 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
34
35
36
37
#!/bin/bash
#Generated by command builder 0.1
timestamp="$(date +%s)"
ffmpeg \
\
-re -fflags +genpts -stream_loop -1 -i testclip.mp4 \
\
-flags +global_header -r 30000/1001 \
\
-pix_fmt yuv420p \
-c:v h264 \
-b:v:0 2000K -s:v:0 1280x720 \
\
-c:a:0 aac -ar 48000 -b:a:0 96k \
\
-map 0:v:0 -map 0:a:0 \
-g:v 30 -keyint_min:v 30 -sc_threshold:v 0 \
-color_primaries bt709 -color_trc bt709 -colorspace bt709 \
-tune zerolatency \
\
-adaptation_sets "id=0,seg_duration=2.002,streams=v id=1,seg_duration=2.002,streams=a" \
-use_timeline 0 -streaming 1 -window_size 3 \
-frag_type every_frame -ldash 1 \
-utc_timing_url "https://time.akamai.com?iso&ms" \
-format_options "movflags=cmaf" \
-export_side_data prft \
-write_prft 1 \
-target_latency "3.0" \
-http_user_agent Akamai_Broadcaster_v1.0 -http_persistent 1 \
-media_seg_name "$timestamp"'/chunk-stream_$RepresentationID$-$Number%05d$.$ext$' \
-init_seg_name "$timestamp"'/init-stream$RepresentationID$.$ext$' \
-f dash \
# Add your entrypoint on the line above