Skip to content

Instantly share code, notes, and snippets.

View ThomasLobker's full-sized avatar

Thomas Lobker ThomasLobker

  • MediaServe International
  • The Netherlands
View GitHub Profile
#!/usr/bin/env python
import sys
import os
import thread
import threading
import time
import syslog
import netifaces
import serial
import Queue
@ThomasLobker
ThomasLobker / testmedia.sh
Last active March 31, 2019 09:06
Test media files with ffmpeg and echo all broken files to stderr
#!/bin/bash
# Usage:
# ./testmedia.sh 2>~/broken_files
# Make a temporary file
TEMP=`mktemp`
# Find all media files in current directory
find -type f -name '*.mkv' -o -name '*.avi' > "${TEMP}"