Skip to content

Commit 14ac8f9

Browse files
committed
ffplay and webp support
1 parent e1c8205 commit 14ac8f9

File tree

2 files changed

+23
-8
lines changed

2 files changed

+23
-8
lines changed

README.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,18 @@ The FFmpeg build script provides an easy way to build a static FFmpeg on **macOS
1313

1414
*Youtube: How-To build and install FFmpeg on MacOS*
1515

16-
## Disclaimer
16+
17+
## Disclaimer And Data Privacy Notice
18+
This script will download different packages from different sources which may track your usage. These sources are out of control
19+
by the developers of this script. By downloading and using this script you are fully aware of this.
20+
1721
Use this script at your own risk. I maintain this script in my spare time.
1822
Please do not file bug reports for systems other than Debian 10 and macOS 10.15.x
1923
because I don't have the resources and the time to maintain other systems.
2024

21-
2225
## Supported Codecs
23-
* `x264`: H.264 (MPEG-4 AVC)
24-
* `x265`: H.265 Video Codec
26+
* `x264`: H.264 Video Codec (MPEG-4 AVC)
27+
* `x265`: H.265 Video Codec (HEVC)
2528
* `aom`: AV1 Video Codec (Experimental and very slow!)
2629
* `fdk_aac`: Fraunhofer FDK AAC Codec
2730
* `xvidcore`: MPEG-4 video coding standard
@@ -32,6 +35,8 @@ because I don't have the resources and the time to maintain other systems.
3235
* `theora`: Free lossy video compression format
3336
* `opus`: Lossy audio coding format
3437
* `srt`: Secure Reliable Transport
38+
* `srt`: Secure Reliable Transport
39+
* `webp`: Image format both lossless and lossy
3540

3641
### HardwareAccel
3742
* `nv-codec`: [NVIDIA's GPU accelerated video codecs](https://devblogs.nvidia.com/nvidia-ffmpeg-transcoding-guide/). These encoders/decoders will only be available if a CUDA installation was found while building the binary. Follow [these](#Cuda-installation) instructions for installation. Supported codecs in nvcodec:
@@ -675,6 +680,7 @@ $ make install
675680
676681
Building done. The binary can be found here: /Users/me/dev/ffmpeg-build-script/workspace/bin/ffmpeg
677682
683+
678684
Install the binary to your /usr/local/bin folder? [Y/n] y
679685
Password:
680686
Done. ffmpeg is now installed to your system.

build-ffmpeg

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/bin/bash
22

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
45

56
PROGNAME=$(basename "$0")
6-
VERSION=1.19
7+
VERSION=1.20
78
CWD=$(pwd)
89
PACKAGES="$CWD/packages"
910
WORKSPACE="$CWD/workspace"
@@ -585,29 +586,37 @@ INSTALL_FOLDER="/usr/local/bin"
585586
fi
586587

587588
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+
589594
echo ""
590595

591596
if [[ "$AUTOINSTALL" == "yes" ]]; then
592597
if command_exists "sudo"; then
593598
sudo cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg"
594599
sudo cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/ffprobe"
600+
sudo cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/ffplay"
595601
echo "Done. FFmpeg is now installed to your system."
596602
else
597603
cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg"
598604
cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/ffprobe"
605+
sudo cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/ffplay"
599606
echo "Done. FFmpeg is now installed to your system."
600607
fi
601608
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
603610
case $response in
604611
[yY][eE][sS]|[yY])
605612
if command_exists "sudo"; then
606613
sudo cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg"
607614
sudo cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/ffprobe"
615+
sudo cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/ffplay"
608616
else
609617
cp "$WORKSPACE/bin/ffmpeg" "$INSTALL_FOLDER/ffmpeg"
610618
cp "$WORKSPACE/bin/ffprobe" "$INSTALL_FOLDER/ffprobe"
619+
cp "$WORKSPACE/bin/ffplay" "$INSTALL_FOLDER/ffplay"
611620
fi
612621
echo "Done. FFmpeg is now installed to your system."
613622
;;

0 commit comments

Comments
 (0)