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

Multiple-file-feature-branch #5

Merged
merged 5 commits into from
Jan 14, 2025

Conversation

devanshusanghani
Copy link
Owner

  • Introduced a new script build_executables.py for building platform-specific executables using PyInstaller.
  • Implemented functions for cleaning build directories, handling retries on directory removal, and determining executable names based on the operating system.
  • Added requirements.txt to specify dependencies: PyInstaller, tk, pillow, and packaging.
  • Updated README.md to reflect recent changes and improvements in the application.

new featues:

Recent Updates: Multi-File Processing Support

The GUI application has been enhanced with batch processing capabilities. Here are the key improvements:

New Features

  1. Multiple File Selection

    • Users can now select multiple files simultaneously
    • First selected file is displayed in the UI for reference
  2. Simplified Output Handling

    • Single output directory selection for all files
    • Automatic file naming with "_injected" suffix
  3. Batch Processing

    • Sequential processing of all selected files
    • Robust error handling: individual failures don't stop the batch
    • Progress tracking with status messages

Technical Implementation

The changes were implemented in spatialmedia/gui.py:

# Enable multiple file selection
self.open_options["multiple"] = True

# Process multiple files
for input_file in self.all_files:
    output_file = os.path.join(
        os.path.dirname(self.save_file),
        f"{split_filename[0]}_injected{split_filename[1]}"
    )
    metadata_utils.inject_metadata(input_file, output_file, metadata, console.append)

These updates significantly improve workflow efficiency when processing multiple videos.

jamiesonpepper and others added 5 commits December 3, 2024 09:47
- Introduced a new script `build_executables.py` for building platform-specific executables using PyInstaller.
- Implemented functions for cleaning build directories, handling retries on directory removal, and determining executable names based on the operating system.
- Added `requirements.txt` to specify dependencies: PyInstaller, tk, pillow, and packaging.
- Updated README.md to reflect recent changes and improvements in the application.

new featues:
## Recent Updates: Multi-File Processing Support

The GUI application has been enhanced with batch processing capabilities. Here are the key improvements:

### New Features

1. **Multiple File Selection**
   - Users can now select multiple files simultaneously
   - First selected file is displayed in the UI for reference

2. **Simplified Output Handling**
   - Single output directory selection for all files
   - Automatic file naming with "_injected" suffix

3. **Batch Processing**
   - Sequential processing of all selected files
   - Robust error handling: individual failures don't stop the batch
   - Progress tracking with status messages

### Technical Implementation

The changes were implemented in `spatialmedia/gui.py`:

```python
# Enable multiple file selection
self.open_options["multiple"] = True

# Process multiple files
for input_file in self.all_files:
    output_file = os.path.join(
        os.path.dirname(self.save_file),
        f"{split_filename[0]}_injected{split_filename[1]}"
    )
    metadata_utils.inject_metadata(input_file, output_file, metadata, console.append)
```

These updates significantly improve workflow efficiency when processing multiple videos.
@devanshusanghani devanshusanghani merged commit 17c1f4d into master Jan 14, 2025
Copy link
Owner Author

@devanshusanghani devanshusanghani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

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.

2 participants