In my self-compiled version of ffmpeg, the version string is empty. But theres a "raw" version string available, so the attached patch attempts to parse this raw string, when the version is empty.

Comments

bkonetzny’s picture

Ok, as ffmpeg moved to git, the PHPVideoToolkit->getVersion() has to be extended.
Otherwise the version-detection by PHPVideoToolkit will fail.

    // Search for git string
    // FFmpeg version git-2012-01-26-ee0cab7, Copyright (c) 2000-2011 the FFmpeg developers.
    $pattern = "/ffmpeg version.*git-([a-z0-9\-.]*)/i";
    if (preg_match($pattern, $output, $matches)) {
      // Versions above this seem to be ok
      return array(
        'svn' => $matches[1],
        'version' => NULL, // Return NULL as there appears to be no version number.
      );
    }
Jorrit’s picture

Could you give the output of ffmpeg -version? I'm interested in the first line.

bkonetzny’s picture

Sure, it's the following:

ffmpeg version git-2012-01-26-ee0cab7
built on Jan 26 2012 13:32:16 with gcc 4.4.3
Jorrit’s picture

I have committed a change to the version code to 7.x-2.x. If it doesn't work for you, please post the output of ffmpeg -version here.

Jorrit’s picture

@Majestixs: In what way did you create the FFmpeg binary? When I compile from a git checkout, I get something like ffmpeg version N-38044-g6e6bdeb.

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)
bkonetzny’s picture

@Jorrit: We compiled FFmpeg with the following how-to: http://ubuntuforums.org/showthread.php?t=786095
We needed to compile our own version, because the shipped version was too old, not supporting some parameters needed by the transcoder.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Fixed

OK. The 7.x-2.x-dev version should work for you.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.