Advertisement
PrimePastes

How To Convert .mkv and .webm to .mp4 in FFMPEG [MacOSX]

Apr 22nd, 2023 (edited)
579
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. .WEBM to .MP4:
  2. ffmpeg -i FILENAME.webm WHAT\ YOU\ WANT\ TO\ NAME\ FILE.mp4
  3.  
  4. .MKV to .MP4:
  5. ffmpeg -i FILENAME.mkv -c copy WHAT\ YOU\ WANT\ TO\ NAME\ FILE.mp4
  6.  
  7.  
  8. How to convert multiple:
  9. for f in *.webm; do ffmpeg -i "$f" -c:v libx264 -c:a aac -b:a 192k -movflags +faststart "${f%.webm}.mp4"; done
  10.  
  11. for f in *.mkv; do ffmpeg -i "$f" -c:v libx264 -c:a aac -b:a 192k -movflags +faststart "${f%.mkv}.mp4"; done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement