Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Определение ориентаций видеофайлов 
Author Message
Skif_off



PostPosted: Fri Sep 29, 2017 20:55    Post subject: Reply with quote

BeardFury78
Наверное, какие-то нюансы языка, попробуйте так
Code:
        <column name="Rotation" type="script">
        <![CDATA[
          if (Rotation = '') then
            if (VideoFrameWidth < VideoFrameHeight) then
              Output:='Achtung!'
          else
            if (Rotation = '0.000') then
              if (VideoFrameWidth < VideoFrameHeight) then
                Output:='Achtung!'
            else
              Output:='Achtung!'
        ]]>
        </column>

Вроде стабильный результат.

P.S. Минут 40 убил, прежде чем дошло, что *.3gp просто нет ни в конфиге плагина, ни в детект строке wincmd.ini Smile)

Добавлено спустя 30 минут:

Так, пожалуй, будет покороче
Code:
        <column name="Rotation" type="script">
        <![CDATA[
          if (Rotation <> '0.000') and (Rotation <> '') then
            Output:='Achtung!'
          else
            if (VideoFrameWidth < VideoFrameHeight) then
              Output:='Achtung!'
        ]]>
        </column>
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group