[PR #524] [CLOSED] Change Import Video method to use ffmpeg instead. #1136

Closed
opened 2026-02-26 09:33:46 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/NickeManarin/ScreenToGif/pull/524
Author: @manbokgo
Created: 10/2/2019
Status: Closed

Base: masterHead: ffmpegVideoImport


📝 Commits (3)

  • a37665b Import Video using ffmpeg. Selection Slider tweaked. Warning showed up when ffmpeg not present.
  • ba1a773 Import Video Scale. Calculate video duration in milliseconds via ffmepg.
  • b60b2c0 FFmpeg encoding shows Progress bar. Error handling on importing videos.

📊 Changes

5 files changed (+220 additions, -120 deletions)

View changed files

📝 ScreenToGif/Controls/RangeSlider.cs (+22 -2)
📝 ScreenToGif/Windows/Editor.xaml.cs (+54 -56)
📝 ScreenToGif/Windows/Other/Encoder.xaml.cs (+35 -5)
📝 ScreenToGif/Windows/Other/VideoSource.xaml (+3 -3)
📝 ScreenToGif/Windows/Other/VideoSource.xaml.cs (+106 -54)

📄 Description

#378

More precise capturing frames from videos.

Progress bar works fine with parsed ffmpeg output with -progress option. This trick could also be applied when you encode gif with ffmpeg. I haven't done it yet. EDIT: Done

In addition, due to laggy, unnecessary video jumping, Start/End time NumericUpDown no longer continuously change their value while dragging Selection Slider. Now only changes value when you finish drag on slider.

I just deleted whole old capturing methods, so ffmpeg is essential to import videos. Display warning status bar when trying to import vid and ffmpeg not set on program, commented out Editor.xaml.cs:4910 StatusList.Remove(~) for this.

I'm not good programmer. It will be very appreciated to improve these code.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/NickeManarin/ScreenToGif/pull/524 **Author:** [@manbokgo](https://github.com/manbokgo) **Created:** 10/2/2019 **Status:** ❌ Closed **Base:** `master` ← **Head:** `ffmpegVideoImport` --- ### 📝 Commits (3) - [`a37665b`](https://github.com/NickeManarin/ScreenToGif/commit/a37665b28ec5b15390b14afad95ce0bec734defd) Import Video using ffmpeg. Selection Slider tweaked. Warning showed up when ffmpeg not present. - [`ba1a773`](https://github.com/NickeManarin/ScreenToGif/commit/ba1a77352c74ebf4a8b76d0cac7339ccde2be4f4) Import Video Scale. Calculate video duration in milliseconds via ffmepg. - [`b60b2c0`](https://github.com/NickeManarin/ScreenToGif/commit/b60b2c0bf3332a85d852b59dd5d2a894676e662b) FFmpeg encoding shows Progress bar. Error handling on importing videos. ### 📊 Changes **5 files changed** (+220 additions, -120 deletions) <details> <summary>View changed files</summary> 📝 `ScreenToGif/Controls/RangeSlider.cs` (+22 -2) 📝 `ScreenToGif/Windows/Editor.xaml.cs` (+54 -56) 📝 `ScreenToGif/Windows/Other/Encoder.xaml.cs` (+35 -5) 📝 `ScreenToGif/Windows/Other/VideoSource.xaml` (+3 -3) 📝 `ScreenToGif/Windows/Other/VideoSource.xaml.cs` (+106 -54) </details> ### 📄 Description #378 More precise capturing frames from videos. Progress bar works fine with parsed ffmpeg output with -progress option. This trick could also be applied when you encode gif with ffmpeg. ~~I haven't done it yet.~~ EDIT: Done In addition, due to laggy, unnecessary video jumping, Start/End time NumericUpDown no longer continuously change their value while dragging Selection Slider. Now only changes value when you finish drag on slider. I just deleted whole old capturing methods, so ffmpeg is essential to import videos. Display warning status bar when trying to import vid and ffmpeg not set on program, commented out Editor.xaml.cs:4910 StatusList.Remove(~) for this. I'm not good programmer. It will be very appreciated to improve these code. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 09:33:46 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ScreenToGif#1136
No description provided.