Yes, It's done now. and it's recording the video, but in video nothing
seems to be appearing. Video runs and only video name appears. Nothing
else. I ran your program
require 'watir'
@browser = Watir::Browser.new :firefox
# FFMPEG::WindowTitles.fetch('firefox') # Provide name of exe
#=> ["Mozilla Firefox"]
opts = { input: FFMPEG::WindowTitles.fetch('firefox').first,
output: 'screenrecorder-firefox.mp4',
framerate: 15 }
@recorder = FFMPEG::ScreenRecorder.new(opts)
@recorder.start
# Run tests
@browser.goto 'watir.com'
@browser.link(text: 'News').click
# Using rspec-expectations gem
@recorder.stop
@browser.quit
On Sunday, 3 February 2019 15:43:08 UTC+5:30, Lakshya Kapoor wrote:
>
> Here is how you can add the ffmpeg location to PATH -
> https://windowsloop.com/install-ffmpeg-windows-10/
>
> Make sure you restart CMD window(s) after that and then retry the "ffmpeg"
> command.
>
> On Sunday, February 3, 2019 at 2:04:06 AM UTC-8, [email protected]
> wrote:
>>
>> HI, I have already tried typing that on cmd, it's throwing the same
>> error. Can you please let me know how to set this file in path? I have set
>> the environmental variable `C:\Ruby\bin` where I placed this ffmpeg file.
>>
>
--
--
Before posting, please read
https://github.com/watir/watir_meta/wiki/Guidelines-for-Posting-to-Watir-General-Google-Group.
In short: search before you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]
---
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.