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
#!/bin/bash | |
# This will transcode the file given as an argument into h264/aac. It is designed to be used automatically (triggered by inotify or systemd.path) | |
# so it is very strict on the output. It checks that the output is valid, an that it is the same duration as the input, if it is correct it will | |
# delete the original. | |
# If your ffmpeg is not compiled with libfdk_aac, you can change the libfdk_aac to "aac" and use ffmpeg's encoder which is almost as good as libfdk. | |
# SECONDS_FUDGE is the number of seconds plus or minus that the transcoded video has to be within duration from the original or we reject it | |
SECONDS_FUDGE=${SECONDS_FUDGE:-15} # 15 seconds is not too bad if we're mainly doing films. | |
function checkPacked() { |
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
from azure.mgmt.dns import DnsManagementClient | |
#from azure.common.credentials import UserPassCredentials | |
from azure.common.credentials import ServicePrincipalCredentials | |
from json import load | |
from urllib2 import urlopen | |
# Replace this with your subscription id | |
subscription_id = '33333333-3333-3333-3333-333333333333' | |