SASL Posted December 28, 2020 Posted December 28, 2020 (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 December 28, 2020 by Jos
Developers Jos Posted December 28, 2020 Developers Posted December 28, 2020 (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 December 28, 2020 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.
Nine Posted December 28, 2020 Posted December 28, 2020 Is this for your own GUI ? Not sure exactly what you are aiming for. But look at _GDIPlus_ImageGetThumbnail. Also Shell.application could be use to extract all infos about a file. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
SASL Posted December 29, 2020 Author Posted December 29, 2020 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?
Musashi Posted December 29, 2020 Posted December 29, 2020 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. "In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."
Nine Posted December 29, 2020 Posted December 29, 2020 That seems to work (sort of). I was able to extract a bmp out of a mp4. But modifying the Frame Time is not changing anything for me, I always get the same picture. https://www.autoitscript.com/forum/topic/170300-bitmap2ascii/page/2/?tab=comments#comment-1246194 Once you get your bmp, you could use my suggestion above. “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
SASL Posted December 29, 2020 Author Posted December 29, 2020 Is it the code from Trancexx posted in May 17th 2015?
Nine Posted December 29, 2020 Posted December 29, 2020 1 minute ago, SASL said: Is it the code from Trancexx posted in May 17th 2015? Hmmm, what do you think ? “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
SASL Posted December 29, 2020 Author Posted December 29, 2020 If so, it didnt give any bmp in the GrabbedFrame folder !
Nine Posted December 29, 2020 Posted December 29, 2020 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 “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
SASL Posted December 30, 2020 Author Posted December 30, 2020 Thx for your reply. I get this: @error = 1, @extended = 0x00000001 Extracted = False What does it mean?
Nine Posted December 30, 2020 Posted December 30, 2020 (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 December 30, 2020 by Nine “They did not know it was impossible, so they did it” ― Mark Twain Spoiler Block all input without UAC Save/Retrieve Images to/from Text Monitor Management (VCP commands) Tool to search in text (au3) files Date Range Picker Virtual Desktop Manager Sudoku Game 2020 Overlapped Named Pipe IPC HotString 2.0 - Hot keys with string x64 Bitwise Operations Multi-keyboards HotKeySet Recursive Array Display Fast and simple WCD IPC Multiple Folders Selector Printer Manager GIF Animation (cached) Debug Messages Monitor UDF Screen Scraping Round Corner GUI UDF Multi-Threading Made Easy Interface Object based on Tag
GokAy Posted December 30, 2020 Posted December 30, 2020 Maybe you can use ffmpeg for this? https://www.google.com/search?q=ffmpeg+extract+thumbnail+from+mp4&oq=ffmpeg+extract+thumbnail+from+mp4&aqs=chrome..69i57.12959j1j7&sourceid=chrome&ie=UTF-8
SASL Posted December 30, 2020 Author Posted December 30, 2020 So I have to download ffmpeg? Which link would you recommend?
GokAy Posted December 30, 2020 Posted December 30, 2020 (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 December 30, 2020 by GokAy
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now