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

Added support for N-to-N filters like "concat" and dynamic inputs for A/V-to-N and N-to-A/V cases #31

Open
wants to merge 12 commits into
base: main
Choose a base branch
from

Conversation

abdelrahman-tarek-0
Copy link


  • Added a modal popup for N->N, A/V-to-N, and N-to-A/V, which prompts the user to enter the variable number of inputs and their types. The order in which the user provides the inputs is respected in the preview state, making filters like "concat" smooth and intuitive (see examples for reference).

  • Updated the handling of audio/video outputs (from out_a and out_v) to a count-based ID system (out_1, out_2). This fixes issues where out_a was being duplicated (e.g., ffmpeg -i x "[0:v][0:v] filter [out_a][out_a]" -map [out_a] y) and also opens the door for multi-output commands (if implemented).

  • Revised tests to use the new (out_COUNT) ID system instead of the old (out_TYPE) format.

  • Two new examples demonstrating how the new N->N filters work were added.

  • Fixed the annoying vidPlayerRef.seekToNextFrame error.

  • Added comments to improve code readability and understanding.

"This is my first time using Svelte, so I may have missed some optimization tweaks." 👀

image
image

This commit adds a new component called DynamicFilterModal. This component is responsible for rendering a modal window that allows the user to add dynamic inputs and outputs to a selected filter. It also handles the logic for updating the selected filter with the new inputs and outputs.

The DynamicFilterModal component is used in the FilterPicker component to provide a user-friendly interface for customizing filters.

This commit addresses the following changes:
- Added DynamicFilterModal.svelte file
- Imported Modal component and addNode function in DynamicFilterModal.svelte
- Defined props and variables in DynamicFilterModal.svelte
- Implemented logic for adding dynamic inputs and outputs in DynamicFilterModal.svelte
- Updated styles in DynamicFilterModal.svelte
@abdelrahman-tarek-0
Copy link
Author

@antiboredom

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

Successfully merging this pull request may close these issues.

Add N-to-N filter support and dynamic input for A/V-to-N and N-to-A/V cases
1 participant