pyguymer3.media.ffprobe

pyguymer3.media.ffprobe(fname, /, *, cwd=None, ensureNFC=True, ffprobePath=None, playlist=-1, timeout=60.0)[source]

Run “ffprobe” on a file and return the format and stream information.

Parameters:
  • fname (str) – the file to be surveyed

  • cwd (str, optional) – the child working directory

  • ensureNFC (bool, optional) – ensure that the Unicode encoding is NFC

  • ffprobePath (str, optional) – the path to the “ffprobe” binary (if not provided then Python will attempt to find the binary itself)

  • playlist (int, optional) – the playlist within the Blu-ray folder structure to be surveyed

  • timeout (float, optional) – the timeout for any requests/subprocess calls

Returns:

ans – the format and stream information

Return type:

dict

Notes

Copyright 2017 Thomas Guymer [1]

References