streamR
William Revelle often says that R can do anything, even order a pizza. So, I wondered, could R be used to parse options and stream movies to my RTMP server using ffmpeg
?
Installation
sudo curl https://raw.githubusercontent.com/frenchja/streamR/master/stream.R -o /usr/local/bin/stream.R
sudo chmod +x /usr/local/bin/stream.R
Usage
stream.R --server rtmp://yourserver movie.mkv
Options
--help
: Display help menu.--time
: Desired start time of stream.--server
: RTMP server address.--framerate
: Output framerate.--crf
: Constant Rate Factor.--update
: Update stream.R to latest master.
TODO
- Process management
- Use lapply and cat to allow for the creation of a movie playlist.