Skip to content

Instantly share code, notes, and snippets.

View animaux's full-sized avatar

Alexander Rutz animaux

View GitHub Profile

extract audio objects from bluray (audio)

Atmos audio objects are not speaker-based tracks, but rather discrete audio sources that can be moved in a virtual space and will be rendered on your player using the available hardware (speakers and their positions). Exceptions are »beds«, for example the subwoofer channel.

1. do a backup of your BD with MakeMKV

2. check in BDMV/STREAM for the .mt2s that contains what you are looking for (usually the biggest file)

3. use ffmpeg to get info about the streams included and extract the one you need, for example

#!/usr/bin/perl
# Perl Script to convert SVG images including PNG24 encoded images to SVG with PNG8 while retaining transparency
# Requirements:
# sudo cpan Image::Magick
use strict;
use warnings;
use Image::Magick;
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="utf-8" />
<style>
body {
font-family: Georgia;
font-size: 20px;
line-height: 1.35em;
@animaux
animaux / index.html
Created March 16, 2021 20:11 — forked from rfriberg/index.html
San Juan Island - Interactivity Demo
<!DOCTYPE html>
<html lang="en">
<head>
<title>San Juan Island Geology - Interactivity</title>
<meta charset="utf-8">
<link rel="stylesheet" href="https://mapzen.com/js/mapzen.css">
<script src="https://mapzen.com/js/mapzen.min.js"></script>
<style>
#map {
height: 100%;
@animaux
animaux / custom.css
Last active July 21, 2020 18:43
Symphony CMS Backend CSS override for use with backend-assets extension
/* backend CSS-overrides */
/* most recent Version here —> https://gitlab.com/animaux/kickstart/-/blob/master/workspace/backend-assets/custom.css */
/* colors */
:root {
--farbeA: 240,200,120; /* rather bright */
--farbeB: 0,30,60; /* rather dark */
}
@animaux
animaux / data.next_month.php
Created February 19, 2019 21:24
Symphony CMS Custom Datasource. Displays next month as param in the param pool.
<?php
require_once(TOOLKIT . '/class.datasource.php');
class datasourcenext_month extends Datasource{
function about(){
return array(
'name' => 'Next Month',
'author' => array(
@animaux
animaux / translang.xsl
Last active June 21, 2018 20:16
XSL function: Picks a translated string from a predefines set of variables. #symphony-cms
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:a="http://getsymphony.com/functions"
xmlns:func="http://exslt.org/functions"
xmlns:exslt="http://exslt.org/common"
xmlns:dyn="http://exslt.org/dynamic"
extension-element-prefixes="func dyn exslt a">
<!--
@animaux
animaux / Lucida Grande proper hyphen-ndash.css
Last active August 29, 2017 09:58
CSS fix for Lucida Granda hyphen-ndash-mixup
@font-face {
font-family: 'Ndash';
src: local('Arial');
unicode-range: U+2013-2014, U+002D;
}
body,
input,
textarea {
font-family: 'Ndash', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, 'Lucida Grande', Leelawadee, Tahoma, Verdana, sans-serif;
@animaux
animaux / seminar.xsl
Last active June 21, 2018 19:31
Symphony CMS Page consuming external XML via a external datasource and transforming some content for XML-import. #symphony-cms
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
extension-element-prefixes="dyn exslt str"
xmlns:exslt="http://exslt.org/common"
xmlns:dyn="http://exslt.org/dynamic"
xmlns:str="http://exslt.org/strings">
<xsl:output method="xml"
encoding="UTF-8"
@animaux
animaux / test.md
Created March 21, 2016 09:42
Test

adf gadfg