Concatenating video with FFMPEG, a process so complex few have ever achieved it.
Conversation
Notices
-
Embed this notice
Baa (baa@mk.absturztau.be)'s status on Thursday, 11-Jul-2024 04:02:11 JST Baa -
Embed this notice
:blobcathug: (jain@blob.cat)'s status on Thursday, 11-Jul-2024 04:02:09 JST :blobcathug: @enigmatico @Baa thats the moment when i use video cutting software -
Embed this notice
【Ξnigmatico】:misskey: (enigmatico@mk.absturztau.be)'s status on Thursday, 11-Jul-2024 04:02:10 JST 【Ξnigmatico】:misskey: @Baa Yeah it's a little bit complicated. First you have to ensure they use the same codec and that they have the same parameters. If not, you have to reconvert them using complex filters first, and it's a bit messy. Just tested it with two video files, had to do this:
ffmpeg -i 2.mp4 -i 3.mp4 -filter_complex \ "[0✌️0] scale=320x210,setdar=16/9 [ch1]; [1✌️0] scale=320x210,setdar=16/9 [ch2]; [ch1][0🅰0][ch2][1🅰0]concat=n=2:v=1:a=1[outv][outa]" \ -map "[outv]" -map "[outa]" -r 30 concat.mp4:blobcathug: likes this. -
Embed this notice
Baa (baa@mk.absturztau.be)'s status on Thursday, 11-Jul-2024 04:02:51 JST Baa @enigmatico Thanks, I went the same route, what a pain :blobcatree:
:blobcathug: likes this. -
Embed this notice
【Ξnigmatico】:misskey: (enigmatico@mk.absturztau.be)'s status on Thursday, 11-Jul-2024 04:06:52 JST 【Ξnigmatico】:misskey: @Jain@blob.cat @Baa@mk.absturztau.be Yeah if you want to do something quick and easy, it's better to use a video editor. Something like Flowblade or Kdenlive will work just fine.
But if you want to create a script to automate the process, like if you are using a live stream or something, then you have to resort to ffmpeg.:blobcathug: likes this.
-
Embed this notice