Write a python script (Jobyter notebook)
$10-30 USD
Paid on delivery
Hi,
I want to write a simple python script to cut videos into segments based on the timestamp. I have a very clear algorithm for this script, I could have done it myself but have no enough time now. So I just want you to implement the steps as I wrote here (hint: you can use FFmpeg library to perform this easily)
For each [file_list] do :
1. x = the value of the current record in file_list field (i.e [login to view URL])
2. y = the temporal_coordinates of the current record
3. z = if y has format [[login to view URL], [login to view URL]] which means timestamp [from,to] keep it here, if y has format [[login to view URL]] only, ignore.
4. separate z into two variables : [From] and [To] separated by the comma. For example if z=[184.927,187.646] then ==> From=184.927, To=187.646 (you may ignore the decimal number and convert this into int to get only 184 and 187)
5. convert [From] and [To] into readable timestamp format as : 00:00:00 means hh:mm:ss
( it currently looks like this : [184.927,187.646], which means From=184.927 means 184 seconds and 927 milliseconds from the beginning of the video whose name is [login to view URL], that means at 00:03:04, we can convert it to this format by diving into 60 (184/60) we can ignore the milliseconds.
at this point, you've got two clean timestamp formatted variables :
From = 00:00:00
To = 00:00:00
6. w = check the metadata field which looks like this {"1":"4","2":"2"} or {"1":"0"}, here we want ONLY to extract "1":"x" the pairs that starts with 1 and its corresponding value x, then save it in w.
if there is no such "1":"x" in the current record, ignore the record, and move to the next one. Example : if the metadata in the record looks like this : {"3":"0"} we ignore the entire record, and move to next one.
7. now we want to cut all the segments from the video x, based on the [From, To]
8. save each individual cut as: [login to view URL] (where x is the variable x from above, w is the variable w from above, and counter is the loop counter.
finish.
Project ID: #26784309
About the project
Awarded to:
Hi there, Yes sure. I get much from your details. Great exp with FFMPEG and Python scripting. Can do your task. Just connect with me to get started after making few clarifications. Best regards, Ishaq
9 freelancers are bidding on average $22 for this job
Hello ! I m a computer vision graduate and I have knowledge in both image and video processing using PYTHON I have done SIMILAR job with cutting parts from videos from codes that are so simple ! I can do the job in a More
Hello, I can do this script using python and FFmpeg, it is so easy I have experience working with FFmpeg and python, also I worked on similar project before, I am a computer science student in my last year, if you cho More
I can easily follow the steps you numbered in your post and as I have free time I can do it as soon as you want
I can do it with the clean code. I have a great expriance with python library. You can contact me if you want the clean code.