def require_ffmpeg(test_case):
    """
    Decorator marking a test that requires FFmpeg.

    These tests are skipped when FFmpeg isn't installed.

    """
    import subprocess

    try:
        subprocess.check_output(["ffmpeg", "-h"], stderr=subprocess.DEVNULL)
        return test_case
    except Exception:
        return unittest.skip("test requires ffmpeg")(test_case)

    Decorator marking a test that requires FFmpeg.

    These tests are skipped when FFmpeg isn't installed.

    
dpkd/transformers/tests/pipelines/test_pipelines_automatic_speech_recognition.py