Skip to content

Latest commit

 

History

History
58 lines (45 loc) · 2.77 KB

README.md

File metadata and controls

58 lines (45 loc) · 2.77 KB

crossUserMedia - Compiling FFMPEG for Flash using Crossbridge

Setup

  1. Ensure that you are running on either a Cygwin or Mac environment.

  2. Download air sdk 18.0 from https://helpx.adobe.com/air/kb/archived-air-sdk-version.html and unpack the contents to the location /usr/local/air_sdk

  3. Navigate to frameworks/flex-config.xml and at about line 46, replace as follows:

    From

    <external-library-path>
     <path-element>libs/player/{targetPlayerMajorVersion}.{targetPlayerMinorVersion}/playerglobal.swc</path-element>
    </external-library-path>
    

    To

    <external-library-path>
     <path-element>libs/player/18.0/playerglobal.swc</path-element>
    </external-library-path>
    
  4. Download and install the crossbridge compiler from http://crossbridge.io and unpack the contents to the location /usr/local/crossbridge

  5. Run build.sh either from Cygwin or from a Mac terminal window.

Cygwin Caveats

On first run, numerous errors like $'\r': command not found may appear. If so, install the dos2unix command and apply it to all of the complaining files to convert the dos line endings to their prettier unix equivalents.

The internal call to make may fail on building sha512.o due to an error: "Couldn't fork: Resource temporarily unavailable". In such case, make sure that there are no other Cygwin or Cygwin-related processes running except the current terminal window; close/terminate them if they exists. Also close any memory hogging programs. Rerun build.sh, but comment out the ffmpeg's make clean and configure to save some time (uncomment the #:<<"EOF" and #EOF to do so).

  1. Once build.sh has built, which configures and compiles ffmpeg internally, you can compile just your project by running:

    source setenv.sh
    make
    make install
    

Inspired by