Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

ffmpeg python cut video

vid = (
    input_vid
    .trim(start = 100, end = 160)
    .setpts('PTS-STARTPTS')
)
aud = (
    input_vid
    .filter_('atrim', start = 100, end = 160)
    .filter_('asetpts', 'PTS-STARTPTS')
)

joined = ffmpeg.concat(vid, aud, v=1, a=1)
output = ffmpeg.output(joined[0], joined[1], 'out.mp4')
output.run()
Comment

PREVIOUS NEXT
Code Example
Python :: how to make a pythoon turtle follow another? 
Python :: how to rename columns in python 
Python :: two loop type python 
Python :: convert video to text python 
Python :: pyAudioAnalysis 
Python :: How to set font size of Entry in Tkinter 
Python :: bot ping discord.py 
Python :: sklearn cross validation score 
Python :: on click on image pygame 
Python :: drf default pagination 
Python :: python get response headers 
Python :: numpy get index of n largest values 
Python :: turtle write 
Python :: python initialise dataframe 
Python :: remove first 2 rows in pandas 
Python :: column.replace 
Python :: python get current month 
Python :: pyhton regex to find string in file 
Python :: del keyword in python 
Python :: python empty text file 
Python :: python read html table 
Python :: delete specific indeces from numpy array 
Python :: matplotlib plot 2d point 
Python :: rotate image by specific angle opencv 
Python :: rename column pandas 
Python :: python os remove extension 
Python :: save dictionary to file numpy 
Python :: how to use with open 
Python :: python read from stdin 
Python :: what is join use for in python 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =