zimbatm / ffmpeg-static

Scripts to build ffmpeg with all the deps statically (webm + h264 included)
ISC License
494 stars 245 forks source link

Build error #91

Open jpillora opened 4 years ago

jpillora commented 4 years ago
curl http://downloads.openwrt.org/sources/last_x264.tar.bz2 -I -L
HTTP/1.1 301 Moved Permanently
Server: nginx/1.10.3
Date: Fri, 03 Jan 2020 13:04:39 GMT
Content-Type: text/html
Content-Length: 185
Connection: keep-alive
Location: http://sources.openwrt.org/last_x264.tar.bz2
Access-Control-Allow-Methods: GET, POST, OPTIONS
Access-Control-Allow-Headers: DNT, X-CustomHeader, Keep-Alive, User-Agent, X-Requested-With, If-Modified-Since, Cache-Control, Content-Type, Content-Range, Range

HTTP/1.1 404 Not Found
Server: nginx/1.10.3
Date: Fri, 03 Jan 2020 13:04:40 GMT
Content-Type: text/html
Content-Length: 169
Connection: keep-alive
lanlin commented 4 years ago

same here failed to download last_x264.tar.bz2 when run build.sh

--2020-07-07 03:12:07--  http://download.videolan.org/pub/videolan/x264/snapshots/last_x264.tar.bz2
Resolving download.videolan.org (download.videolan.org)... 213.36.253.2, 2a01:e0d:1:3:58bf:fa02:c0de:5
Connecting to download.videolan.org (download.videolan.org)|213.36.253.2|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-07 03:12:08 ERROR 404: Not Found.

Download failed.
--2020-07-07 03:12:08--  http://mirror2.openwrt.org/sources/last_x264.tar.bz2
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11, 2a01:4f8:221:3d45::2
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-07 03:12:09 ERROR 404: Not Found.

Download failed.
--2020-07-07 03:12:09--  http://downloads.openwrt.org/sources/last_x264.tar.bz2
Resolving downloads.openwrt.org (downloads.openwrt.org)... 176.9.48.73, 2a01:4f8:150:6449::2
Connecting to downloads.openwrt.org (downloads.openwrt.org)|176.9.48.73|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://downloads.openwrt.org/sources/last_x264.tar.bz2 [following]
--2020-07-07 03:12:09--  https://downloads.openwrt.org/sources/last_x264.tar.bz2
Connecting to downloads.openwrt.org (downloads.openwrt.org)|176.9.48.73|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://sources.openwrt.org/last_x264.tar.bz2 [following]
--2020-07-07 03:12:10--  https://sources.openwrt.org/last_x264.tar.bz2
Resolving sources.openwrt.org (sources.openwrt.org)... 148.251.151.136, 2a01:4f8:210:5087::2
Connecting to sources.openwrt.org (sources.openwrt.org)|148.251.151.136|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-07-07 03:12:13 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
sxiii commented 3 years ago

Same here.

Weirdly, it tries both x264 and x265:

$ cd /ffmpeg-static/build
$ tar --skip-old-files -xzvf /ffmpeg-static/dl/x264-stable.tar.gz
--2020-09-02 07:09:10--  https://bitbucket.org/multicoreware/x265/downloads/x265_2.7.tar.gz
Resolving bitbucket.org (bitbucket.org)... 18.205.93.2, 18.205.93.0, 18.205.93.1, ...
Connecting to bitbucket.org (bitbucket.org)|18.205.93.2|:443... connected.
HTTP request sent, awaiting response... 403 Forbidden
2020-09-02 07:09:10 ERROR 403: Forbidden.

Download failed.
--2020-09-02 07:09:10--  http://mirror2.openwrt.org/sources/x265_2.7.tar.gz
Resolving mirror2.openwrt.org (mirror2.openwrt.org)... 46.4.11.11, 2a01:4f8:221:3d45::2
Connecting to mirror2.openwrt.org (mirror2.openwrt.org)|46.4.11.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-09-02 07:09:10 ERROR 404: Not Found.

Download failed.
--2020-09-02 07:09:10--  http://downloads.openwrt.org/sources/x265_2.7.tar.gz
Resolving downloads.openwrt.org (downloads.openwrt.org)... 176.9.48.73, 2a01:4f8:150:6449::2
Connecting to downloads.openwrt.org (downloads.openwrt.org)|176.9.48.73|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://downloads.openwrt.org/sources/x265_2.7.tar.gz [following]
--2020-09-02 07:09:11--  https://downloads.openwrt.org/sources/x265_2.7.tar.gz
Connecting to downloads.openwrt.org (downloads.openwrt.org)|176.9.48.73|:443... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://sources.openwrt.org/x265_2.7.tar.gz [following]
--2020-09-02 07:09:11--  https://sources.openwrt.org/x265_2.7.tar.gz
Resolving sources.openwrt.org (sources.openwrt.org)... 148.251.151.136, 2a01:4f8:210:5087::2
Connecting to sources.openwrt.org (sources.openwrt.org)|148.251.151.136|:443... connected.
HTTP request sent, awaiting response... 404 Not Found
2020-09-02 07:09:11 ERROR 404: Not Found.

Download failed.
No more mirrors to try - giving up.
sxiii commented 3 years ago

Seems I fixed the problem by replacing the source mirrors:

Remove this:

#download \
#  "x264-stable.tar.gz" \
#  "" \
#  "nil" \
#  "https://code.videolan.org/videolan/x264/-/archive/stable/"

#download \
#  "x265_2.7.tar.gz" \
#  "" \
#  "b0d7d20da2a418fa4f53a559946ea079" \
#  "https://bitbucket.org/multicoreware/x265/downloads/"

And add this instead:

download \
  "master.tar.gz" \
  "" \
  "nil" \
  "https://github.com/mirror/x264/archive/"

download \
  "x265_3.2.tar.gz" \
  "" \
  "nil" \
  "http://ftp.videolan.org/pub/videolan/x265/"

On my machine itself with recent Ubuntu and gcc, now I do have a NASM compilation error from another issue #90 ;)

BUT, it builds in the supplied docker container without any problems with this mirrors!