```
import glob
from ffprobe import FFProbe

# list all files in a directory.
path = "/directory/*"
files = glob.glob(path)

for file in files:
    # extract metadata from file
    metadata=FFProbe(file)

    for stream in metadata.streams:
        if stream.is_audio():
            print('Stream contains {} frames.'.format(stream.frames()))
```
```
import glob
from ffprobe import FFProbe

# list all files in a directory.
path = "/directory/*"
files = glob.glob(path)

for file in files:
    # extract metadata from file
    metadata=FFProbe(file)

    for stream in metadata.streams:
        if stream.is_audio():
            print('Stream contains {} frames.'.format(stream.frames()))
```