Skip to content

Commit

Permalink
MOD: README.md AnalyzeDcp.php
Browse files Browse the repository at this point in the history
  • Loading branch information
cinemapub committed Sep 13, 2024
1 parent 186dee5 commit 9414e27
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 2 deletions.
70 changes: 69 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,75 @@ composer require brightfish/dcptoolkit
## Usage

```php
$toolkit = new Brightfish\DcpToolkit();
use Brightfish\DcpToolkit\Folders\AnalyzeDcp;

$dcp = AnalyzeDcp::simple($inputFolder);

/*
* Brightfish\DcpToolkit\Folders\File\SimpleDcp Object
(
[cplFile] => Brightfish\DcpToolkit\Folders\File\DcpFile Object
(
[name] => cpl_f2d8589c-b42e-4a99-8fca-9d992f7c77c3.xml
[path] => [folder]/cpl_f2d8589c-b42e-4a99-8fca-9d992f7c77c3.xml
[type] => Brightfish\DcpToolkit\Folders\File\Type Enum
(
[name] => CPL
)

[bytes] => 16253
)

[pklFile] => Brightfish\DcpToolkit\Folders\File\DcpFile Object
(
[name] => pkl_b61c6bff-7dce-454d-af3a-e92f285e19af.xml
[path] => [folder]/pkl_b61c6bff-7dce-454d-af3a-e92f285e19af.xml
[type] => Brightfish\DcpToolkit\Folders\File\Type Enum
(
[name] => PKL
)

[bytes] => 8957
)

[AssetMap] => Brightfish\DcpToolkit\Folders\File\DcpFile Object
(
[name] => ASSETMAP.xml
[path] => [folder]/ASSETMAP.xml
[type] => Brightfish\DcpToolkit\Folders\File\Type Enum
(
[name] => MAP
)

[bytes] => 1825
)

[mxfAudio] => Brightfish\DcpToolkit\Folders\File\DcpFile Object
(
[name] => pcm_20631b02-f23c-4422-91fc-f891228d0782.mxf
[path] => [folder]/pcm_20631b02-f23c-4422-91fc-f891228d0782.mxf
[type] => Brightfish\DcpToolkit\Folders\File\Type Enum
(
[name] => Sound
)

[bytes] => 25986426
)

[mxfVideo] => Brightfish\DcpToolkit\Folders\File\DcpFile Object
(
[name] => j2c_cf1893bf-b994-4552-b704-f65bb2abc7c6.mxf
[path] => [folder]/j2c_cf1893bf-b994-4552-b704-f65bb2abc7c6.mxf
[type] => Brightfish\DcpToolkit\Folders\File\Type Enum
(
[name] => Picture
)

[bytes] => 688606846
)

)
*/
```

## Testing
Expand Down
2 changes: 1 addition & 1 deletion src/Folders/AnalyzeDcp.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private static function detectType(DcpFile $dcpFile): Type
return Type::Picture;
}

return Type::UNKNOWN;
return Type::Picture;
}
if ($extension === 'cpl') {
return Type::CPL;
Expand Down

0 comments on commit 9414e27

Please sign in to comment.