ffmpeg-cli-wrapper
ffmpeg-cli-wrapper copied to clipboard
Added support for input devices/streams and tests
I created a subclass called FFMpegInputBuilder
which extends the AbstractFFmpegStreamBuilder
. Seeing that the AbstractFFmpegInputBuilder
was designed for outputs, I re-implemented the filename property and build method to retain all previous functionality.
I also added tests to see that the inputs are built properly, modelled after #156 . I added a convenience method to parse commands separated by spaces for assertion purposes.
From the FFmpegBuilder
, you simply call addInputStream(String inputStream)
to build the input.
Updated test to support device_number. Is it ok to include the parameter if there are no duplicates and it is set to zero?
Coverage increased (+2.3%) to 84.106% when pulling 3da1165fef8c31b69b36259c8a8783dbec8cc130 on Omar-Riaz:master into 3819b155edf9132acc75bb6af66dcef1b98c64b2 on bramp:master.
Thanks for the PR. I'm on vacation for the next week, so I won't look at this until later next week. Feel free to ping me if I don't respond next week.
Hi @bramp , did you get a chance to review?