The Video Formalization Processor is a versatile Python application designed for processing lecture videos and corresponding PDF documents. It combines video and document content to produce text-image mixed articles, suitable for conference records and educational content organization.
- Video Processing: Load speaker video files.
- Document Handling: Load PDF documents related to video content.
- Subtitle Generation: Automatically generate SRT subtitles, allowing user corrections in the edit box.
- Text-Image Mixing: Support inserting PDF pages into the subtitle edit box.
- Find and Replace: Support using Ctrl+F for search and Ctrl+H for replace, allowing users to quickly locate and modify text content.
- Document Saving: Save edited content as HTML documents for subsequent loading and editing.
- Formalization: Convert edited content into standardized WORD documents.
Clone this repository and install the necessary dependencies.
git clone https://github.com/arthasking123/vfp.git
cd vfp
pip install -r requirements.txt
- Load Video: Select and load the speaker's video file.
- Load PDF Document: Load the corresponding PDF format lecture document.
- Generate Subtitles: Click the "Generate Subtitles" button to automatically generate and display subtitles in the right edit box. Users can edit and correct subtitles here.
- Edit Subtitles: During video playback, the background color of the corresponding subtitle line turns yellow for easy location and correction.
- Insert PDF Content: Double-click the displayed PDF pages on the left to insert them into the right edit box.
- Save HTML Document: Click the "Save HTML Document" button to temporarily save the content in the edit box.
- Load HTML Document: Click the "Load HTML Document" button to load previously saved content.
- Formalization: Select the API provider's API, such as OpenAI, and enter the APIKEY. Click the "Formalization" button to convert the edited content into a WORD document.
Contributions to the Video Formalization Processor are welcome. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -am 'Add some feature'
). - Push the changes to the branch (
git push origin feature-branch
). - Create a new Pull Request.