Jump to content

Recommended Posts

Posted (edited)

Bonjour,

je voudrais créer un affichage personnalisé des fichiers d'un dossier.

Exemple 16 vignettes de fichiers en 4 lignes et 4 colonnes / page puis au-dessous de chaque vignette, le nom du fichier et d'autres infos.

Mais je ne sais par ou commencer !?

Quote

Hello,

I would like to create a custom view of the files in a folder.

Example 16 file thumbnails in 4 rows and 4 columns / page then below each thumbnail, the name of the file and other info.

But I don't know where to start !?

 

Edited by Jos
  • Developers
Posted (edited)

Moved to the appropriate forum, as the Developer General Discussion forum very clearly states:

Quote

General development and scripting discussions.


Do not create AutoIt-related topics here, use the AutoIt General Help and Support or AutoIt Technical Discussion forums.

 

This is an English forum, so please translate your questions before posting:

Jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

Hi.

Sorry for the language, but I was supposed to be on the french forum.

Thank U for the translation and for your suggestions.

But can _GDIPlus_ImageGetThumbnail give thumbnails for mp4 files?

Posted
2 hours ago, SASL said:

But can _GDIPlus_ImageGetThumbnail give thumbnails for mp4 files?

The help example for _GDIPlus_ImageGetThumbnail states  :

$sFile = FileOpenDialog("Please select an image", "", "Image (*.jpg;*.png;*.bmp;*.gif;*.tif)", BitOR($FD_PATHMUSTEXIST, $FD_FILEMUSTEXIST))

I therefore assume that only the formats 

*.jpg; *.png; *.bmp; *.gif; *.tif

are valid.

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Posted

Try this code, I changed a bit and it is working for me :

$sVideo = FileOpenDialog("Choose Video File", "", "All Files (*)")

$sOutFolder = @ScriptDir

$sBMP = $sOutFolder & "\0.bmp"
$nFrameTime = 5 ; in seconds

$bExtracted = ExtractFrame($sVideo, $sBMP, $nFrameTime)
ConsoleWrite("@error = " & @error & ", @extended = 0x" & Hex(@extended) & @CRLF)
ConsoleWrite("Extracted = " & $bExtracted & @CRLF)

Func ExtractFrame($sVideo, $sBMP, $nFrameTime)
    Local $aCall = DllCall(@ScriptDir & "\FrameGrabber.dll", "long", "ExtractFrame", _
            "wstr", $sVideo, _
            "wstr*", $sBMP, _
            "int64*", $nFrameTime * 10000000, _
            "int", 1)

    If @error Then Return SetError(1, @error, False)
    If $aCall[0] Then Return SetExtended($aCall[0], False)
    Return $aCall[0] = 0
EndFunc

 

Posted (edited)

It means it doesn't work for you.  Are you sure you got the dll in @scriptdir ?  You must run it x86.  Tested on Win7.  Some mp4 seem not being readable by the dll.

FYI @extended: 1 = unable to use the DLL file

 

ps.  just tested on Win10 and dll is not working at all...

Edited by Nine
Posted (edited)

This one seems alright, it will contain 3 exe's and some documentation files. ffmpeg.exe alone was enough for my case). The official ffmpeg site links to this one and one other btw:

https://github.com/BtbN/FFmpeg-Builds/releases/download/autobuild-2020-12-30-12-37/ffmpeg-n4.3.1-26-gca55240b8c-win64-gpl-4.3.zip

How to install (I did not install, just copy pasted to a known location within my project folder):

https://www.youtube.com/watch?v=qjtmgCb8NcE&feature=emb_logo

Edited by GokAy

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...