Any Software to trim video into multiple edit based on timeline

  • Thread starter Thread starter Deleted member 283687
  • Start date Start date
D

Deleted member 283687

Guest
Hi guys can suggest any software which does trimming a video into multiple pieces ( lets say the video 30.00 minutes ) i want it into 10 videos ,1st video from 00.00 to 02.37
second from 02.37 to 03.37 .so is there any software where i can add start and end point of every single video and it cuts all the videos at the same time and produces 10 video files.
waiting for your suggestion.
 
Looking for the same kind of software but haven't found yet, so was doing that manually!

I hope if it's not there someone in here can make it up using any open source video cutter!
 
I have a python script that does just that. It needs FFMPEG to work.
I can share it here if you think it will help.
it will be a great help thank you
 
It's a very basic script but it does the job.

The script is written in python meaning you'll need to install python. The script also requires you to install ffmpeg and have it on system path.

The attached image shows how the script expects the folder it is placed structured.
  • Input folder - where you store the video you want cut into different parts
  • Output folder - the folder where the script writes the videos to
  • parts.csv - a csv file containing the various video segments. you can indicate the segments in either seconds or minute:seconds format.
Code:
import os, subprocess, sys
import csv

def clipTrim(file,sections,outp):

    counter = 1
    for item in sections:
        subprocess.call("""ffmpeg -i "{}" -ss {} -to {} -c copy ".\\output\\{} {}" """.format(file,item[0],item[1],counter,outp), shell=True)
        counter+=1

    return None
    
if __name__ == "__main__":

    sections = []
    videoSections = "parts.csv"
    path = '.\\input'
    
    if len(sys.argv) == 1:
        with open("parts.csv",'rt') as infile:
            read = csv.reader(infile)
            for row in read:
                sections.append([row[0],row[1]])

    for file in os.listdir(path):
        if file.endswith(".wmv") or file.endswith(".mp4") or file.endswith(".avi"):
            clipTrim("{}\\{}".format(path,file),sections,file)
 

Attachments

  • folder structure.PNG
    folder structure.PNG
    51.5 KB · Views: 183
It's a very basic script but it does the job.

The script is written in python meaning you'll need to install python. The script also requires you to install ffmpeg and have it on system path.

The attached image shows how the script expects the folder it is placed structured.
  • Input folder - where you store the video you want cut into different parts
  • Output folder - the folder where the script writes the videos to
  • parts.csv - a csv file containing the various video segments. you can indicate the segments in either seconds or minute:seconds format.
Code:
import os, subprocess, sys
import csv

def clipTrim(file,sections,outp):

    counter = 1
    for item in sections:
        subprocess.call("""ffmpeg -i "{}" -ss {} -to {} -c copy ".\\output\\{} {}" """.format(file,item[0],item[1],counter,outp), shell=True)
        counter+=1

    return None
   
if __name__ == "__main__":

    sections = []
    videoSections = "parts.csv"
    path = '.\\input'
   
    if len(sys.argv) == 1:
        with open("parts.csv",'rt') as infile:
            read = csv.reader(infile)
            for row in read:
                sections.append([row[0],row[1]])

    for file in os.listdir(path):
        if file.endswith(".wmv") or file.endswith(".mp4") or file.endswith(".avi"):
            clipTrim("{}\\{}".format(path,file),sections,file)
THank you trying this and letting you know soon
 
It's a very basic script but it does the job.

The script is written in python meaning you'll need to install python. The script also requires you to install ffmpeg and have it on system path.

The attached image shows how the script expects the folder it is placed structured.
  • Input folder - where you store the video you want cut into different parts
  • Output folder - the folder where the script writes the videos to
  • parts.csv - a csv file containing the various video segments. you can indicate the segments in either seconds or minute:seconds format.
Code:
import os, subprocess, sys
import csv

def clipTrim(file,sections,outp):

    counter = 1
    for item in sections:
        subprocess.call("""ffmpeg -i "{}" -ss {} -to {} -c copy ".\\output\\{} {}" """.format(file,item[0],item[1],counter,outp), shell=True)
        counter+=1

    return None
  
if __name__ == "__main__":

    sections = []
    videoSections = "parts.csv"
    path = '.\\input'
  
    if len(sys.argv) == 1:
        with open("parts.csv",'rt') as infile:
            read = csv.reader(infile)
            for row in read:
                sections.append([row[0],row[1]])

    for file in os.listdir(path):
        if file.endswith(".wmv") or file.endswith(".mp4") or file.endswith(".avi"):
            clipTrim("{}\\{}".format(path,file),sections,file)
Tried it with small size video of 20 mb ,works find but when i try cutting a big video like 800 mb the python script not even opening ,momently closes when i try to start the script any idea why is this ? the 20 mb i have tried also mp4 format the 800 mb also mp4 format
 
Guys sorted out ,the script works wonderful i have put a space in the end of the text file i think ,thats why it was not working.
 
ffmpeg should do that from command line. Look into their documentation for more info.

Edit: Glad you sorted it out.
 
Checkout "Gilisoft Video Splitter"
I use this alot for splitting videos with variable segment options.

3344536_2.jpg
 
It's a very basic script but it does the job.

The script is written in python meaning you'll need to install python. The script also requires you to install ffmpeg and have it on system path.

The attached image shows how the script expects the folder it is placed structured.
  • Input folder - where you store the video you want cut into different parts
  • Output folder - the folder where the script writes the videos to
  • parts.csv - a csv file containing the various video segments. you can indicate the segments in either seconds or minute:seconds format.
Code:
import os, subprocess, sys
import csv

def clipTrim(file,sections,outp):

    counter = 1
    for item in sections:
        subprocess.call("""ffmpeg -i "{}" -ss {} -to {} -c copy ".\\output\\{} {}" """.format(file,item[0],item[1],counter,outp), shell=True)
        counter+=1

    return None
   
if __name__ == "__main__":

    sections = []
    videoSections = "parts.csv"
    path = '.\\input'
   
    if len(sys.argv) == 1:
        with open("parts.csv",'rt') as infile:
            read = csv.reader(infile)
            for row in read:
                sections.append([row[0],row[1]])

    for file in os.listdir(path):
        if file.endswith(".wmv") or file.endswith(".mp4") or file.endswith(".avi"):
            clipTrim("{}\\{}".format(path,file),sections,file)

Good option for video editing. Thanks for sharing.
 
Guys sorted out ,the script works wonderful i have put a space in the end of the text file i think ,thats why it was not working.

Great to hear that it works fine. I thought it could an issue with the script loading the whole file into memory.
 
Great to hear that it works fine. I thought it could an issue with the script loading the whole file into memory.
Do you have any idea how to add watermark for mass videos ,i have a software which does text watermark single video .If you know how to add text watermark for multiple videos at a time.
 
Do you have any idea how to add watermark for mass videos ,i have a software which does text watermark single video .If you know how to add text watermark for multiple videos at a time.

Not at the moment but I have been thinking of developing one. Will share it here if I do that soon
 
I used Ez video trimmer, a trash tool I found on an IM crack forum. Does this job 100% as you describe. I can upload it here if you like
 
I used Ez video trimmer, a trash tool I found on an IM crack forum. Does this job 100% as you describe. I can upload it here if you like
I have zero coding knowledge or running from cmd,the script which coldboot made is a wonderful tool which helped me ,nothing big he already shared it in the thread.Hope someone someday will find it helpful.
This community is beautiful ,helping each other.
 
Back
Top