Hi Team,
We have setup a private instance of webpagetest with Windows agent running on EC2 servers. We observed that Filmstrip is available in tests only if we RDP into our agent server [1]. On checking the logs we found that ffmpeg is throwing this [2] error when we run the test and no is connected to agent server(via RDP). But if we RDP into our server it works fins and filmstrip is available.
[1]: Test when someone RDP into agent server
Test when no one is connected to agent (via RDP)
[2]:
15:07:33.342 - ffmpeg -f gdigrab -probesize 500M -analyzeduration 500M -loglevel debug -video_size 1366x768 -framerate 10 -draw_mouse 0 -i desktop -codec:v libx264rgb -crf 0 -preset ultrafast C:\Users\Administrator\Downloads\wptagent\work\EC2AMAZ-DTV485I-20.0.12.202\230914_4P_16.1.0\1_video.mp4
15:07:33.346 - video: waiting for capture file
ffmpeg version 4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.3.1 (GCC) 20200523
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 31.100 / 56. 31.100
libavcodec 58. 54.100 / 58. 54.100
libavformat 58. 29.100 / 58. 29.100
libavdevice 58. 8.100 / 58. 8.100
libavfilter 7. 57.100 / 7. 57.100
libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100
libpostproc 55. 5.100 / 55. 5.100
Splitting the commandline.
Reading option '-f' ... matched as option 'f' (force format) with argument 'gdigrab'.
Reading option '-probesize' ... matched as AVOption 'probesize' with argument '500M'.
Reading option '-analyzeduration' ... matched as AVOption 'analyzeduration' with argument '500M'.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Reading option '-video_size' ... matched as AVOption 'video_size' with argument '1366x768'.
Reading option '-framerate' ... matched as AVOption 'framerate' with argument '10'.
Reading option '-draw_mouse' ... matched as AVOption 'draw_mouse' with argument '0'.
Reading option '-i' ... matched as input url with argument 'desktop'.
Reading option '-codec:v' ... matched as option 'codec' (codec name) with argument 'libx264rgb'.
Reading option '-crf' ... matched as AVOption 'crf' with argument '0'.
Reading option '-preset' ... matched as AVOption 'preset' with argument 'ultrafast'.
Reading option 'C:\Users\Administrator\Downloads\wptagent\work\EC2AMAZ-DTV485I-20.0.12.202\230914_4P_16.1.0\1_video.mp4' ... matched as output url.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url desktop.
Applying option f (force format) with argument gdigrab.
Successfully parsed a group of options.
Opening an input file: desktop.
[gdigrab @ 0000023ce788af80] Capturing whole desktop as 1366x768x32 at (0,0)
15:07:33.447 - video: waiting for capture file
[gdigrab @ 0000023ce788af80] Failed to capture image (error 5)
[gdigrab @ 0000023ce788af80] Could not find codec parameters for stream 0 (Video: bmp, 1 reference frame, none, 335712 kb/s): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, gdigrab, from 'desktop':
Duration: N/A, bitrate: 335712 kb/s
Stream #0:0, 0, 1/1000000: Video: bmp, 1 reference frame, none, 335712 kb/s, 10 fps, 1000k tbr, 1000k tbn, 1000k tbc
Successfully opened the file.
Parsing a group of options: output url C:\Users\Administrator\Downloads\wptagent\work\EC2AMAZ-DTV485I-20.0.12.202\230914_4P_16.1.0\1_video.mp4.
Applying option codec:v (codec name) with argument libx264rgb.
Successfully parsed a group of options.
Opening an output file: C:\Users\Administrator\Downloads\wptagent\work\EC2AMAZ-DTV485I-20.0.12.202\230914_4P_16.1.0\1_video.mp4.
Output #0, mp4, to 'C:\Users\Administrator\Downloads\wptagent\work\EC2AMAZ-DTV485I-20.0.12.202\230914_4P_16.1.0\1_video.mp4':
Output file #0 does not contain any stream
15:07:33.548 - video: waiting for capture file