>

instant-thinking.de

just enough to get you started and leave you confused

TV-Serien mit Handbrake rippen

| Kommentare

Filme von DVDs zu rippen ist simpel. Man nimmt einfach Handbrake, schaut nach dem DVD-Titel mit der längsten Spieldauer und legt los.

Blöd ist es, wenn es sich bei der DVD um eine Serien-DVD handelt und die einzelnen Folgen in die Titel der DVD verpackt sind. Das schaut etwa bei der fünften Staffel von Lauras Stern1 so aus:

Der erste Titel enthält alle Folgen am Stück, der elfte ist ein elfsekündiger Warner-Brothers-Jingle. Dazwischen befinden sich die neun einzelnen Folgen die ich eigentlich haben will.

Die einzige Möglichkeit die man hier nun regulär hat, sich wenigsten ein bisschen elend nervtötendes auf-den-Computer-warten-bis-der-mal-fertig-mit-einer -Folge-ist zu ersparen, ist die Queue.

Das bedeutet, jeden gewünschten Titel einzeln auszuwählen und in die Queue zu stellen. Wenn alle da sind gibt man Handbrake das Start, und es werden alle Titel am Stück mit den gewählten Einstellungen gerippt. Weitere Automatisierungsmöglichkeiten gibt es in der GUI nicht.

Daher ist es ein Glück, dass Handbrake auch als CLI-Applikation angeboten wird. Diese kann man einfach herunterladen und irgendwo in den eigenen $PATH legen. ~/bin bietet sich da an2.

Um nun alle neun Folgen zu rippen ohne auch nur einen Klick tätigen zu müssen genügt ein Einzeiler in der Shell:

Lauras Stern Beispiel
1
for i in `seq 2 10`; do f=$(($i-1)); HandBrakeCLI -i ~/Movies/DVD-Rips/LAURAS_STERN_VOL5.dvdmedia/ -t $i --preset "High Profile" -o Lauras.Stern.S05E$f.mp4; done

Diese Zeile ist im Prinzip ein einzelner for-Loop, der in der Variablen i mit Hilfe von seq die Zahlen von 2-10 durchläuft. In jedem Durchlauf wird als erstes die Variable f mit i weniger 1 belegt. Alsdann wird HandBrakeCLI aufgerufen. Hinter -i befindet sich die Input-Datei. Hier ein bereits mit RipIt auf die Festplatte gebanntes DVD-Image3. Hinter -t wird der zu rippende Titel aus der Variablen i bestimmt. Das benutzte Handbrake-Preset ist das High Profile. Hinter -o folgt dann noch ein passend benannter Dateiname in dem die Variable f jeweils für die passende Numerierung der Folgen sorgt.

So spart man sich auch noch die Umbenennerei und hat die Dateinamen in einem schönen Format, um automatisierten Meta-Daten Ergänzern wie iFlicks einen guten Start zu verschaffen.

(For-Loop via: MetaFilter. Doppelklammern-Syntax via: Bashguru.)

  1. Ja, ich könnte den Titelsong singen wenn man mich nachts um drei weckte und drum bäte. Fehlerfrei.

  2. Wie das ganze unter Windows funktioniert kann ich leider nicht sagen…

  3. Mit dem ensprechenden Pfad würde es aber auch eine DVD im Laufwerk tun…

QuickLinks vom 13. März bis zum 09. April

| Kommentare

Meine pinboard.in-Links vom 13. März bis zum 09. April:

  • Robot Framework - is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). It has easy-to-use tabular test data syntax and it utilizes the keyword-driven testing approach. Its testing capabilities can be extended by test libraries implemented either with Python or Java, and users can create new higher-level keywords from existing ones using the same syntax that is used for creating test cases.
  • dArt - is a simple, non-interactive command line tool to fetch artwork from Apple’s servers. It supports songs, music videos, movies, short films, TV shows, iBooks, audiobooks, OS X/iOS apps and podcasts.
  • PushDialer - Initiate outbound phone calls on your iPhone from your computer using Push Notifications.
  • huginn - is a system for building agents that perform automated tasks for you online. They can read the web, watch for events, and take actions on your behalf. Huginn’s Agents create and consume events, propagating events along a directed event flow graph. Think of it as Yahoo! Pipes plus IFTTT on your own server. You always know who has your data. You do.
  • SCM Breeze - is a set of shell scripts (for bash and zsh) that enhance your interaction with tools such as git. It integrates with your shell to give you numbered file shortcuts, a repository index with tab completion, and many other useful features.
  • ponysay - cowsay reimplemention for ponies.
  • Selfoss - The new multipurpose rss reader, live stream, mashup, aggregation web application.
  • osxmonad - This is a library which allows XMonad to manage Mac OS X windows.
  • Antigen - is a small set of functions that help you easily manage your shell (zsh) plugins, called bundles. The concept is pretty much the same as bundles in a typical vim+pathogen setup. Antigen is to zsh, what Vundle is to vim.
  • FileBot - is the ultimate tool for organizing and renaming your movies, tv shows or anime, and music well as downloading subtitles and artwork. It’s smart and just works.

Ponysay

| Kommentare

Seit Urzeiten gibt es diese Anwendungen, die eigentlich niemand braucht, die aber trotzdem total cool sind, weil es eben geht.

Ein Paradebeispiel ist ponysay. Ein wrapper für cowsay im My little Pony style

Next up:

funfact | ponsay in die .bashrc schreiben, in der funfact schon echt lange dieses alias ist:

funfact alias
1
alias funfact="elinks -dump randomfunfacts.com | sed -n '/^| /p' | tr -d \|"

Weil es geht.

Musik DVDs zu MP3 rippen mit OS X

| Kommentare

Ich habe da einige echt tolle Musik DVDs im Regal stehen. Die gefallen mir so gut, die würde ich auch gerne mal einfach nur hören. Beim laufen. Beim Auto fahren. So ging es mir etwa mit der wirklich sehr schönen1 DVD An Evening with the Dixie Chicks. Gute Idee, da gibt es doch sicher was in diesem Internet…

Ich machte mich also auf, um erneut2 Geld auszugeben und die Tracks als Audio-Version zu erstehen. Eine recht naive Idee wie sich heraus stellen sollte…

Audio-Version kaufen - Geld ausgeben im Internet ist manchmal schwierig

iTunes so: “Vielen Dank für deine Suchanfrage, wir haben hier diese wunderbare Videodatei3…”

Ich so: “Narf. Danke, aber das habe ich ja schon hier als DVD rumstehen…”

Amazon so: “Vielen Dank für deine Suchanfrage, wir haben hier diese wunderbare DVD…”

Ich so: “Narf. Ja, genau diese DVD. Habe ich schon. Ich möchte Audio only. Was ist denn bloss so schrecklich schwer daran?”

Pirate Bay so: “Vielen Dank für deine Suchanfrage, wir haben hier diese wunderbaren Country MP3@320kbps…”

Ich so: “Tja. Seufz.”

Was also tun? Immerhin ist dieser BitTorrent Kram nicht für jeden etwas und es ist ja möglich4, dass die nächste DVD nicht als Audio-Rip vorliegt.

DVD zu Audio rippen - Selber machen ist manchmal leichter

Also macht man das eben selbst. Ich finde das ist ethisch sehr vertretbar.

Ich habe versucht, den Kram, den ich ja doch schon besitze, noch einmal zu kaufen und habe davon abgesehen, meinen Kram durch einen BitTorrent Download anderen Leuten zur Verfügung zu stellen, die die DVD potentiell eben nicht im Regal stehen haben. Also: Good Karma.

So habe ich das getan:

DVD rippen

Um an den DVD-Content zu kommen nimmt man heute üblicherweise Handbrake. Hier, wie üblich, den längsten Titel, nämlich den Hauptfilm, auswählen und im Preset Drawer Regular / Normal einstellen.

Wenn der Rip nur für das Audio gedacht ist, kann man die Video-Qualität auch auf Egal stellen und so einiges an Encoding Zeit und CPU-Cycles sparen. Dazu einfach die Video Quality per Constant Quality konfigurieren und den langen Regler ganz nach links ziehen.

Das ganze klappt natürlich auch mit total fancy gerenderten Rips in awesome Qualität. Nur das encoden ist dann eben aufwändiger und dauert länger.

Bei den Audio-Einstellungen sollte dagegen nicht gespart werden. Dort wählt man, sofern vorhanden, den 2.0 ch Track aus. Ein 5.1 ch Track tut es auch, ist dann aber eben nicht professionell auf Stereo runtergemixt worden.

Als Codec wird AAC (CoreAudio) benutzt, Mixdown ist Stereo, die Samplerate bleibt auf Auto und die Bitrate wird auf 320 erhöht.

Zum Schluss noch sicherstellen, dass unter Chapters das Erstellen von Kapitelmarken aktiviert ist.

Dann kann Handbrake zu Werke gehen und aus der DVD eine Datei erstellen.

Audio extrahieren

Man nehme anschliessend das kleine und sehr feine Extract Movie Soundtrack um die Audio-Informationen aus der Video-Datei zu extrahieren.

Mit den Standard-Einstellungen exportiert das Programm pro gefundenem Kapitel eine AIFF-Datei auf den Desktop. Das ist ein verlustfreies Format und genau so schon in iTunes abspielbar.

In iTunes hineingeworfen kann man die Songs dann taggen, mit CoverArt versehen und auch in AAC- oder MP3-Dateien umwandeln. Ganz wie es beliebt.

Fazit

In einer idealen Welt läge jeder Musik-DVD ein Download-Coupon bei, mit dem man sich die Songs dann einfach als fertige Audio-Dateien herunterladen könnte5. In einer etwas weniger idealen Welt6, wäre es immerhin möglich sich den Audio-Teil noch einmal als CD oder Download zu kaufen.

Aber bis es soweit ist, kann man ja auch so verfahren und sich unterwegs an Musik erfreuen, die ansonsten ein trauriges und eher stilles Dasein im Regal gefristet hätte.

Good Karma.

(via: ifunia.com)

  1. Ja, ich höre Country. Und Western…

  2. In Worten: Erneut!

  3. Nur im US-Store, versteht sich von selbst…

  4. Wenn auch höchst unwahrscheinlich…

  5. Das könnte man sich ja, beispielsweise, von Vinyl-LPs abschauen…

  6. Ausser man betrachtet die Sache von der Industrie-Seite…

QuickLinks vom 01. März bis zum 13. März

| Kommentare

Meine pinboard.in-Links vom 01. März bis zum 13. März:

  • Paperless - is a command-line tool for Mac OS X that will help you automate your paperless workflow from your scanner to your e-filing cabinet. Paperless analyzes your scanned documents and processes them through a set of user defined rules. These rules determine how and where to file the document. The entire process is entirely automated so that all you need to do is press the scan button on your scanner! While you can run Paperless directly from the command-line (via Terminal.app), it would work best if it were combined with an application like Hazel or folder actions. If your scanner is configured to place a document directly into a folder (ScanSnap is awesome), these tools can automatically launch Paperless to tag and process your document so that you never have to look at it again. (Well until you need to actually find it.)
  • Ry’s Objective-C Tutorial - This tutorial is the place to learn the Objective-C programming language. It’s designed to serve as both a concise quick-reference and a comprehensive introduction for newcomers to the language. A familiarity with basic programming concepts like variables, functions, and objects is recommended, but not strictly required.
  • Ry’s Git Tutorial - is a complete introduction to distributed version control with a focus on practical command line usage. We explain Git’s robust branching, merging, and collaboration capabilities from the ground up, so prior experience with centralized systems like SVN or CVS is not required. This tutorial is an updated release of Ry’s Friendly Guide to Git, an e-book originally published through the Amazon Kindle Store for $6. It is now available free of charge.
  • Defer - is a Google Chrome extension to save your links to any of the most popular services for reading later: Instapaper, Readability, Pocket, and Kippt.
  • Mininet - creates a realistic virtual network, running real kernel, switch and application code, on a single machine (VM, cloud or native), in seconds, with a single command. It is a network emulator which creates a network of virtual hosts, switches, controllers, and links. Mininet hosts run standard Linux network software, and its switches support OpenFlow for highly flexible custom routing and Software-Defined Networking. Mininet supports research, development, learning, prototyping, testing, debugging, and any other tasks that could benefit from having a complete experimental network on a laptop or other PC.
  • Windows 95 Tips, Tricks, and Tweaks - Windows needs a lock of your hair to continue…
  • Slogger - indexes various public social services and creates Day One (http://dayoneapp.com/) journal entries or plain text Markdown files for them. It allows you to keep a personal journal that collects your online social life automatically, all in one place.
  • git-remote-gcrypt - a git remote helper for GPG-encrypted remotes. The aim is to provide confidential, authenticated git storage and collaboration using typical untrusted file hosts or services.
  • Koken - is a free system designed for photographers, designers, and creative DIYs to publish independent websites of their work. Koken comes with a free publish services plugin for Adobe Photoshop Lightroom that makes updating, editing and replacing content easy.
  • CamStudio - is able to record all screen and audio activity on your computer and create industry-standard AVI video files and using its built-in SWF Producer can turn those AVIs into lean, mean, bandwidth-friendly Streaming Flash videos (SWFs)

Gone fishing

| Kommentare

Heute geht es mit einem großen Teil der buckligen Verwandtschaft Sippschaft Familie in den Urlaub. Wir werden die Insel Texel heimbesuchen und hoffentlich ein paar feine Tage bei bestem Wetter im Ferienpark De Krim verbringen.

Zwanzig Leute1 in einem Haus, das wird sicher ein großartiges Abenteuer für alle Beteiligten. Wenn alles gut geht, sprechen wir auch sicher in einer Woche noch miteinander…

Bis dahin, be good, take care.

(Das Texel-Bild ist von der NASA via den Wikimedia-Commons)

  1. Davon sechs Kinder zwischen 6 Monaten und 5 Jahren…

Bastian Newell - Trance in Düsseldorf

| Kommentare

Auf dieser Seite werden ja hin und wieder verschiedene Musiker im Freundes- und Bekanntenkreis vorgestellt und/oder Veranstaltungshinweise gegeben.

Diese Tradition wird heute mal wieder fortgeführt. Es geht um meinen Nachbarn Sebastian aka DJ BastiN aka Bastian Newell.

Der Mann macht hin und wieder ein paar Trance-Mixe und hat nun in zwei Wochen, genauer, am 23. März 2013, die Möglichkeit vor einem großen Publikum bei Trance in Düsseldorf aufzulegen.

Er befindet sich bereits im Finale des DJ-Contests, der bis Samstag den 16. März 2013 läuft und benötigt nun noch ein paar Stimmen, um sich gegen die beiden verbleibenden Konkurrenten durchsetzen. Die sind auch nicht schlecht, aber Basti ist besser.

Seinen Mix findet ihr direkt auf seinem Soundcloudprofil: TiD DJ-Contest - Promo Warm-Up Mix.

Wenn ihr mithelfen möchtet1 macht bitte folgendes:

  1. Die Trance in Düsseldorf Facebook-Seite besuchen und Gefällt mir klicken. Das dann bis mindestens zum 23. März 2013 beibehalten.
  2. Auf der Voting Seite für Bastian Newell stimmen.

Und dann am besten am 23. März auch hingehen und den Mann live an den Turntables sehen und hören. Das wird sicher gut.

Vielen Dank für die Aufmerksamkeit und die Unterstützung, hier geht es nun wieder weiter mit dem gewohnt geekigen Programm…

  1. Und einen Facebook-Account besitzt…

Vim Pedal

| Kommentare

When the pedal is pressed down, the pedal types “i” causing VIM to go into Insert Mode. When released, it types “Esc” and you are back in Normal Mode.

Ein Vim-Pedal! Das ist ja fantastisch!

(via: 256bit.org Blog)

QuickLinks vom 30. Januar bis zum 01. März

| Kommentare

Meine pinboard.in-Links vom 30. Januar bis zum 01. März:

  • Ostinato - is an open-source, cross-platform network packet crafter/traffic generator and analyzer with a friendly GUI. Craft and send packets of several streams with different protocols at different rates. Ostinato aims to be “Wireshark in Reverse” and become complementary to Wireshark.
  • Discourse - is the 100% open source, next-generation discussion platform built for the next decade of the Internet. Whenever you need …a mailing list, a forum to discuss something or a chat room where you can type paragraphs… consider Discourse.
  • Solr - is the popular, blazing fast open source enterprise search platform from the Apache Lucene project. Its major features include powerful full-text search, hit highlighting, faceted search, near real-time indexing, dynamic clustering, database integration, rich document (e.g., Word, PDF) handling, and geospatial search. Solr is highly reliable, scalable and fault tolerant, providing distributed indexing, replication and load-balanced querying, automated failover and recovery, centralized configuration and more.
  • completeme - is a python script that’ll allow you to auto-complete filenames and launch them in an editor, much like GitHub’s ‘t’ keyboard shortcut. Rather than tab-completing to oblivion (ever worked on a Java project?), just start typing the name of the file, and when you hit enter, it’ll open that file in your favorite $EDITOR. Uses files stored in the current GitHub repository and falls back on all files below the current working directory.
  • goomwwm - (Get out of my way, Window Manager!) is an X11 window manager implemented in C as a cleanroom software project. It manages windows in a minimal floating layout, while providing flexible keyboard-driven controls for window switching, sizing, moving, tagging, and tiling. It is also fast, lightweight, modeless, Xinerama-aware, and EWMH compatible wherever possible.
  • Padrino - is a ruby framework built upon the Sinatra web library. Sinatra is a DSL for creating simple web applications in Ruby. Padrino was created to make it fun and easy to code more advanced web applications while still adhering to the spirit that makes Sinatra great!
  • SmoothMouse - is an experimental project to improve mouse & trackpad usability on OS X.
  • CriticMarkup - is a way for authors and editors to track changes to documents in plain text. As with Markdown, small groups of distinctive characters allow you to highlight insertions, deletions, substitutions and comments, all without the overhead of heavy, proprietary office suites.
  • tcplay - is a free (BSD-licensed), pretty much fully featured (including multiple keyfiles, cipher cascades, etc) and stable TrueCrypt implementation.
  • unpaper - is a post-processing tool for scanned sheets of paper, especially for book pages that have been scanned from previously created photocopies. The main purpose is to make scanned book pages better readable on screen after conversion to PDF. Additionally, unpaper might be useful to enhance the quality of scanned pages before performing optical character recognition (OCR).

Skate or Die - In Kray?

| Kommentare

Es ist der 1. März 2013.

Ich gebe die Hoffnung ja nicht auf, dass das Wetter bald mal wieder besser werden wird und der Frühling Einzug hält. Zumindest zweistellige Temperaturen und trockenes Wetter kämen mir sehr gelegen…

Denn ich möchte gerne mal wieder skaten gehen. In Kray. Da gibt es nämlich, schau, da oben ist ein Bild, im Volksgarten diesen netten, bowligen Skate Park den ich gerne mal ausprobieren möchte. Und da frage ich mich:

Wer kommt mit mir?1

Ja, ich bin über 30. Nein, das finde ich nicht schlimm. Nein, die Brigitte regt mich nicht auf.

Ich mag Skaten einfach so gern und werde immer noch kribbelig, wenn ich irgendwo einen netten Spot sehe2. Aller Wahrscheinlichkeit nach wird das alles nicht mehr so total super klappen wie früher, aber so ein bisschen rumrollern sollte doch drin sein. Es gibt ja auch Alte Herren Fußballmannschaften.

Ich fahre Inline-Skates. Ob du Skateboard, BMX oder Rollschuh fährst ist mir egal. Hauptsache es macht Spaß und wir brechen uns nichts wichtiges.

Für ein klein wenig mehr Infos zum Skate Park siehe auch die Spotbeschreibung im sk8mag. Wer den Spot noch mal ohne Graffiti sehen möchte wird bei Minus-Ramps fündig.

Also die Herren3: Seid ihr dabei?

(Bild via: VIEW Fotocommunity)

  1. Außer Flipper…

  2. Und weise auch tüchtig auf dieses Rail und jene Curb hin, fragt mal Kathi…

  3. Und sehr gerne auch die Damen…