File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Filter options
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Original file line number Diff line number Diff line change @@ -58,23 +58,23 @@ Installation
58
58
59
59
Open your command line and run (needs curl to be installed):
60
60
61
- ```
62
- bash <(curl -s https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1)
61
+ ``` bash
62
+ bash <( curl -s " https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install.sh?v1" )
63
63
```
64
64
This command downloads the build script and automatically starts the build process.
65
65
66
66
### Common installation
67
67
68
- ```
68
+ ``` bash
69
69
git clone https://github.com/markus-perl/ffmpeg-build-script.git
70
70
cd ffmpeg-build-script
71
- ./ffmpeg- build-script --help
71
+ ./build-ffmpeg --help
72
72
```
73
73
74
74
Usage
75
75
------
76
76
77
- ```
77
+ ``` bash
78
78
./build-ffmpeg --help Display usage information
79
79
./build-ffmpeg --build Starts the build process
80
80
./build-ffmpeg --cleanup Remove all working dirs
Original file line number Diff line number Diff line change @@ -384,7 +384,13 @@ echo "Building done. The binary can be found here: $WORKSPACE/bin/ffmpeg"
384
384
echo " "
385
385
386
386
387
- if [[ ! $SKIPINSTALL == " yes" ]]; then
387
+ if [[ $AUTOINSTALL == " yes" ]]; then
388
+ if command_exists " sudo" ; then
389
+ sudo cp " $WORKSPACE /bin/ffmpeg" " $INSTALL_FOLDER /ffmpeg"
390
+ sudo cp " $WORKSPACE /bin/ffprobe" " $INSTALL_FOLDER /ffprobe"
391
+ echo " Done. ffmpeg is now installed to your system"
392
+ fi
393
+ elif [[ ! $SKIPINSTALL == " yes" ]]; then
388
394
if command_exists " sudo" ; then
389
395
390
396
read -r -p " Install the binary to your $INSTALL_FOLDER folder? [Y/n] " response
You can’t perform that action at this time.
0 commit comments