|
1 | 1 | #!/bin/bash |
2 | 2 |
|
3 | | -# https://github.com/markus-perl/ffmpeg-build-script |
| 3 | +# HOMEPAGE: https://github.com/markus-perl/ffmpeg-build-script |
| 4 | +# LICENSE: https://github.com/markus-perl/ffmpeg-build-script/blob/master/LICENSE |
4 | 5 |
|
5 | 6 | PROGNAME=$(basename "$0") |
6 | | -VERSION=1.19 |
| 7 | +VERSION=1.20 |
7 | 8 | CWD=$(pwd) |
8 | 9 | PACKAGES="$CWD/packages" |
9 | 10 | WORKSPACE="$CWD/workspace" |
@@ -585,29 +586,37 @@ INSTALL_FOLDER="/usr/local/bin" |
585 | 586 | fi |
586 | 587 |
|
587 | 588 | echo "" |
588 | | -echo "Building done. The binary can be found here: $WORKSPACE/bin/ffmpeg" |
| 589 | +echo "Building done. The following binaries can be found here:" |
| 590 | +echo "- ffmpeg: $WORKSPACE/bin/ffmpeg" |
| 591 | +echo "- ffprobe: $WORKSPACE/bin/ffprobe" |
| 592 | +echo "- ffplay: $WORKSPACE/bin/ffplay" |
| 593 | + |
589 | 594 | echo "" |
590 | 595 |
|
591 | 596 | if [[ "$AUTOINSTALL" == "yes" ]]; then |
592 | 597 | if command_exists "sudo"; then |
593 | 598 | sudo cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg" |
594 | 599 | sudo cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/ffprobe" |
| 600 | + sudo cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/ffplay" |
595 | 601 | echo "Done. FFmpeg is now installed to your system." |
596 | 602 | else |
597 | 603 | cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg" |
598 | 604 | cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/ffprobe" |
| 605 | + sudo cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/ffplay" |
599 | 606 | echo "Done. FFmpeg is now installed to your system." |
600 | 607 | fi |
601 | 608 | elif [[ ! "$SKIPINSTALL" == "yes" ]]; then |
602 | | - read -r -p "Install the binary to your $INSTALL_FOLDER folder? [Y/n] " response |
| 609 | + read -r -p "Install these binaries to your $INSTALL_FOLDER folder? Existing binaries will be replaced. [Y/n] " response |
603 | 610 | case $response in |
604 | 611 | [yY][eE][sS]|[yY]) |
605 | 612 | if command_exists "sudo"; then |
606 | 613 | sudo cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg" |
607 | 614 | sudo cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/ffprobe" |
| 615 | + sudo cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/ffplay" |
608 | 616 | else |
609 | 617 | cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg" |
610 | 618 | cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/ffprobe" |
| 619 | + cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/ffplay" |
611 | 620 | fi |
612 | 621 | echo "Done. FFmpeg is now installed to your system." |
613 | 622 | ;; |
|
0 commit comments