MXF Reader Lib

From AVObjects Knowledge Base
(Difference between revisions)
Jump to: navigation, search
Line 69: Line 69:
 
{{AVOProp|format|BSTR|ReadOnly|File format}}
 
{{AVOProp|format|BSTR|ReadOnly|File format}}
 
{{AVOProp|format_name|BSTR|ReadOnly|File format description}}
 
{{AVOProp|format_name|BSTR|ReadOnly|File format description}}
 +
{{AVProp|source|BSTR|ReadWrite|Name of file}}
 +
{{AVProp|start_time|double|ReadOnly|Start timecode}}
 +
{{AVProp|duration|double|ReadOnly|File duration in second}}
 +
{{AVProp|ext_audio|bool|ReadWrite|
 +
Enable external audio file,as example for Panasonic P2 }}
 +
{{AVProp|fw_play|bool|ReadWrite|Play direction, true for forward, false  fo backward}}
 
</table>
 
</table>
  
;format_name ''(BSTR, RO)'': File format description
 
|-
 
| '''source'''
 
| BSTR
 
| RW
 
| Name of file
 
|-
 
| '''start_time'''
 
| double
 
| RO
 
| Start timecode
 
|-
 
| '''duration'''
 
| double
 
| RO
 
| File duration in second
 
|-
 
| '''ext_audio'''
 
| bool
 
| RW
 
| Enable external audio file, as example for Panasonic P2
 
|-
 
| '''fw_play'''
 
| bool
 
| RW
 
| Play direction, true for forward, false  fo backward
 
 
|-
 
|-
 
| '''aes_key'''
 
| '''aes_key'''

Revision as of 22:55, 10 July 2014

This page is a copy of the original page on the AVObjects' web site and can also be viewed here.


TODO: Description

Overview

TODO: Overview

Interfaces&Methods

Object implements follows methods of IAVObject Interface

IAVProperties Interface used for sets ang gets values of MXF Reader Lib properties.

Properties

format BSTR RO File format
format_name BSTR RO File format description
source BSTR RW Name of file
start_time double RO Start timecode
duration double RO File duration in second
ext_audio bool RW Enable external audio file, as example for Panasonic P2
fw_play bool RW Play direction, true for forward, false fo backward
aes_key BSTR RW Encription key for DCI files in HEX format XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX, dots may be omnited or replaced to any delimiter
streams array of objects RW Array of media streams for file

Template:AVProp Template:AVProp Template:AVProp Template:AVProp Template:AVProp

formatBSTRReadOnly
File format
format_nameBSTRReadOnly
File format description

|- | aes_key | BSTR | RW | Encription key for DCI files in HEX format XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX.XX, dots may be omnited or replaced to any delimiter |- | streams | array of objects | RW | Array of media streams for file |}

Samples

Trace all object's properties

//Query IAVProperties interface
CComQIPtr<IAVProperties> spProps(spObject);
 
//Get list name=value pairs separated CR
//for all properties of object
CComBSTR cbsPropsList;
HRESULT hr = spProps->PropsGet(L"\n", cbsPropsList);
ATLASSERT(hr == S_OK);
 
//Trace properties	
ATLTRACE2(atlTraceGeneral, 2, L"Qbject's properties:\n%s\n", 
  spPropsList);
Personal tools