![]() txt file you just made.Ĭheck if the resultant file plays video correctly. txt file looks good and is formatted correctly!Īfter this, on commandline run: ffmpeg -f concat -i mylist.txt -c copy all.ts Here's a copy paste from my first link on one way to create a text file if you have Windows on commandline for instance but obviously you can make the file manually or however you want: (for %i in (*.ts) do file '%i') > mylist.txtĭouble check that your. txt file listing all the files you want to combine like so (which my first link gives instructions on how to do easily) in the folder where you're doing the concatenation: file '/path/to/file1' If you're too lazy to read my first link, you basically have to create a. (Install ffmpeg here if you don't already have it. Instead, to combine these files properly use ffmpeg as instructed in. Using copy or cat to combine the files like szatmary's current top answer might leave you with a file that plays far past the limit and can't seek along with playback issues. Under GNU/Linux, using bash: cat segment1_0_av.ts segment2_0_av.ts segment3_0_av.ts > all.ts ![]() Under windows: copy /b segment1_0_av.ts+segment2_0_av.ts+segment3_0_av.ts all.tsįfmpeg -i all.ts -acodec copy -vcodec copy all.mp4 Then, once you have a single ts, transmux to mp4. However ts is one of the few formats that can simply be concatenated. ![]() ![]() Process.Start(Environment.GetFolderPath('m not sure why ffmpeg is giving you an error. mp4")Įnd Sub Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Clickĭim R1 As DialogResult = OpenFileDialog1.ShowDialog()ĭim path1 As String = OpenFileDialog1.FileName ' Get part file Dim FileName1 As String = System.IO.Path.GetFileNameWithoutExtension(OpenFileDialog1.FileName) ' Get only Flie name without extension If R1 = ThenĮnd Sub Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Loadīutton1.Enabled = False End Sub Private Sub bFolder_Click(sender As Object, e As EventArgs) Handles bFolder.Click Process.Start( " cmd.exe", " /k ffmpeg -i " & FileName2 & " -c:v libx264 " & FileName1 & ". (Application.StartupPath & " \" & programName) Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Clickĭim FileName1 As String = System.IO.Path.GetFileNameWithoutExtension(OpenFileDialog1.FileName) ' Get only Flie name without extension Dim FileName2 As String = OpenFileDialog1.FileNameĭim programName As String = " ffmpeg.exe" ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |