It's too goddamn early in the morning (1:22pm) to deal with ffmpeg
-
It's too goddamn early in the morning (1:22pm) to deal with ffmpeg
-
@foone ffmpreg
-
@Matheo_bis been there, done that, already made the video: https://www.youtube.com/watch?v=Sqepuu5O38o
-
my project last night involved concatting about 3000 video files together. Unsurprisingly, something went wrong, and I ended up with a 5 hour file (the clips added together are only 2hr30min) and it stops being playable after an hour
-
now, ffmpeg has three ways to combine video files together.
In order of increasing speed and decreasing flexibility, they are:
1. concat
2. concat
3. concatnow all three concats work very differently and are invoked differently. (Never use #3 on mp4 files, it will corrupt them!)
-
@foone ffmpeg: the joke that won’t stop giving
-
my problem was that I was using concat when I should probably just use concat instead. the only problem is that concat (not concat) requires a filter-complex invocation that may literally involve sacred geometry
-
and the complexity scales with how many files you're adding.
it's like 7-8 characters with 2, 64 characters with 3, and I have 3490 files to concat -
@foone As someone with the correct concat notation in my examples file, I wonder if you're understating the complexity here..
-
the fundamental problem, I think, is that I have 3487 files in one consistent format, and 3 that are differently formatted.
concat can handle that, but concat (which I was using) can't. (and concat? don't get me started)
-
so I either need to switch to using concat only, or convert those files so that they can all use the same format and thus be concatted with concat (but not concat, because that will corrupt mp4 files)
-
@trini which concat? #1, #2, or #3?
(filter, demux, or protocol) -
@foone Er, #4 , input type? Works on H264, H265 I need to convert back to .ts files then convert (and for my needs I was able to ignore audio there and combine video only + audio only later).
-
actually now that I'm looking at this and it's not 4am, the first concat might not be that hard, assuming ffmpeg (and windows) don't have a problem with me writing, uh, 55kb arguments? not counting the other arguments, which'll add up to another 87kb
-
Ben Lubar (any pronouns)replied to Foone🏳️⚧️ last edited by
@foone were you passing three thousand filenames on the command line foone
-
Foone🏳️⚧️replied to Ben Lubar (any pronouns) last edited by
@ben no of course not.
but I might soon -
realistically I probably won't do it this way.
I'll batch it up. Merge a hundred videos into one lossless master, then merge one lossless master with 100 more videos into lossless master #2, then repeat until I run out of videos
-
but I'm probably going to reencode those 3 Weird Videos anyway just so I have more control over how they're added.
one of them is 4:3, the rest are 16:9: clearly I should handle that myself and not just let ffmpeg pick some silly default for merging 4:3 content into a 16:9 stream -
@foone You can provide arguments via files IIRC.
-
@gudenau I think that's only for concat, not concat, which I'm using