ShareX FFMPEG Error

Created on 11 Sep 2017  Â·  25Comments  Â·  Source: ShareX/ShareX

Not too sure why this is happening as it was working fine yesterday :

image

Using latest Windows 10 version (1703 i think) and trying to record a window

Thank you for the help :)

Stale

Most helpful comment

yes
image

All 25 comments

There is no error within this screenshot's state

This is all that pops up when I try to record anything, I see the timer in the bottom left of the window but it stays stuck at 0, then this appears and nothing else happens. I've tried reinstalling etc. but nothing is helping?

Post a screenshot of your Screen Recording Settings perhaps?

Try this previous stable build maybe it will work:
https://ffmpeg.zeranoe.com/builds/win64/static/ffmpeg-3.2-win64-static.zip

Extract ffmpeg.exe to DocumentsShareXTools folder.

I've run the .bat file in that download but still getting the same error, is there something else I need to do to get it onto the previous build?

Sorry for all the questions, not too familiar with this stuff

Did you replace the ffmpeg executable that sharex uses from the one inside the zip?

Yep, now I get this error, it's slightly different :

image

ahh, please (re)install the screen-capture-recorder utilities

I reinstalled ShareX but still getting the error, is the screen-capture-recorder utilities something different?

yes
image

Just did that and it's gone back to the first error again

Try switching the video source to GDi Grab, test a recording using that
Then try again with screen-capture-recorder

When I press the "Test with CMD" button with GDI Grab selected it comes up with this error :
image

If I switch it back to screen-capture-recorder and do the same it says this :
image

Thank you for all your help by the way it is really appreciated :)

Did you set your audio capture to anything? Looks like that's failing on both options
Turn it to None for now
image

Thank you :) The video recording is working now :)

I can add audio after which is what I was planning on doing anyway

Thank you so much again :)

Re-enabling the audio device may fix it, if windows confused it in the background, as it's reference maybe be properly updated now. But can't say that it would be the truth

Tried re-enabling it and it just came up with the same error as before, no big deal though just glad I can record :)

Only such parameters help. In other cases, as on the bugs above.
https://puu.sh/xGip3.png

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

Was getting the same error, I switched from "screen-capture-recorder" to "GDI grab" and it worked for me.

image

I am also getting the same error but switching to GDI grab doesn't help.

However, I can shed some light on the problem. This error occurs when I switch audio drivers (e.g. when selecting ASIO4ALL and then going back to the system drivers). Nothing short of a system reboot seems to fix this. I've tried disabling my output peripherals to no avail. I also use virtual audio cable, which I thought could be part of the problem, but even after disabling all virtual peripherals I still can't get to fix this without rebooting.

Experiencing same issue. I've installed ffmpeg.exe in C:UsersnguyeDocumentsShareXTools. Either manually or automatically through ShareX. I did try multiple versions of ffmpeg.exe including latest one.

I did go into the settings
image

and manually set the video and audio source etc. Nothing helped.
Here are my error logs:

ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.1 (GCC) 20200726
  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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --enable-librav1e --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[gdigrab @ 0000021f34f4ebc0] Capturing whole desktop as 393x217x32 at (504,410)
Input #0, gdigrab, from 'desktop':
  Duration: N/A, start: 1609422345.676617, bitrate: 40941 kb/s
    Stream #0:0: Video: bmp, bgra, 393x217, 40941 kb/s, 15 fps, 15 tbr, 1000k tbn, 1000k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (bmp (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0000021f34fff340] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
ffmpeg version 4.3.1 Copyright (c) 2000-2020 the FFmpeg developers
  built with gcc 10.2.1 (GCC) 20200726
  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-libsrt --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-libvmaf --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libgsm --enable-librav1e --disable-w32threads --enable-libmfx --enable-ffnvcodec --enable-cuda-llvm --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000212a9cdcb40] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000212a9cdcb40] moov atom not found
C:\Users\nguye\Documents\ShareX\Screenshots\2020-12\2020-12-31_14-45-45.mp4: Invalid data found when processing input

doing a normal screenshot, scrolling screenshot works fine. Video capture ffmpeg and gif are not working for me.

Executing the CMD manually
-rtbufsize 150M -f gdigrab -framerate 30 -offset_x 0 -offset_y 0 -video_size 1680x1050 -draw_mouse 1 -i desktop -c:v libx264 -r 30 -preset ultrafast -tune zerolatency -crf 28 -pix_fmt yuv420p -movflags +faststart -y "output.mp4"
works and create a video in the folder C:UsersnguyeDocumentsShareXTools.

A restart fixed it completely and I could record videos and gifs.

[mov,mp4,m4a,3gp,3g2,mj2 @ 00000212a9cdcb40] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible!
[mov,mp4,m4a,3gp,3g2,mj2 @ 00000212a9cdcb40] moov atom not found

According to a post on Reddit, the moov atom is placed at the end of the file (by default) and this error usually pops up if the recording was terminated abruptly for any number of reasons.
there is a suggestion to add the -movflags faststart flag to your command, as this will put the moov atom at the start of the file, not the end, but this is done on a second pass, I am unsure how much this will help as the operation that is interrupting the recording is not defined anywhere

image

I don't know how relevant it is. It fails writing the file already. That error might be related from reading an invalid file format.

I resolved this issue a long time ago. Thank you!

чт, 31 дек. 2020 г. в 20:15, NNTin notifications@github.com:

[image: image]
https://user-images.githubusercontent.com/18033169/103413661-d5344d00-4b7a-11eb-8a43-ad380551eea9.png

I don't know how relevant it is. It fails writing the file already. That
error might be related from reading an invalid file format.

—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/ShareX/ShareX/issues/2761#issuecomment-752969391, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/AKXNSRUZMEZFNAPWPB7G7XTSXSBQBANCNFSM4D2NSUUQ
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Hakaan256 picture Hakaan256  Â·  4Comments

hiltronrex picture hiltronrex  Â·  3Comments

WebFreak001 picture WebFreak001  Â·  3Comments

Not-Kris picture Not-Kris  Â·  3Comments

thelastfantasy picture thelastfantasy  Â·  3Comments