Opened 5 years ago

Closed 5 years ago

#947 closed enhancement (worksforme)

In-progress builds should list their specific version when run

Reported by: dg1727 Owned by:
Priority: minor Component: build system
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Presently, if a development snapshot of the FFmpeg project is compiled by a user, the startup banner of ffmpeg and the other command-line tools lists a generic version such as "0.9.0.git".

Is it possible to have this version automatically updated to show the exact location of the source code in Git? This would apply not just for snapshots, but for any version that is compiled from Git without having an official version number. For example, this might help in comparing the operation of 2 different builds of FFmpeg, such as in tracking down a regression window.

The version string could indicate the date and time of the snapshot, and a further identifying code in case of multiple snapshots at the same date and time, similar to
0.9.0.gitmaster20120101_140000.001
(where 20120101 is the date, 140000 is the time, and 001 is a further identifying code).

Change History (2)

comment:1 Changed 5 years ago by Cigaes

What you request is, AFAIK, already implemented.

If the snapshot is a normal full git clone, the version string is "N-37334-g9719528", where the number is monotonic and the short hash is unique.

If the snapshot is a shallow git clone (--depth 1), the version string is "git-2012-01-29-9719528".

If the snapshot is a tarball from gitweb, the version string is "0.9.1.git-9719528".

How did you download your snapshot?

comment:2 Changed 5 years ago by cehoyos

  • Resolution set to worksforme
  • Status changed from new to closed

This works fine here.

If you want to reopen this ticket, please provide the following information:
How / where you downloaded the snapshot.
You configure line
The complete, uncut output of "./ffmpeg -version"

Note: See TracTickets for help on using tickets.