diff --git a/video_tools/1_download.bash b/video_tools/1_download.bash new file mode 100755 index 0000000..c51e1e3 --- /dev/null +++ b/video_tools/1_download.bash @@ -0,0 +1,2 @@ +#!/bin/bash +youtube-dl -f "worstvideo+worstaudio/hls-193/hls-194/hls-196/hls-192/hls-195/hls-208/mpd-1/worst" -i -o "%(upload_date)s-%(title)s-%(id)s.%(ext)s" $1 diff --git a/video_tools/2_encode_320.bash b/video_tools/2_encode_320.bash new file mode 100755 index 0000000..91379d7 --- /dev/null +++ b/video_tools/2_encode_320.bash @@ -0,0 +1,6 @@ +#!/bin/bash +# youtube-dl -f "worst" -o "%(upload_date)s-%(title)s-%(id)s.%(ext)s" $1 +#ffmpeg -i $1 -vcodec libx264 -vb 100K -s 320x240 -acodec libmp3lame -ab 16K $1.mkv +#ffmpeg -i $1 -vcodec libxvid -vb 100K -s 320x240 -acodec libmp3lame -ab 16K $1.mkv +#ffmpeg -i $1 -vcodec copy -acodec libopus -ab 20k -strict -2 $1_new.mp4 +ffmpeg -i "$1" -vcodec libx264 -vb 100K -s 320x240 -acodec libopus -ab 20k -strict -2 "$1_320.mp4" diff --git a/video_tools/3_encode_640.bash b/video_tools/3_encode_640.bash new file mode 100755 index 0000000..f5538d2 --- /dev/null +++ b/video_tools/3_encode_640.bash @@ -0,0 +1,6 @@ +#!/bin/bash +# youtube-dl -f "worst" -o "%(upload_date)s-%(title)s-%(id)s.%(ext)s" $1 +#ffmpeg -i $1 -vcodec libx264 -vb 100K -s 320x240 -acodec libmp3lame -ab 16K $1.mkv +#ffmpeg -i $1 -vcodec libxvid -vb 100K -s 320x240 -acodec libmp3lame -ab 16K $1.mkv +#ffmpeg -i $1 -vcodec copy -acodec libopus -ab 20k -strict -2 $1_new.mp4 +ffmpeg -i "$1" -vcodec libx264 -vb 500K -s 640x480 -acodec libopus -ab 20k -strict -2 "$1_640.mp4"