This Code is heavliy based on gmrender-resurrect, origiganl source can be found here: https://github.com/hzeller/gmrender-resurrect
Code hase been cleaned and translated to c++
Tested on rpi3 + AllCast, AllConnect or ServerCast on android.
A number of dlna/upnp servers wont work with this for unknown reasons, only the three apps above are known to work, BubblUPNP does NOT work.
You MUST have libupnp compiled with large file support like so:
LFSFLAGS="${LFSFLAGS} -D_LARGE_FILE_SOURCE -D_FILE_OFFSET_BITS=64" CFLAGS="$LFSFLAGS" CXXFLAGS="$LFSFLAGS" ./configure
make sudo make install
You may want to install in /usr/local/* ( which should be the default for configure ), that way you can have both versions of the lipupnp library's installed side by side.
Alternativly get on to the packager of libupnp and ask for the large file version to be packaged.
Still a number of bugs yet :( ... ... More to come ...
Quick guide.
USAGE castreceiver OPTIONS
OPTIONS
-V, --version
Output version information and exit
-f, --friendly-name
Friendly name to advertise.
-e, --exit-on-stop
Exit when file stopped.
-p, --player-command
Custom player command.
The default is to use the RPI3 omxplayer ( omxplayer --key-config ~/.config/omxkey.config ).
-v, --verbose
Show renderer details on start.
-h, --help
Show help options
EXAMPLES
Set friendly name and use mplayer.
castreceiver -f cast$(date +%M%S) --exit-on-stop -v -p mplayer
Set friendly name and use mplayer on the framebuffer.
castreceiver -f cast$(date +%M%S) --exit-on-stop -v -p "mplayer -vo fbdev2 -vf scale=1920:1019"
Use default name and default player, keep going when cast video stops.
castreceiver
BUGS ETC
Bugs, feature requests, Large bags of jewels to:
kdhedger68713@gmail.com