cap_iab_fill - Linux


cap_iab_fill is a command-line tool for encapsulating Internet Advertising Bureau (IAB) data into the CAP framework. It is designed to facilitate the seamless integration of IAB-standard data into CAP-compliant content analysis pipelines.


cap_iab_fill [options] <input-file> <output-file>


  • -h, –help: Displays help information.
  • -v, –verbose: Enables verbose output.
  • -q, –quiet: Suppresses non-error output.
  • -d, –data-dir: Specifies an alternative directory to load IAB data files from. Default: "/usr/share/cap_iab_fill"


Simple encapsulation:

cap_iab_fill input.json output.cap

Encapsulating with custom data directory:

cap_iab_fill -d /custom/data-dir input.json output.cap

Verbose output:

cap_iab_fill -v input.json output.cap

Common Issues

  • Data file not found: Ensure the specified IAB data files are available in the default data directory or the one specified with the -d flag.
  • Invalid input file: The input file must be in valid JSON format.
  • Invalid output file: The output file must be writable and have a .cap extension.


Combine with other CAP tools:

cap_inspect $(cap_iab_fill input.json output.cap)

Use in scripts:


input_files=("input1.json" "input2.json")
for file in "${input_files[@]}"; do
  cap_iab_fill "$file" "$output_file"

Related Commands

  • cap_inspect: CAP content analysis tool
  • cap_dehydrate: CAP data extraction tool