Skip to content

Instantly share code, notes, and snippets.

@godofgrunts
Created September 20, 2016 13:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save godofgrunts/0285f9f485e96e21d53bf5ea417f4b49 to your computer and use it in GitHub Desktop.
Save godofgrunts/0285f9f485e96e21d53bf5ea417f4b49 to your computer and use it in GitHub Desktop.
Powershell script to convert flvs to mp4s (assuming ffmpeg is in path)
$viddir = ls
foreach ($video in $viddir)
{
$newname = ([io.path]::GetFileNameWithoutExtension($video))
ffmpeg.exe -i $video -c copy "$newname.mp4"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment