Latest post Mon, Jul 15 2019 4:09 PM by Rich Laws. 3 replies.
Page 1 of 1 (4 items)
Sort Posts: Previous Next
  • Tue, Jul 9 2019 1:39 PM

    • Rich Laws
    • Not Ranked
    • Joined on Wed, Oct 17 2012
    • Posts 108
    • Points 1,010

    AMT2 - advice sought on handling media file names with certain chars

    Hi all,

    I'm hoping for some advice on handling media file names with certain chars that fail with AMT2 OpenMxfFile (error code 7 - AMT_COULD_NOT_INITIALIZE_MEDIA_READER)

    A mutual client in Albania creates some clips with Media Composer 18.4 that have ascii char value 0x92 (single right apos) in the clip name.  This character passes through to the media file name (while some other characters get translated to underscores - eg illegal file path chars like colon or question mark become underscore).

    Clip name: Shard of Glass’ 3.jpg

    media file name: shard of glass’ 3.5d1c5c60v.mxf

    Other chars from the extended ASCII set work with no issue.  Perhaps because this is a delimiter it causes an error.  NOTE - customer tried to ZIP these files to send to us and the ZIP utility failed on these files because of the name.

    I have a few questions that I'm hoping fror advice with:

    1 - Should the editor be filtering out additional characters that may or may not with AMT2? (eg. replacing with underscores?)  NOTE because zip fails these are not very portable file names.

    2 - Is there a workaround without renaming the media file before submitting to AMT2 (use case is adding a resolution to an existing clip so this would mean renaming a live media file potentially.  Copy is not a great option some of these are large files).

    3 - Is there a list of chars that will and will not work with AMT2?  I can brute force test the set but maybe a list exists.

    Any comments or advice is always appreciated!

    Thanks!

    Rich Laws

     

     

  • Tue, Jul 9 2019 2:31 PM In reply to

    • Rich Laws
    • Not Ranked
    • Joined on Wed, Oct 17 2012
    • Posts 108
    • Points 1,010

    Re: AMT2 - advice sought on handling media file names with certain chars

    Some quick testing seems to indicate the issue is with the 4 characters hex value 0x91, 0x92, 0x93 and 0x94.

    Left and right single quotation mark, 

    Left and right double quotation mark

    These can be used with clip names in MC 18.4 and end up in the media file names.

    NOTE - single quote hex 0x27 - is no issue.  double quote (0x22) can't be in a file name per file system rules so that is omitted.

    We will screen clips with media file names that contain these chars for now mark them as incompatible media file names for the toolkit for now.

  • Mon, Jul 15 2019 1:29 PM In reply to

    • Rich Laws
    • Not Ranked
    • Joined on Wed, Oct 17 2012
    • Posts 108
    • Points 1,010

    Re: AMT2 - advice sought on handling media file names with certain chars

    Hi all,

    I was wondering if one of the AMT2 developer's can provide a list of which ANSI chars will cause OpenMxfFile to fail with error code 7 (AMT_COULD_NOT_INITIALIZE_MEDIA_READER)? 

    We have a client in Albania who continues to add some extended ASCII chars to clip names on the editor (18.4) resulting in media file names with these chars - that cannot be opened by a legacy product using AMT2.  NOTE - I can open these files with standard c++ fopen_s with no error.  The issue is not with ALL extended characters - just some...

    I'm in the position of trying to explain why the tool works with some clips and not others.  (NOTE just replacing the filename - character in Avid storage - and re-indexing - lets AMT2 do it's thing).  I'm looking for a list so that I can screen correctly.

    Thanks

    Rich

     

  • Mon, Jul 15 2019 4:09 PM In reply to

    • Rich Laws
    • Not Ranked
    • Joined on Wed, Oct 17 2012
    • Posts 108
    • Points 1,010

    Re: AMT2 - advice sought on handling media file names with certain chars

    In case anyone else encounters this, I wrote a test program to try all chars (dec 128 to 255) with AMT2 OpenMxfFile
    File names with these work:
    ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþ

    File names with these fail with AMT error code 7 (MT_COULD_NOT_INITIALIZE_MEDIA_READER): €‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ

    Easier to view: WORKED:
    129 81 
    141 8D 
    143 8F 
    144 90 
    157 9D 
    160 A0  
    161 A1 ¡
    162 A2 ¢
    163 A3 £
    164 A4 ¤
    165 A5 ¥
    166 A6 ¦
    167 A7 §
    168 A8 ¨
    169 A9 ©
    170 AA ª
    171 AB «
    172 AC ¬
    173 AD ­
    174 AE ®
    175 AF ¯
    176 B0 °
    177 B1 ±
    178 B2 ²
    179 B3 ³
    180 B4 ´
    181 B5 µ
    182 B6 ¶
    183 B7 ·
    184 B8 ¸
    185 B9 ¹
    186 BA º
    187 BB »
    188 BC ¼
    189 BD ½
    190 BE ¾
    191 BF ¿
    192 C0 À
    193 C1 Á
    194 C2 Â
    195 C3 Ã
    196 C4 Ä
    197 C5 Å
    198 C6 Æ
    199 C7 Ç
    200 C8 È
    201 C9 É
    202 CA Ê
    203 CB Ë
    204 CC Ì
    205 CD Í
    206 CE Î
    207 CF Ï
    208 D0 Ð
    209 D1 Ñ
    210 D2 Ò
    211 D3 Ó
    212 D4 Ô
    213 D5 Õ
    214 D6 Ö
    215 D7 ×
    216 D8 Ø
    217 D9 Ù
    218 DA Ú
    219 DB Û
    220 DC Ü
    221 DD Ý
    222 DE Þ
    223 DF ß
    224 E0 à
    225 E1 á
    226 E2 â
    227 E3 ã
    228 E4 ä
    229 E5 å
    230 E6 æ
    231 E7 ç
    232 E8 è
    233 E9 é
    234 EA ê
    235 EB ë
    236 EC ì
    237 ED í
    238 EE î
    239 EF ï
    240 F0 ð
    241 F1 ñ
    242 F2 ò
    243 F3 ó
    244 F4 ô
    245 F5 õ
    246 F6 ö
    247 F7 ÷
    248 F8 ø
    249 F9 ù
    250 FA ú
    251 FB û
    252 FC ü
    253 FD ý
    254 FE þ
    255 FF ÿ

    FAILED:
    128 80 €
    130 82 ‚
    131 83 ƒ
    132 84 „
    133 85 …
    134 86 †
    135 87 ‡
    136 88 ˆ
    137 89 ‰
    138 8A Š
    139 8B ‹
    140 8C Œ
    142 8E Ž
    145 91 ‘
    146 92 ’
    147 93 “
    148 94 ”
    149 95 •
    150 96 –
    151 97 —
    152 98 ˜
    153 99 ™
    154 9A š
    155 9B ›
    156 9C œ
    158 9E ž
    159 9F Ÿ
Page 1 of 1 (4 items)

© Copyright 2011 Avid Technology, Inc.  Terms of Use |  Privacy Policy |  Site Map |  Find a Reseller