Opened 3 years ago

Closed 3 years ago

#9183 closed defect (invalid)

git clone --depth 1

Reported by: David Hodgson Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
the build instructions on https://trac.ffmpeg.org/wiki/CompilationGuide/Centos use bare 'git clone' which download all versions and changes. For libx265 it downloads 265MB.

If --depth 1 is used everywhere, it much reduces the download size. For libx265 it's reduced from 250MB to <2MB.

In my (limited) experience, the only git clone which doesn;t work with --depth 1 is x265, which needs --depth 2

I've not directly edited the wiki as I'm new here and I wouldn't know the correct way to do that.

Attachments (1)

build_ffmpeg (4.0 KB ) - added by David Hodgson 3 years ago.
adapted build script

Download all attachments as: .zip

Change History (6)

comment:1 by David Hodgson, 3 years ago

Exact results:

git clone --branch stable https://bitbucket.org/multicoreware/x265_git.git
Cloning into 'x265_git'...
remote: Counting objects: 88902, done.
remote: Compressing objects: 100% (88863/88863), done.
remote: Total 88902 (delta 6470), reused 82187 (delta 0)
Receiving objects: 100% (88902/88902), 252.38 MiB | 7.12 MiB/s, done.
Resolving deltas: 100% (6470/6470), done.
 git clone --branch stable --depth 2 https://bitbucket.org/multicoreware/x265_git.git
Cloning into 'x265_git'...
remote: Counting objects: 357, done.
remote: Compressing objects: 100% (354/354), done.
remote: Total 357 (delta 21), reused 274 (delta 0)
Receiving objects: 100% (357/357), 1.58 MiB | 0 bytes/s, done.
Resolving deltas: 100% (21/21), done.

comment:2 by Balling, 3 years ago

But we are not using master HEAD of x265, are we? As it can be super beta?

comment:3 by David Hodgson, 3 years ago

Yes, the wiki's code is:

git clone https://bitbucket.org/multicoreware/x265_git

--branch stable is better than master :-)

Last edited 3 years ago by David Hodgson (previous) (diff)

comment:4 by David Hodgson, 3 years ago

From my recent build, libx265 and libx265 both have --branch stable.

For the others, pick a release ...

by David Hodgson, 3 years ago

Attachment: build_ffmpeg added

adapted build script

comment:5 by Carl Eugen Hoyos, 3 years ago

Priority: minornormal
Resolution: invalid
Status: newclosed
Type: enhancementdefect

The wiki is a wiki...

Note: See TracTickets for help on using tickets.