Added container script for premier pro
This commit is contained in:
parent
5d6297b01e
commit
0aa2f9bc96
12
WallpaperEngineTools/ffmpeg-fix-container.ps1
Normal file
12
WallpaperEngineTools/ffmpeg-fix-container.ps1
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# With ffmpeg simply copy the vidoe and auto contents into an mp4 container
|
||||||
|
|
||||||
|
# args[0] = file path
|
||||||
|
# args[1] = -d or --delete to delete the original file after conversion
|
||||||
|
$file = Get-ChildItem $args[0]
|
||||||
|
$del = $args[1]
|
||||||
|
# Invoke ffmpeg to copy the video and audio streams into an mp4 container
|
||||||
|
ffmpeg -i $file.FullName -c copy "$($file.BaseName).mp4"
|
||||||
|
# Delete the original file if the second argument is -d or --delete
|
||||||
|
if ($del -eq "-d" -or $del -eq "--delete") {
|
||||||
|
Remove-Item $file
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user