Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFMPEG errs on conversion #73

Open
benzionyunger opened this issue May 23, 2021 · 0 comments
Open

FFMPEG errs on conversion #73

benzionyunger opened this issue May 23, 2021 · 0 comments

Comments

@benzionyunger
Copy link

The file produced is empty, here is the complete console output:
`

May 23, 2021 4:01:44 PM io.appium.java_client.remote.AppiumCommandExecutor$1 lambda$0
INFO: Detected dialect: OSS

log4j:WARN No such property [maxBackupIndex] in org.apache.log4j.FileAppender.
log4j:WARN No such property [maxFileSize] in org.apache.log4j.FileAppender.

2021-05-23 16:01:44 INFO FFMpegRecorder:26 - Trying to execute the following command: [ffmpeg, -y, -video_size, 1858x1035, -f, gdigrab, -i, desktop, -an, -framerate, 24, -pix_fmt, yuv420p, D:\Users\byunger\projects\gems-bb\GEMS\video\temporary_recording_2021_23_05_16_01_44.mp4]
2021-05-23 16:02:05 INFO FFMpegRecorder:40 - Trying to execute the following command: [cmd, /c, for /f "tokens=2" %i in ('tasklist ^| findstr "ffmpeg"') do @echo %i]
2021-05-23 16:02:05 INFO FFMpegRecorder:40 - Trying to execute the following command: [SendSignalCtrlC.exe, ]
2021-05-23 16:02:06 INFO FFMpegRecorder:58 - Process kill output: "" is not a valid PID.
0x00000057 == (FormatMessage failed)
2021-05-23 16:02:06 DEBUG FFMpegRecorder:63 - Recording output log: ffmpeg version n4.4-17-gf7468a9c40 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10-win32 (GCC) 20210408
configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --arch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv --enable-libxml2 --enable-zlib --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-libvorbis --enable-opencl --enable-libvmaf --enable-vulkan --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-libdavs2 --enable-ffnvcodec --enable-cuda-llvm --enable-libglslang --enable-libgme --enable-libass --enable-libbluray --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-lv2 --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-ldexeflags= --extra-libs=-lgomp
libavutil 56. 70.100 / 56. 70.100
libavcodec 58.134.100 / 58.134.100
libavformat 58. 76.100 / 58. 76.100
libavdevice 58. 13.100 / 58. 13.100
libavfilter 7.110.100 / 7.110.100
libswscale 5. 9.100 / 5. 9.100
libswresample 3. 9.100 / 3. 9.100
libpostproc 55. 9.100 / 55. 9.100
[gdigrab @ 00000241531b6700] Capturing whole desktop as 1858x1035x32 at (0,0)
[gdigrab @ 00000241531b6700] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, gdigrab, from 'desktop':
Duration: N/A, start: 1621774904.704171, bitrate: 1844277 kb/s
Stream #0:0: Video: bmp, bgra, 1858x1035, 1844277 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 @ 00000241516ec780] height not divisible by 2 (1858x1035)
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!

2021-05-23 16:02:06 INFO FFMpegRecorder:64 - Recording finished to: D:\Users{me}\projects\myProject\video\valMainPageBtns_recording_2021_23_05_16_02_06.mp4
2021-05-23 16:02:07 INFO RecordingUtils:81 - No jenkinsUrl variable found.
2021-05-23 16:02:07 INFO RecordingUtils:26 - Video recording: D:\Users{me}\projects\myProject\video\valMainPageBtns_recording_2021_23_05_16_02_06.mp4

Note - If I use the MONTE recorder which saves an avi file it works fine, then I can convert it on the command line successfully by executing ffmpeg -i {filename} output.mp4`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant