Python: Extracting audio fragments from video
Goal: Develop a script for processing video files, extracting audio, optimizing its size, and splitting it into parts.
Deadlines: No deadlines, please suggest your timelines
Budget: Please suggest your budget for approval
1. Extracting audio from video
- Task: Extract the audio track from the video file.
- Video formats:
- Supported input video files in the following formats:
.mp4,.mkv,.avi,.mov.
- Supported input video files in the following formats:
- Audio format:
- Save the audio file in AAC (
.m4a) or MP3 (.mp3).
- Save the audio file in AAC (
- Duration limitations for video: The input video can be up to 90 minutes long.
- Possible tools:
- FFmpeg.
- Ensure that the audio file is saved without loss of quality.
2. Limiting audio track size
- Task: The audio track must not exceed 25MB.
- Actions if size is exceeded:
- If the file size exceeds 25MB, the audio file needs to be split into parts, each not exceeding 25MB.
3. Splitting the file into parts
- Task: Split the audio file into segments not exceeding 25MB, considering moments of silence.
- Splitting rules:
- Splitting should occur at points of silence (speech inactivity) lasting at least 500 ms.
- Add a "buffer" of 2s before and after each segment to prevent loss of speech.
- Example:
- If a moment of silence occurs at the 10.00 second mark, the segment may end in the range of 8–12 seconds.
- Possible tools:
- Use WebrtcVAD or Pyannote.audio to determine speech activity.
- After identifying intervals of active speech, perform the audio file splitting using Pydub or FFmpeg.
4. Saving files
- Saving modes:
- Locally:
- If the local saving mode is selected, audio files (both full and fragments) are saved in a local folder.
- In S3 storage:
- If the S3 saving mode is selected, all files must be uploaded to the S3 bucket.
- Locally:
- Mode configuration:
- Saving is determined by a parameter in the .env file
5. Preparing and deploying the code
- Task:
- Prepare a ready script that:
- Runs on a local machine and in Docker.
- Processes the video file from start to finish, performing all the operations described above.
- Deploy the code in the provided git repository, access will be granted after approval.
- Format the code clearly, with comments for key operations.
- Prepare a ready script that:
If you need further clarification on tasks or resources, please let me know.
Current freelance projects in the category Python
Application developmentI wish to create a mobile application for communication, the app should have audio and video calls, group chat creation, the ability to sync with phone contacts, account settings: email binding, 2FA, phone number, the ability to customize app notifications, change the app… Java, Python ∙ 8 hours 20 minutes back ∙ 13 proposals |
Setting up two-way integration of WhatsApp with Odoo CRMHello! We are looking for a specialist to implement a technical task for setting up a two-way integration of the WhatsApp messenger with the Odoo CRM system. ⚠️ Important technical clarification: The official WhatsApp Business API (WABA) is not considered. It is necessary to… Python, Web Programming ∙ 18 hours 15 minutes back ∙ 20 proposals |
Data parsing through mobile APILooking for a person with experience in data parsing through mobile API, for parsing e-commerce, rozetka and similar sites. Tasks: 1. Intercepting traffic from the mobile application (Android), setting up a proxy, analyzing requests. 2. Identifying the necessary API endpoints… Python, Data Parsing ∙ 2 days 14 hours back ∙ 30 proposals |
Find a product feed (Google Merchant XML) for a website on OpenCart
16 USD
It is necessary to find a direct link to the active product feed (XML) of a competitor for Google Merchant Center Platform (CMS): OpenCart / ocStore Find the original feedRequirements for the result: Working link to the XML file Python, Data Parsing ∙ 8 days back ∙ 29 proposals |
Development of a TikTok farm (content factory)It is necessary to develop a system for centralized management of multiple TikTok accounts with automatic content publishing, using individual proxies and simulating natural account activity. Functional Requirements1. Account Management Adding and removing TikTok accounts.… Python, Bot Development ∙ 8 days 11 hours back ∙ 22 proposals |