mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 23:25:52 +03:00
[GH-ISSUE #819] FFMpeg integration\Scaling #2510
Labels
No labels
copy cats
duplicated
future feature
pull-request
⬜ Accepted
⬜ Completed
⬜ Help Wanted 💪
⬜ In Progress
⬜ Missing Details
⬜ Pending
⬜ Waiting For Answer ⏳
🆕 feature preview
🔷 Bug 🐛
🔷 Out Of Scope
🔷 Out Of Scope
🔷 Question
🔷Enhancement
🔷Enhancement
🔷Invalid / External
🔷Knowledge Base
🔷Won't Fix
🕑 High
🕑 High
🕑 High
🕕 Medium
🕙 Low
🕛 Critical
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ScreenToGif#2510
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Kotoru on GitHub (Apr 1, 2021).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/819
I've decided to try import and scale my footage(by nearest neighbor) using FFMpeg:

but got this error:
_en ScreenToGif.Windows.Other.Encoder.EncodeWithFfmpeg(String name, List`1 listFrames, Int32 id, Parameters param, CancellationTokenSource tokenSource, String processing)
en ScreenToGif.Windows.Other.Encoder.d__26.MoveNext()
Command:
-vsync 2 -safe 0 -f concat -i "file:C:\Users\almaz\AppData\Local\Temp\ScreenToGif\Recording\2021-04-01 09-28-21\Encode 2021-04-01 11-58-33-64\concat.txt" ffmpeg -i -vf 'scale=iw3:ih3' -sws_flags neighbor -y "C:\Users\almaz\Desktop\3.avi"
Result:
ffmpeg version 4.3.2-2021-02-27-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 10.2.0 (Rev6, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
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
Input #0, concat, from 'file:C:\Users\almaz\AppData\Local\Temp\ScreenToGif\Recording\2021-04-01 09-28-21\Encode 2021-04-01 11-58-33-64\concat.txt':
Duration: 00:00:14.50, start: 0.000000, bitrate: 23 kb/s
Stream #0:0: Video: png, rgba(pc), 1273x717 [SAR 3779:3779 DAR 1273:717], 25 tbr, 25 tbn, 25 tbc
: Invalid argument_
Is there something wrong with my code or maybe I haven't integrated the exe file correctly?

I've used this file?.