Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

how to transcode a video in python using ffmpeg

ffmpeg -i input.mkv -c:a copy -s hd720 output.mkv
This modifies the video to 1280x720 in the output, but you can set the width and height manually if you want:

ffmpeg -i input.mkv -c:a copy -s 1280x720 output.mkv
This produces the exact same output as the earlier command. If you want to set custom sizes in FFmpeg, please remember that the width parameter (1280) comes before height (720).
Comment

PREVIOUS NEXT
Code Example
Python :: # Import KNeighborsClassifier from sklearn.neighbors 
Python :: turn list of arrays into array 
Python :: exercices pyton 
Python :: Python Tkinter ListBox Widget Syntax 
Python :: identify if a number is prime 
Python :: sphinx themes 
Python :: python if something exception 
Python :: python how to make a user input function 
Python :: print something python 
Python :: sklearn euclidean distance 
Python :: python random distribution 
Python :: arch python 
Python :: flask set mime type 
Python :: why is there a lot of numbers in python 
Python :: how to select number by twos in a list python next to each 
Python :: remove percentage in python 
Python :: if a or b in python 
Python :: how to add percentages to ylabel python 
Python :: networkx - remove small components from a graph 
Python :: wxpython menu callback stackoverflow 
Python :: how to push the element to array in python 
Python :: python regex words with apostrophe in middle 
Shell :: remove angular cli 
Shell :: restart postgres ubuntu 
Shell :: ubuntu extract rar 
Shell :: brew uninstall mysql 
Shell :: stop a process running on a port ubuntu 
Shell :: install grunt mac 
Shell :: the repository does not have a release file 
Shell :: m1 pod install 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =