Also, there is a ffmpeg for Ubuntu and the .bat file is very simple so you may be able to translate commands to bash. As usual, Internet is very helpful for that, for example https://tldp.org/LDP/abs/html/dosbatch.html.
Perl script should run as-is on Linux.
I bet we could have this conversation in french, sylvain
thank you for the
idea, clever indeed !
I just don’t know where to begin at with …
I tried to interpret the bat file on my linux machine with help of wine, but it failed.
Here are the result / output of the commands :
didou@L-indispensable-HP-Pavilion-dv5-Notebook-PC:~$ wine cmd
Microsoft Windows 6.1.7601
Z:\home\didou>cd Z:\Bureau\MotoG5Cedric\motorun
Chemin introuvable.
# mauvaise syntaxe de commande ! on recommence
Z:\home\didou>cd Z:\home\didou\Bureau\MotoG5Cedric\motorun
# là ça marche.
Z:\home\didou\Bureau\MotoG5Cedric\motorun>compress.bat
INPUT file name (example.bmp):ac6d5344d58ebd8a407685cd050bb411.bmp
Ne reconnaît pas « ffmpeg -i ac6d5344d58ebd8a407685cd050bb411.bmp -f rawvideo -s 720x1280 -pix_fmt bgr24 temp.raw » comme commande interne ou externe, ou fichier de commandes.
Ne reconnaît pas « perl compress.pl » comme commande interne ou externe, ou fichier de commandes.
temp.raw : fichier non trouvé
Fichier introuvable.
Fichier introuvable.
Appuyez sur une touche pour continuer...
J’en conclue qu’en l’état, wine ne sais pas aller chercher le ffmpeg et le perl de ubuntu…
ooops !
english version :
my conclusion it that, at that point, wine isn’t able to use ffmpeg and perl installed on the linux side …
My idea was more to understand what the Windows script does, and to find Bash commands to replace.
Just follow the blog post, entry point is https://azure.microsoft.com/fr-fr/free/.
I think this is the best solution, as the knowledge you will acquire could be reused later for other goals and purposes
This is a friendly follow to people who tried to help me here.
I’ve been trying to compile FFmpeg for windowsXP, without success.
I was able to install bash and docker on my latest Ubuntu linux machine (in the older one, the processor wasn’t handled correctly), but couldn’t compile for 32bit windows. Some bcrypt.dll was missing and could’t find a workaround. Abandoned.
Later i’ve found compiled version for supposedly winXP and Win32, but either I didn’t knew how to install them or they weren’t suitable for my old XP.
Long story short, I gave up this possibility.
But I enjoyed the journey (even if it was sometime hard) and managed to learn new things
My next option is to follow @smu44 idea.
Let’s study this
!!!
your other idea : windows .bat → linux bash
this could be more simple.
@echo off
set /p input=INPUT file name (example.bmp):
ffmpeg -i %input% -f rawvideo -s 720x1280 -pix_fmt bgr24 temp.raw
perl compress.pl
DEL temp.raw
::append compressed image to modified bin file
copy /b logo.bin+logo-moto.raw logo.bin
pause
(going off-topic here)
I strongly advise to give it a try: with a Pavilion DV5 and 32b XP you will, sooner or later, bump into a similar problem again.