This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import sys | |
def main(): | |
print("OpenCV Version: " + str(cv2.__version__)) | |
# Loading image data (GRAYSCALE) | |
filename = "image.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import sys | |
def main(): | |
print("OpenCV Version: " + str(cv2.__version__)) | |
# Loading image data (GRAYSCALE) | |
filename = "image.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.mp4 -vn output_audio.mp3 | |
ffmpeg -i input.mp4 -an output_movie.mp4 | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -ss 00:02:00 -i input.mp4 -ss 0 -t 60 -c:v copy -c:a copy -async 1 -strict -2 output.mp4 | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numpy as np | |
import cv2 | |
import sys | |
def main(): | |
print("OpenCV Version: " + str(cv2.__version__)) | |
# Loading image data (GRAYSCALE) | |
filename = "image.png" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.mp4 | |
ffmpeg -codecs | |
ffmpeg -i input.mp4 -c:v hevc output.mp4 | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i ./input.mp4 -vb 10000k output_10000k.mp4 | |
ffmpeg -i ./input.mp4 -vb 5000k output_5000k.mp4 | |
ffmpeg -i ./input.mp4 -vb 3000k output_3000k.mp4 | |
ffmpeg -i ./input.mp4 -vb 1000k output_1000k.mp4 | |
ffmpeg -i ./input.mp4 -vb 100k output_100k.mp4 | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.mp4 | |
ffprobe input.mp4 | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ffmpeg -i input.mp4 -s 1920x1080 output1.mp4 | |
ffmpeg -i input.mp4 -vf scale=-1:1080 output2.mp4 | |
pause |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cv2 | |
import sys | |
import math | |
import numpy as np | |
from matplotlib import pyplot as plt | |
def main(): | |
print("OpenCV Version: " + str(cv2.__version__) + "\n") |