You can read about the concat demuxer in the documentation. The demuxer is more flexible – it requires the same codecs, but different container formats can be used and it can be used with any container formats, while the protocol only works with a select few containers. There are two methods within ffmpeg that can be used to concatenate files of the same type: If you have media with different codecs you can concatenate them as described in " Concatenation of files with different codecs" below. If you have media files with exactly the same codec and codec parameters you can concatenate them as described in " Concatenation of files with same codecs". Concatenation of files with different codecs.Concatenation of files with same codecs.OR $ArgumentList = '"' + $VideoBrowser.FileName + '" -i "' + $AudioBrowser.FileName + '" -c copy -map 0:v:0 -map 1:a:0 "' + $NewVideoBrowser.FileName + '"'įfmpeg.exe $VideoBrowser.FileName -i $AudioBrowser.FileName -c copy -map 0:v:0 -map 1:a:0 $NewVideoBrowser. Start-Process -FilePath ffmpeg.exe -ArgumentList $ArgumentList -Wait -NoNewWindow $NewVideoBrowser = New-Object -Property = 'Video file (*.mp4)|*.mp4|All files (*.*)|*.*'Īnd all these ways to run the command but all fail: $ArgumentList = '""' -f $VideoBrowser.FileName, $AudioBrowser.FileName, $NewVideoBrowser.FileName $AudioBrowser = New-Object -Property = 'Video file (*.m4a)|*.m4a|All files (*.*)|*.*' $VideoBrowser = New-Object -Property = $PSCommandPathįilter = 'Video file (*.mp4)|*.mp4|All files (*.*)|*.*' I have tried this: Add-Type -AssemblyName I would like to run the following command in Powershell:įfmpeg -i "VIDEO.mp4" -i "AUDIO.m4a" -c copy -map 0:v:0 -map 1:a:0 "OUTPUT VIDEO.mp4"īut I would like to browse for the files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |