[FFmpeg-user] Muxing multiple files and concatenating those outputs

Ted Park kumowoon1025 at gmail.com
Wed Apr 15 13:37:22 EEST 2020


Hi,

> Yeah, when we record the calls, the directory structure preceeding those
> names is YYYY/MM/DD/HH and the filenames are MIN_SEC_MSEC.codec(side)


I mean some phones specifically put g729a, and I assume it's the same for g729b. So I started  imagining files ending all over the place g729aa, g729ba, etc.

> I was really looking for just syntax to group commands, so I could use the
> merge filter output as direct input for the concatenation.

If you mean the afifo I inserted, you could probably get rid of those if the machine's fast enough, or the calls short enough. Or a different approach might be padding each file in the same call or using the cue filter, and mixing them all. But grouping commands isn't really a thing that ffmpeg does, except for things like image sequences, preparing segmented delivery media. 

> The man page and web searches I tried came up empty, but I figured someone may know some magic sauce I could not find.


Maybe you've been looking for the wrong terms? It sounds to me like what you are looking for is closer to shell features, like parameter substitution, filename generation, etc.

If portability is not an issue, some shells have more features than others, though there's a different learning curve to each one. 

Or there's always xargs. Yeah probably xargs. I can't really tell but the associated filenames seem pretty much arbitrary. Do you parse the date/time in the filename to find which ones to put together? Or is there a call log to reference?

Regards,
Ted Park



More information about the ffmpeg-user mailing list