File tree Expand file tree Collapse file tree 1 file changed +1
-38
lines changed
packages/build/src/extensions/core Expand file tree Collapse file tree 1 file changed +1
-38
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ export function ffmpeg(options: FfmpegOptions = {}): BuildExtension {
36
36
// Use static build for version 7 or 7.x
37
37
if ( options . version === "7" || options . version ?. startsWith ( "7." ) ) {
38
38
context . addLayer ( {
39
- id : "ffmpeg7 " ,
39
+ id : "ffmpeg " ,
40
40
image : {
41
41
instructions : [
42
42
// Install ffmpeg after checksum validation
@@ -80,40 +80,3 @@ export function ffmpeg(options: FfmpegOptions = {}): BuildExtension {
80
80
} ,
81
81
} ;
82
82
}
83
-
84
- /**
85
- * Add ffmpeg 7.x to the build, and automatically set the FFMPEG_PATH and FFPROBE_PATH environment variables.
86
- * This uses the static build from johnvansickle.com to install the latest 7.x version.
87
- *
88
- * @returns The build extension.
89
- */
90
-
91
- export function ffmpeg7 ( ) : BuildExtension {
92
- return {
93
- name : "ffmpeg7" ,
94
- onBuildComplete ( context ) {
95
- if ( context . target === "dev" ) {
96
- return ;
97
- }
98
-
99
- context . logger . debug ( "Adding ffmpeg 7" ) ;
100
-
101
- context . addLayer ( {
102
- id : "ffmpeg7" ,
103
- image : {
104
- instructions :[
105
- "RUN apt-get update && apt-get install -y --no-install-recommends wget xz-utils && apt-get clean && rm -rf /var/lib/apt/lists/*" ,
106
- "RUN wget https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz -O ffmpeg.tar.xz && tar xvf ffmpeg.tar.xz -C /usr/bin --strip-components=1 --no-anchored 'ffmpeg' 'ffprobe' && rm ffmpeg.tar.xz" ,
107
- ] ,
108
- } ,
109
- deploy : {
110
- env : {
111
- FFMPEG_PATH : "/usr/bin/ffmpeg" ,
112
- FFPROBE_PATH : "/usr/bin/ffprobe" ,
113
- } ,
114
- override : true ,
115
- }
116
- } )
117
- }
118
- }
119
- }
You can’t perform that action at this time.
0 commit comments