Resize / scale a video with FFmpeg
- Scale the
input.mp4
to a height of 600px. - Let FFmpeg choose a number which is divisible by 2 to avoid the
not divisible by 2
error.
ffmpeg -i input.mp4 -vf scale=-2:600,setsar=1:1 ouput.mp4
input.mp4
to a height of 600px.not divisible by 2
error.ffmpeg -i input.mp4 -vf scale=-2:600,setsar=1:1 ouput.mp4
DE283139298
Google Ireland Ltd
Gordon House, Barrow Street
#!/bin/python3 | |
# | |
# This script enables/disables the public/private keys for work and hobby. | |
import os | |
ACTIVATED_PRI = "/home/USERNAME/.ssh/id_ed25519" | |
ACTIVATED_PUB = "/home/USERNAME/.ssh/id_ed25519.pub" | |
INACTIVE_HOBBY_PRI = "/home/USERNAME/.ssh/id_ed25519.HOBBY" |
git log --name-only --pretty=format: | sort | uniq -c | sort -nr | head -n 30 |
#!/usr/bin/python | |
#split vcf files | |
import re | |
working_dir = '/home/umair/Documents/Contacts/' | |
input_file = 'contacts starred 26-06-2014.vcf' | |
output_seed = 'contacts-part-' | |
vcards_per_file = 1 |
#!/usr/bin/env ruby | |
# | |
# Ruby script to download a number of files | |
# from individual URLs via HTTP/HTTPS/FTP | |
# specified in an external file. | |
# | |
# Author: Tobias Preuss | |
# Revision: 2013-04-18 16:26 +0100 UTC | |
# License: Creative Commons Attribution-ShareAlike 3.0 Unported |
#!/bin/sh | |
# | |
# An example hook script to verify what is about to be committed. | |
# Called by "git commit" with no arguments. The hook should | |
# exit with non-zero status after issuing an appropriate message if | |
# it wants to stop the commit. | |
# | |
# Usage: | |
# Remove the .sh file extension when you put the script in your hooks folder! | |
# |
import org.gradle.internal.jvm.Jvm | |
println "Gradle uses Java ${Jvm.current()}" | |
// example output: Gradle uses Java 17.0.4.1 (JetBrains s.r.o. 17.0.4.1+0-17.0.4.1b469.62-9127311) |
#!/bin/python3 | |
import os | |
import sys | |
from shutil import copyfile | |
def getScriptPath(): | |
""" | |
Returns the full directory path of this script. | |
""" |
import com.squareup.moshi.Json; | |
import com.squareup.moshi.JsonAdapter; | |
import com.squareup.moshi.JsonReader; | |
import com.squareup.moshi.JsonWriter; | |
import java.io.IOException; | |
public final class EnumWithDefaultValueJsonAdapter<T extends Enum<T>> extends JsonAdapter<T> { | |
private final Class<T> enumType; | |
private final String[] nameStrings; | |
private final T[] constants; |