Desktop Video Recorder Activities - Issue

Link to activities:

Type of reusable component: Desktop Video Recorder Actvities

Question:

I was exploring the winners of the recent Hackaton and checked out Yoichi Suetakes Desktop Video Recording activities. However I am having trouble using them. I have downloaded the ffmpeg. exe file and the activities are not giving any errors and saving the .mp4 file (i have also tried wmv and avi). However, when i try to open the file and play the recorded video it does not contain anything. The video maybe plays for 0,5 seconds even though the recording is 1 minute.

Current Behavior:

Saved video file does not contain any recordings

Expected Behavior:

Saved video file contains recordings of the process running on my desktop.

Studio/Robot/Orchestrator Version:

2018.3.2

1 Like

Me too at Studio 2018.4.5. :joy:
I’m developing for my customer’s flow. And my client’s Studio version is 2018.4.5.
This activity is really useful. So i want to use it in my client’s flow.
Is order studio’s environment out of scope?
2019.10 or 2020.10 are work fine. :+1:

Hi,

As this package was made in 2018, I guess it will also work on 20184.5.
In order to isolate the causes, can you try the following command in command prompt?

ffmpeg.exe -f gdigrab -draw_mouse 1 -i desktop -y -pix_fmt yuv420p out.mp4

(Press q, it will terminate.)

If out.mp4 has no data, ffmpeg settings should be checked.

Regards,

2 Likes

Thanks for your replay!
I have checked the command in command prompt.
And i have gotten below notice message.So i will try to adjust this pc’s ffmpeg settigs.

emphasized text[gdigrab @ 000001e13c61c900] Capturing whole desktop as 5120x1277x32 at (-1920,-77)
[gdigrab @ 000001e13c61c900] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, gdigrab, from ‘desktop’:
Duration: N/A, start: 1608253846.052069, bitrate: 6270452 kb/s
Stream #0:0: Video: bmp, bgra, 5120x1277, 6270452 kb/s, 29.97 fps, 1000k tbr, 1000k tbn, 1000k tbc
Stream mapping:
Stream #0:0 -> #0:0 (bmp (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000001e13c620ac0] height not divisible by 2 (5120x1277)
Error initializing output stream 0:0 – Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Conversion failed!

Hi,

Thank you for sharing your result.

Error message shows

height not divisible by 2

So can you try the following from command prompt?

ffmpeg.exe -f gdigrab -draw_mouse 1 -i desktop -y -pix_fmt yuv420p -vf crop=w=1920:h=1080:x=0:y=0  out.mp4

if it works, can you try to modify crop parameter and set it in ExtraOptionString property ( like "-vf crop=w=1920:h=1080:x=0:y=0" ).

Regards,

1 Like