Compression Artifacts
Tools for compression artifacts to your simulated data
import lexset.compression_artifacts as ca
# Provide the directory path where your images are located
dir_path = "./data/"FFMPEG Encoding
# Call the function with desired parameters
ca.ffmpeg_encode(
dir_path=dir_path,
framerate=30, # Frame rate for the output video
codec="libx264", # Codec to use for the encoded video file
extension=".mp4", # Extension for the video file
bitrate_kbps=5000, # Target bitrate (kb/s) for the video file
bitrate_kbps_min=5000, # Minimum bitrate (kb/s) for the video file
bitrate_kbps_max=5000, # Maximum bitrate (kb/s) for the video file
bufsize=5000, # Buffer size of the H.264/H.265 video file
ffmpeg_path="ffmpeg" # Optional path to ffmpeg executable
)Arguments:
Last updated