Command line/bash script for bulk video processing with FFmpeg - add sound files to videos
$10-30 USD
Completed
Posted over 7 years ago
$10-30 USD
Paid on delivery
Write a command line or a bash script to do a bulk video processing with FFmpeg - embed sound files into videos.
We have a number of video files which have no sound (for example [login to view URL], [login to view URL], etc.) and a number of audio files ([login to view URL], [login to view URL], [login to view URL], etc)
We also have a CSV file which describes at which point in video’s timeline we need to insert a particular audio file.
Batch processing must work one line at a time and be efficient enough to process thousands of videos.
CSV file format:
input_file_name, output_file_name, audio1, audio2, etc..
[login to view URL], [login to view URL], /audios/a/[login to view URL]|00:02, /audios/a/[login to view URL]|00:15, /audios/a/[login to view URL]|01:15, /audios/a/[login to view URL]|01:54
[login to view URL], [login to view URL], /audios/b/[login to view URL]|00:03, /audios/b/[login to view URL]|00:15, /audios/b/[login to view URL]|01:15
…
- [login to view URL] is our input file.
- /audios/b/[login to view URL]|01:15 means that /audios/b/[login to view URL] file must be added to the video at exactly 01:15 (minutes:seconds)
- [login to view URL] is the resulting file we expect.
Please let us know if you think this can be achieved in a more efficient way if we reformat the CSV file, but do note that we will need the script to be able to process thousands of videos, many audio files per video and variable audio timings.
You are welcome to explore FFmpeg documentation, as all required methods for adding multiple audio files to videos are provided there.
For this project please use any video and any audio files. Once you have demonstrated that script works with your own test audio/video we will supply our final files.
Ubuntu environment is preferred, but other Linux environments can also be considered.
This is a simple task, please only apply with your final bid if you have fully understood the requirements.
PLEASE ONLY SUBMIT YOUR PROPOSAL IF YOU ARE EXPERIENCED AND CAN DELIVER WITHIN 2 DAYS.
Hello. More 20 years programming experience.
I need more details to set real time and price.
Regards.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have some experience with ffmpeg, but did not do earlier exactly such task. So I have read documentation and performed some tests. It can be done relatively easy if audio files have same number of channels. I know that I'm newbie on Freelancer and have no reputation here, so I placing lower bid.
Dear Sir /Madam, I think this is doable by using bash script. Could you please send me some example Input files with CSV so that I can make a demo for you to see if you are satisfied.
Since I have been constantly working with bash script and audio/video encoding/decoding technology, I believe I can finish it properly and satisfy your need