Sep 13, 2009 FFmpeg & cross-compiling for Windows on Linux. Posted on September 13, 2009. Lately I have been trying to look into compiling ffmpeg for windows/mac/linux as a standalone executable. Compiling for Linux and Mac is pretty straightforward, however for Windows, it’s not that easy. I figured others would have issues too so here’s a quick. Apr 26, 2012 why don't you ask The man of the Fame and The man of the Game 'LoRdMuldeR' for MAC compile straight? He is the one of the supplier of x264 updated libraries for AVIDemux plus lot's of other goodies on his web-site.
*NDI support in FFmpeg was removed in the FFMPEG source on the 20th of March 2019.
This is from a license dispute with Newtek ( https://trac.ffmpeg.org/ticket/7589 ) and NDI support has now been removed from FFmpeg.
I will take these projects offline.
Apologies for the inconvenience.
Regards,
Johan Els*
Because of the NewTek NDI® SDK license agreement, we cannot distribute the SDK with FFmpeg directly. Here I've tried to make compiling it as simple as possible and then use this version to build a point2point NDI link over the Internet.
The theory is that if you can get NDI into and out of FFmpeg, FFmpeg has a documented point2point streaming documented on their site.
Step 1 - Getting the SDK
Register and request the NewTek NDI® Software Developer Kit download link from https://www.newtek.com/ndi/sdk/#download-sdk and then download the MacOS version and install it. It dumps itself in the root of the drive, which I'm not happy about, but what can we do?
![Compiling X264 For Mac Compiling X264 For Mac](/uploads/1/2/5/7/125718204/298114394.png)
Step 2 - Build environment
Install build tools using Brew. If you are not using brew or want to compile the dependencies as well, please see the page on the FFmpeg site for details.
Step 3 - Get the FFmpeg source
Clone FFmpeg repo from there GIT repo.
Step 4 - Link into NewTek NDI® SDK
Symbolic links to resolve locations:
![X264 r2901 X264 r2901](http://www.media.dimido.de/10/02/open_source_vlc_videolan_player_105.jpg)
Step 5 - Configure the FFmpeg build
Here I give two options. The first is with most of the FFmpeg options enabled. This results in a much bigger build, but also much better support.
Option 1 - FFmpeg large build
Option 2 - FFmpeg simple build
Step 6 - Let it build
Step 7 - Quick test
This works on the same machine, from multiple terminals.
TX & RX samples
References:
- FFmpeg - https://www.ffmpeg.org** Streaming Guide - https://trac.ffmpeg.org/wiki/StreamingGuide** MacOS Compiling yourself - https://trac.ffmpeg.org/wiki/CompilationGuide/macOS#CompilingFFmpegyourself
- NewTek NDI® SDK - https://www.newtek.com/ndi/sdk/
- NewTek NDI® port information - https://support.newtek.com/hc/en-us/articles/218109497-NDI-Video-Data-Flow