Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma
You can get the list of supported formats with:
ffmpeg -formats
You can get the list of installed codecs with:
import numpy as np | |
import cv2 | |
img = cv2.imread('background.jpg') | |
overlay_t = cv2.imread('foreground_transparent.png',-1) # -1 loads with transparency | |
def overlay_transparent(background_img, img_to_overlay_t, x, y, overlay_size=None): | |
""" | |
@brief Overlays a transparant PNG onto another image using CV2 | |
import matplotlib.pyplot as plt | |
import numpy as np | |
def show_images(images, cols = 1, titles = None): | |
"""Display a list of images in a single figure with matplotlib. | |
Parameters | |
--------- | |
images: List of np.arrays compatible with plt.imshow. | |
When hosting our web applications, we often have one public IP
address (i.e., an IP address visible to the outside world)
using which we want to host multiple web apps. For example, one
may wants to host three different web apps respectively for
example1.com
, example2.com
, and example1.com/images
on
the same machine using a single IP address.
How can we do that? Well, the good news is Internet browsers