README 759 B

123456789101112131415161718192021222324252627
  1. # libva-dump
  2. libva-dump allows dumping metadata and slices from videos.
  3. ## Usage
  4. To get started with libva-dump, a video player that supports VAAPI is required,
  5. such as VLC. Specific environment variables need to be set in order to use and
  6. configure the backend:
  7. * LIBVA_DRIVER_NAME: the libVA backend to use, must be set to "dump"
  8. * DUMP_COUNT: the number of frames to dump (defaults to 3 if unspecified)
  9. ## Example script
  10. An example script that takes the video to dump as first argument follows:
  11. ```
  12. #!/bin/sh
  13. export LIBVA_DRIVER_NAME=dump
  14. export DUMP_COUNT=250
  15. vlc "$1" > frames.h
  16. ```
  17. ## Output
  18. libva-dump will save dumped slices in the current directory, named following the
  19. "slice-%d.dump" format. This can be modified in `src/dump.c` if needed.