wolfgangw / backports

Deep inspection of digital cinema packages
27 stars 12 forks source link

Feature: Add `--full-ids` option #85

Open overlookmotel opened 2 years ago

overlookmotel commented 2 years ago

This PR adds a new command line option --full-ids to output full asset IDs in reel reports.

For human-readability, the current output is nice. However, when parsing dcp_inspect's output in an automated process, having the full asset IDs is preferable. It's also useful with supplemental/VF DCPs where the full asset IDs do not appear anywhere else in the output for assets not included in the AssetMap.

The option is disabled by default i.e. default output is the same as before this PR.

Default output:

Number of Reels:  1
Reel 1:
142120  01:38:41+16 @ 24.0  Entry 00:00:00+00  c84584c0  MainPicture    (Referenced asset file not listed in Assetmap dictionary: Supplemental/VF/External)
142120  01:38:41+16 @ 24.0  Entry 00:00:00+00  74a9221c  MainSound  (Referenced asset file not listed in Assetmap dictionary: Supplemental/VF/External)
142120  01:38:41+16 @ 24.0  Entry 00:00:00+00  50a6cb6f  MainSubtitle   (SMPTE, 01:38:41+16, plaintext, timed text)
Total duration:
142120  01:38:41+16 @ 24.0

Output with --full-ids:

Number of Reels:  1
Reel 1:
142120  01:38:41+16 @ 24.0  Entry 00:00:00+00  c84584c0-094b-487b-b4de-35f092e97b2a  MainPicture    (Referenced asset file not listed in Assetmap dictionary: Supplemental/VF/External)
142120  01:38:41+16 @ 24.0  Entry 00:00:00+00  74a9221c-b12e-45d5-adcf-22eb1352f787  MainSound      (Referenced asset file not listed in Assetmap dictionary: Supplemental/VF/External)
142120  01:38:41+16 @ 24.0  Entry 00:00:00+00  50a6cb6f-7e7c-4781-829d-b4cb13daabbf  MainSubtitle   (SMPTE, 01:38:41+16, plaintext, timed text)
Total duration:
142120  01:38:41+16 @ 24.0