mirror of
https://github.com/NickeManarin/ScreenToGif.git
synced 2026-04-25 15:15:51 +03:00
[GH-ISSUE #107] Error when using x264 encoder #96
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#96
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 @Roemer on GitHub (Mar 15, 2017).
Original GitHub issue: https://github.com/NickeManarin/ScreenToGif/issues/107
I tried using the x264 VFW encoder (https://sourceforge.net/projects/x264vfw/) and when encoding with it, I get the following error:
Win32Exception
BadFormat
@NickeManarin commented on GitHub (Mar 15, 2017):
I downloaded, installed (checked both x86 and x64) and saved the video successfully.
Btw, I have 64 bits system.
@koppor commented on GitHub (Apr 26, 2017):
I found this page when googling for "bei ScreenToGif.Windows.Other.Encoder.Encode(List1 listFrames, Int32 id, Parameters param, CancellationTokenSource tokenSource)". Possibly unrelated, because I am using ffmpeg installed via
choco install ffmpeg.Also Win10, 64bit
@NickeManarin commented on GitHub (Apr 26, 2017):
@koppor Can you copy and paste here the text from the other window that opens if you click on "Ausnahme" (top-right corner)?
With the next version of ScreenToGif, encoding with FFmpeg should be easier, I replaced the default "Extra" parameter with a more common set of parameters.
@AlexFielder commented on GitHub (Jun 29, 2017):
Hi @NickeManarin I'm not sure if you have changed the settings from when @koppor replied but I too am getting a similar error with a chocolatey-installed version of ffmpeg:
at ScreenToGif.Windows.Other.Encoder.Encode(List1 listFrames, Int32 id, Parameters param, CancellationTokenSource tokenSource)ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.1.0 (GCC)
configuration:
libavutil 55. 58.100 / 55. 58.100
libavcodec 57. 89.100 / 57. 89.100
libavformat 57. 71.100 / 57. 71.100
libavdevice 57. 6.100 / 57. 6.100
libavfilter 6. 82.100 / 6. 82.100
libswscale 4. 6.100 / 4. 6.100
libswresample 2. 7.100 / 2. 7.100
Input #0, concat, from 'C:\Users\Alex.Fielder\AppData\Local\Temp\ScreenToGif\Recording\2017-06-29 16-22-55\Encode 2017-06-29 05-10-39\concat.txt':
Duration: 00:00:51.46, start: 0.000000, bitrate: 14 kb/s
Stream #0:0: Video: png, rgba(pc), 1936x1015 [SAR 3779:3779 DAR 1936:1015], 25 tbr, 25 tbn, 25 tbc
Unknown encoder 'libx264'`
My (unchanged from default) extras being thus:
-c:v libx264 -pix_fmt yuv420p -vf "pad=width={W}:height={H}:x=0:y=0:color=black"@NickeManarin commented on GitHub (Dec 24, 2017):
Ok, let's analyze this:
@Roemer Can you tell me which version of the x264 VFW encoder did you install? I installed both 32bits and 64 bits and it was working.
@koppor Your post was a little bit unrelated indeed. This issue ticket is related to the System encoder and not the FFmpeg encoder. Anyway, with version 2.11 of ScreenToGif, can you save as a video successfully?
@AlexFielder I did change something from that older release to the one that you used, one of the changes involved the addition of the "Extras" field where these new parameters were added. Do you remember if the FFmpeg version that you had was compiled with the flag --enable-libx264?
@dogancelik commented on GitHub (Nov 22, 2018):
Edit: I updated to version 2.14.1
It works now but you need to click "Configure" in the system dialog and set a filename
So after you press OK, you get two files: One created by ScreenToGif and one by VFW encoder.
ScreenToGif creates a 3 KB file, it looks like this
The VFW encoder file creates a separate video file in that dialog you specify.
Output mode: VFW did not work for me.
@NickeManarin commented on GitHub (Mar 3, 2020):
Closing this due to inactivity.