anshulrouthu / RPiCast

Screen casting solution using RaspberryPi
GNU General Public License v3.0
26 stars 8 forks source link

How about support to OS X? #1

Open 64BitAsura opened 8 years ago

64BitAsura commented 8 years ago

What it would take to support OS X and Windows 10?

anshulrouthu commented 8 years ago

That would involve in implementing OSX version of frame capture., using OSX api's

64BitAsura commented 8 years ago

I dough deep, found that you are using ffmpeg to capture linux screen using X11grab, also I found OS X screen can be captured using Avfoundation, Please point me out where exactly I need to do modification in your source, since I am new CPP, please help me out :)

64BitAsura commented 8 years ago

@anshulrouthu Are you talking about POSIX thread api? or something else? :)

64BitAsura commented 8 years ago

You are using Raspberry Pi, OpenMax api to stream media directly to pi's kernel, right?

anshulrouthu commented 8 years ago

I am using OpenMax api on the raspberry pi to decode and render the video frames

anshulrouthu commented 8 years ago

I do have a working in progress patch that uses AVFoundation on OSX to capture the frames, the video output is not optimal but works as good starting point, I get an overlay of orangish yellow color on the captured video. I will push that to a branch and you can start from there. I do not have a lot of free time recently hence no progress has been done for this project for along time

64BitAsura commented 8 years ago

@anshulrouthu please push it to branch, I can take it from here :) Thank you

anshulrouthu commented 8 years ago

@sambathl I have pushed my partial mac port to this branch https://github.com/anshulrouthu/RPiCast/tree/macbookpro-port

64BitAsura commented 8 years ago

@anshulrouthu Thank you so much, but when I used xtools cross-tool chain from http://www.jaredwolff.com/toolchains/ I get

In file included from source/porting_layers/components/demux.h:27:0, from source/porting_layers/components/demux.cpp:24: ./source/framework/utils.h:27:19: fatal error: stdio.h: No such file or directory

include

               ^

I do tried build my own tool chain and changing lib path, can't fix it :(

anshulrouthu commented 8 years ago

@sambathl I am not sure about thaterror, stdio.h is the basic io header file it should be present a toolchain. Something could be wrong with your toolchain

64BitAsura commented 8 years ago

@anshulrouthu can you please share your xtools toolchain? :)

anshulrouthu commented 8 years ago

@sambathl If you run the setup.sh script from the root of the project it will pull the toolchain and the staging directory for you.

64BitAsura commented 8 years ago

@anshulrouthu toolchain checked out from shell script, doesn't contain toolchain for Mac OS X. I am using RPi3 ARM 8 arch as tool chain, it only support the GCC version of 4.9, but rpi staging checked out supports GCC 4.8, running into linking problem :(

anshulrouthu commented 8 years ago

That is a problem, I am not sure how to handle it since I do not have rpi3. I guess the sdk needs to be update.