How to convert .webp to .png image on Windows 10 using ffmpeg

How to convert .webp to .png image on Windows 10 using ffmpeg

How to convert .webp image to .png using FFMPEG on Windows 10

FFmpeg is a free and open-source software project consisting of a large suite of libraries and programs for handling video, audio, and other multimedia files and streams. At its core is the FFmpeg program itself, designed for command-line-based processing of video and audio files. It is widely used for format transcoding, basic editing (trimming and concatenation), video scaling, video post-production effects and standards compliance (SMPTE, ITU).

Solving : 


1. Download, install and configure FFMPEG on Windows 10

- download and install 7-Zip free opensource archive tool 

from official website : https://www.7-zip.org/

Download free opensource archive tool 7-Zip from official website

- visit official  FFMPEG Window build provider website : 

https://www.gyan.dev/ffmpeg/builds/

ffmpeg windows build provider

-  scroll down page until "Release" section, and click on ffmpeg-release-full link

ffmpeg on windows click on download url in release section

- unzip ffmpeg archive using 7-Zip tool 

unzip ffmpeg archive on windows using 7zip tool
extracting ffmpeg archive please wait

open unzipped ffmpeg folder by double click on it
content of ffmpeg unzziped folder

- create folder ffmpeg on disk C e.g.  C:\ffmpeg 

 
create new folder on disk C


rename new folder to ffmpeg

- copy files from unzipped archive to C:\ffmpeg

copy files from unzipped folder to ffmpeg on disk c

disk C folder ffmpeg content

- add  C:\ffmpeg\bin\  to Path environment variables  

search env and click open edit system environment variables

click on Environment Variables

find Path environment variable and click Edit button in dialog

click New button in dialog

type ffmpeg bin path and click Ok button

- check ffmpeg setup in cmd, open CMD and type ffmpeg -version

open windows cmd and type ffmpeg version and press enter


2. Execute command .webp to .png image convertion command in Windows CMD

- in CMD change directory to folder with .webp images

change directory in cmd to webp images folder

- type following conversion command + press Enter

for /f %f in ('dir /b .') do ffmpeg -i "%f" "%f".png

type convertion command and press Enter button on keyboard

result of webp to png convertion

Command explanation :

for /f %f in   - for loop

('dir /b .')   - select all files in current directory ( dot ) you can use path

do  - do for each iteration in for loop

ffmpeg -i "%f" "%f".png  -  command to make ffmpeg convertion


No comments:

Post a Comment