Advertisement
PrimePastes

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

May 6th, 2023 (edited)
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 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 file in *.webp; do
  5. ffmpeg -i "$file" "${file%.webp}.jpg"
  6. done
  7.  
  8. OR
  9.  
  10. for file in *.webm; do
  11. ffmpeg -i "$file" "${file%.webm}.jpg"
  12. done
  13.  
  14. To convert a single webm file to a JPG file with FFMPEG, run the following command in Terminal:
  15.  
  16. ```
  17. ffmpeg -i input.webm output.jpg
  18. ```
  19.  
  20. 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