Checking AV Properties - Basics

Peter Bubestinger-Steindl
(peter @ ArkThis.com)

Abstract

This is about how to identify basic technical properties of audiovisual files.

Such as container format, video/audio encoding and other embedded information, such as metadata, etc.

The “Digital Video Trinity”

Structure

VLC

  • Great videoplayer
  • 99% chance you have it on the computer
  • Allows quick-check of tech-MD
    (Shortcut: Ctrl + J (linux/win))
  • For all formats VLC can play! 😄️

Website: videolan.org/vlc

VLC

Very handy, but not the best for this job.

MediaInfo

“MediaInfo is a convenient unified display of the most relevant technical and tag data for video and audio files.”

Website: mediaarea.net/MediaInfo

MediaInfo

MediaInfo GUI

View ‘Easy’

  • General = container level
  • Video / Audio
  • Other

A/B comparison

(Only in view ‘Easy’)

  • Load more than 1 file:
    • Select multiple files
    • or drag/drop a whole folder
  • Scroll dropdown = switch between files

Excellent for a quick spotting of common/different values in a given set.

View ‘HTML’

View ‘HTML’

  • Nicer to read than view ‘Text’.
  • Identical content.

Machine Readable

(aka “parsable output formats”)

  • More suited for automated workflows.
  • Can be saved from GUI.
  • But: Usually commandline.

Machine Readable Output Formats

  • XML
  • JSON
  • CSV
  • EBUCore
  • PBCore
  • MPEG-7
  • FIMS

Report to File

  • Default:
    mediainfo myvideo.mkv > myvideo.mkv.mediainfo

  • XML Format (better):
    mediainfo --output=XML myvideo.mkv > myvideo.mkv.xml

Parsing Output

Built-in:
mediainfo --Inform="Audio;%Format%" myvideo.mkv

Using “xmlstarlet”:

xmlstarlet sel -t -m \
  "//_:media/_:track[@type='Audio']" \
  -c . -n \
  myvideo.xml`

Comments?

Questions?