How to create thumbnail flash movie (.flv)

I use ColdFusion and you need to create a thumbnail from a flash movie stored on the server. I heard about ffMpeg but have no idea how to use it. (As soon as you post the next step on your server?)

+3
source share
2 answers

You can use cfexecute to run the command line on the CF server.

Karthik related a blog post suggesting the following syntax for ffmpeg:

ffmpeg -itsoffset -4 -i test.avi -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 test.jpg

So you can do something like this:

<cfexecute 
    name="c:\pathto\ffmpeg\ffmpeg.exe"
    arguments="-itsoffset -4  -i #sourcevideo# -vcodec mjpeg -vframes 1 -an -f rawvideo -s 320x240 #thumbnaildestination" />

ffmpeg, , , , , , .

, fmpeg.exe , ColdFusion.

+1

Source: https://habr.com/ru/post/1792127/


All Articles