AnsweredAssumed Answered

Facing issue while generating thumbnail using ffmpeg

Question asked by hardik.thakkar on Feb 25, 2013
Hello Gurus,
I am facing problem while generating thumbnail using ffmpeg.
The details are as per below:
OS: windows 7
Alfresco Version: 3.4.8 Enterprise

My requirement for generating thumbnail is that while uploading any flv video if it takes more then 1 milisecond then thumbnail should not be generated but in my case it is generating the thumbnail.

Renamed
from ./apache/shared/classes/extension/video-thumbnail-context.xml.sample to ./apache/shared/classes/extension/video-thumbnail-context.xml
from ./apache/shared/classes/extension/video-transformation-context.xml.sample to ./apache/shared/classes/extension/video-transformation-context.xml

Added custom entry in video-transformation-context.xml
<!– FLV preview thumbnail options –>
  <bean id="thumbnail.register.flvpreview" class="org.alfresco.repo.thumbnail.ThumbnailDefinitionSpringRegisterer">
    <property name="thumbnailRegistry" ref="thumbnailRegistry" />
    <property name="thumbnailDefinition">
        <bean class="org.alfresco.repo.thumbnail.ThumbnailDefinition">
          <property name="name" value="flvpreview"/>
          <property name="mimetype" value="video/x-flv"/>
          <property name="transformationOptions">
            <bean class="org.alfresco.repo.content.transform.RuntimeExecutableContentTransformerOptions">
      <!– Custom entry start –>
        <property name="timeoutMs"><value>${system.thumbnail.definition.flv.timeoutMs}</value></property>
          <property name="readLimitTimeMs"><value>${system.thumbnail.definition.flv.readLimitTimeMs}</value></property>
        <property name="maxSourceSizeKBytes"><value>${system.thumbnail.definition.flv.maxSourceSizeKBytes}</value></property>
        <property name="readLimitKBytes"><value>${system.thumbnail.definition.flv.readLimitKBytes}</value></property>
        <property name="pageLimit"><value>${system.thumbnail.definition.flv.pageLimit}</value></property>
        <property name="maxPages"><value>${system.thumbnail.definition.flv.maxPages}</value></property>
      <!– Custom entry end –>
     <property name="propertyValues">
                <props>
                  <prop key="outfile_opts">-f flv -ab 56 -ar 44100 -b 200 -r 15 -s 320x240</prop>
                </props>
              </property>
            </bean>
          </property>
          <property name="runAs" value="System"/>
        </bean>
    </property>
  </bean>
</beans>

Values in the global.properties file
system.thumbnail.definition.flv.timeoutMs=1
system.thumbnail.definition.flv.readLimitTimeMs=1
system.thumbnail.definition.flv.maxSourceSizeKBytes=-1
system.thumbnail.definition.flv.readLimitKBytes=-1
system.thumbnail.definition.flv.pageLimit=1
system.thumbnail.definition.flv.maxPages=-1

for ffmpeg
ffmpeg.exe=E:/Alf348/ffmpeg/bin/ffmpeg.exe

Is there any configuration is missing?
Please provide your inputs.

Outcomes