Skip to content

OpenFrameworks Addon making it simple to stream a video stream from one computer to another using ffmpeg library.

Notifications You must be signed in to change notification settings

geoffdonaldson/ofxStreamer

 
 

Repository files navigation

About

This addon is for streaming an image from one computer to another using H.264 protocol and ffmpeg as backbone.

Installation

Works currently only on Mac OS X. Tested on 10.8.3

Dependencies

none

Adding to another project

Copy the folder to addons, remove example

WRONG:

in other linker flags add "$(SRCROOT)/../libs/osx/libx264.a"  (or just drag the file into other linker flags)
in Header Search Path add "/usr/local/include"	

Save the stream from commandline

If you would like to save the stream as a video file you can use ffmpeg like this:

$ ./ffmpeg -i "udp://@:1234" -vcodec libx264 output.mp4 

Compilaton notes (not needed to use the addon)

libiconv

$ brew install libiconv --universal

libbz2

Download source from http://www.bzip.org/downloads.html Open makefile and add -m32 to CFLAGS and LDFLAGS Run

$ make
$ make install

Then copy the just generated libbz2.a

ffmpeg

$ git clone git://source.ffmpeg.org/ffmpeg.git ffmpeg
$ cd ffmpeg
$ ./configure --cc="clang -m32" --enable-gpl --prefix="/Users/jonas/Desktop/ffmpeg"  --enable-libx264 
$ make

x264

$ ./configure  --host=i686-apple-darwin11.1.0 --extra-cflags="-arch i386" --extra-ldflags="-arch i386" --disable-asm
$ make

Testing

List of RTSP streams for testing of the decoder: http://www.vlc.eu.pn/

About

OpenFrameworks Addon making it simple to stream a video stream from one computer to another using ffmpeg library.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.0%
  • C++ 5.5%
  • Objective-C 1.5%