diff --git a/public/videos/to-compress/video-compress.sh b/public/videos/to-compress/video-compress.sh index 383c6ff..8eb3f01 100755 --- a/public/videos/to-compress/video-compress.sh +++ b/public/videos/to-compress/video-compress.sh @@ -27,12 +27,12 @@ process_videos() { # Run the ffmpeg command ffmpeg -i "$input_file" \ -filter_complex "[0:v]split=3[vid0][vid1][vid2]; \ - [vid0]scale=360x180[b0]; \ - [vid1]scale=360x180[b1]; \ - [vid2]scale=360x180[b2]" \ - -map "[b0]" -profile:v:0 baseline -level:v:0 3.0 -g 48 -keyint_min 48 \ - -map "[b1]" -profile:v:1 main -level:v:1 3.1 -g 48 -keyint_min 48 \ - -map "[b2]" -profile:v:2 high -level:v:2 4.0 -g 48 -keyint_min 48 \ + [vid0]scale=640x360[b0]; \ + [vid1]scale=842x480[b1]; \ + [vid2]scale=1280x720[b2]" \ + -map "[b0]" -b:v:0 800k -c:v:0 libx264 -profile:v:0 baseline -level:v:0 3.0 -g 48 -keyint_min 48 \ + -map "[b1]" -b:v:1 1400k -c:v:1 libx264 -profile:v:1 main -level:v:1 3.1 -g 48 -keyint_min 48 \ + -map "[b2]" -b:v:2 3000k -c:v:2 libx264 -profile:v:2 high -level:v:2 4.0 -g 48 -keyint_min 48 \ -an \ -f hls -hls_time 4 -hls_flags split_by_time \ -master_pl_name "$master_playlist_name" \ diff --git a/src/components/energy/section-4/index.tsx b/src/components/energy/section-4/index.tsx index 73246de..0335b2a 100644 --- a/src/components/energy/section-4/index.tsx +++ b/src/components/energy/section-4/index.tsx @@ -77,7 +77,12 @@ export default function Section4() {