I have many small files (about 500). They are in right order. I would like to merge them.
Linux commands are also welcome because I can compile them in my OS X.
The command cat *.ts > masi.ts
does not work well. The result stops at some points. I am investigating why this occurs.
Some parts of the videos are not in order.
Names of parts of videos where each file has a prefix HRmasi453-27012016.mp4.ts
1.ts
2.ts
...
100.ts
101.ts
...
200.ts
...
300.ts
so the filename is HRmasi453-27012016.mp4-01.ts
... HRmasi453-27012016.mp4-300.ts
.
The command cat *.ts > masi.ts
does not organise the video in the sequential order.
I think I should make a list before of all items in order.
Then, merge.
Pseudocode
- Make a list of videos in order
- Merge
cat items in list
- Do something like
filename = prefix + itemInList
without creating a new list in the while loop. cat filename >> result.ts
- Do something like
How can you join the many video files, .ts, files?
cat
?itemInList
with a leading 0 (zero) e.g., 01...09 and what it the actual file number total count?