Skip to content

Instantly share code, notes, and snippets.

View chgeuer's full-sized avatar
🏠
Working from Düsseldorf

Dr. Christian Geuer-Pollmann chgeuer

🏠
Working from Düsseldorf
View GitHub Profile
- task: CreateWorkItem@1
condition: not(succeeded())
inputs:
workItemType: Issue
title: 'Created by build $(Build.DefinitionName)-$(Build.BuildNumber)'
assignedTo: '$(Build.RequestedFor) <$(Build.RequestedForEmail)>'
associate: true
@chgeuer
chgeuer / ffmpeg.md
Created November 21, 2019 21:36 — forked from protrolium/ffmpeg.md
using ffmpeg to extract audio from video files

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

Convert WAV to MP3, mix down to mono (use 1 audio channel), set bit rate to 64 kbps and sample rate to 22050 Hz:

ffmpeg -threads 0 ^
-i input.mp4 ^
-r 24 -g 48 -keyint_min 48 -sc_threshold 0 -c:v libx264 ^
-s:v:0 640x360 -b:v:0 1200k -maxrate:v:0 1320k -bufsize:v:0 1200k ^
-s:v:1 960x540 -b:v:1 2400k -maxrate:v:1 2640k -bufsize:v:1 2400k ^
-s:v:2 1280x720 -b:v:2 3100k -maxrate:v:2 3410k -bufsize:v:2 3100k ^
-s:v:3 1920x1080 -b:v:3 5200k -maxrate:v:3 5720k -bufsize:v:3 5200k ^
-b:a 128k -ar 44100 -ac 2 ^
-map 0:v -map 0:v -map 0:v -map 0:v -map 0:a ^
-f hls -var_stream_map "v:0,agroup:audio v:1,agroup:audio v:2,agroup:audio v:3,agroup:audio a:0,agroup:audio" ^

passing a single object

main.json

{
    "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",
    "contentVersion": "1.0.0.0",
    "parameters": {
        "tenantName": { "type": "string" },

Plaintext in Pyramidenform

                       D
                      I E
                     S I S
                    T E I N
                   E T W A S
                  L A E N G E
                 R E R B E I S
@chgeuer
chgeuer / Main.java
Last active December 20, 2019 11:49
Ogg2Wav
package com.microsoft.cse;
import java.io.*;
import java.nio.file.*;
public class Main {
private static class Pump implements Runnable {
private final InputStream is;
private final OutputStream os;