Advertisement
PrimePastes

Batch Convert .webm to .jpg (Single and Multiple)

May 6th, 2023 (edited)
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. To batch convert webm's to JPG in a folder with FFMPEG, open Terminal and navigate to the folder containing the webm files. Then, run the following command:
  2.  
  3. ```
  4. for x in ls *.webp; do ffmpeg -i $x ${x%.webp}.jpg; done
  5.  
  6. This will convert each webm file in the folder to a JPG file with the same name.
  7.  
  8. To convert a single webm file to a JPG file with FFMPEG, run the following command in Terminal:
  9.  
  10. ```
  11. ffmpeg -i input.webm output.jpg
  12. ```
  13.  
  14. Replace "input.webm" with the name of your webm file, and "output.jpg" with the name you want to give the resulting JPG file.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement