1
Fork 0
mirror of https://github.com/Steffo99/config-fish.git synced 2024-12-23 07:14:22 +00:00
config-fish/functions/video-telegram.fish

8 lines
297 B
Fish
Raw Normal View History

2024-08-21 19:59:02 +00:00
which docker --skip-functions >/dev/null 2>/dev/null
if [ $status -eq 0 ]
function video-telegram
2024-09-02 23:29:03 +00:00
log-t "Converting" "$argv[1]" "to chat optimized format..."
2024-08-21 19:59:02 +00:00
ffmpeg -i "$argv[1]" -filter:v 'scale=480:-1' -c:v 'h264_nvenc' -c:a 'copy' -crf '29' "$argv[1].crf29.mp4"
end
2024-08-21 09:45:18 +00:00
end