Write a python script (Jobyter notebook)

Completed Posted 3 years ago Paid on delivery
Completed 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.

Python Software Development Software Architecture

Project ID: #26784309

About the project

9 proposals Remote project Active 3 years ago

Awarded to:

IshaqKN

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

$25 USD in 2 days
(69 Reviews)
5.3

9 freelancers are bidding on average $22 for this job

haeckerzz

messge me so I can help you right now

$20 USD in 1 day
(10 Reviews)
3.9
dellkj1996

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

$20 USD in 5 days
(6 Reviews)
2.4
OussamaOux

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

$30 USD in 5 days
(0 Reviews)
0.0
diegopereyra99

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

$20 USD in 1 day
(0 Reviews)
0.0
jinnawat8

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.

$15 USD in 3 days
(0 Reviews)
0.0