Post AoJavuuvyD1IlSW2wC by foone@digipres.club
 (DIR) More posts by foone@digipres.club
 (DIR) Post #AoJU0rNrppilZhSWki by foone@digipres.club
       2024-11-22T21:23:10Z
       
       0 likes, 0 repeats
       
       It's too goddamn early in the morning (1:22pm) to deal with ffmpeg
       
 (DIR) Post #AoJUkYjRVzIZ30LGCW by johntimaeus@infosec.exchange
       2024-11-22T21:31:24Z
       
       0 likes, 0 repeats
       
       @foone It's 4pm here, which is too late to deal with ffmpeg. I think the appropriate time window for me to deal with ffmpeg is about 1 hour and 15 minutes long, between second coffee and morning snack time.
       
 (DIR) Post #AoJUv6LzMh8IDeOlRQ by Matheo_bis@eldritch.cafe
       2024-11-22T21:32:57Z
       
       0 likes, 0 repeats
       
       @foone ffmpreg
       
 (DIR) Post #AoJV2vA2rYl1p3XZey by august@mastodon.social
       2024-11-22T21:34:42Z
       
       0 likes, 0 repeats
       
       @foone always makes me think of https://xkcd.com/448/
       
 (DIR) Post #AoJX64wr88k4xE0Mfw by foone@digipres.club
       2024-11-22T21:57:46Z
       
       0 likes, 0 repeats
       
       @Matheo_bis been there, done that, already made the video: https://www.youtube.com/watch?v=Sqepuu5O38o
       
 (DIR) Post #AoJXBP7ZYVOWy1YaC8 by foone@digipres.club
       2024-11-22T21:58:40Z
       
       0 likes, 0 repeats
       
       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
       
 (DIR) Post #AoJXIK10wA3L9umu24 by foone@digipres.club
       2024-11-22T21:59:57Z
       
       0 likes, 0 repeats
       
       now, ffmpeg has three ways to combine video files together.In order of increasing speed and decreasing flexibility, they are:1. concat2. concat3. concatnow all three concats work very differently and are invoked differently. (Never use #3 on mp4 files, it will corrupt them!)
       
 (DIR) Post #AoJXNdWbpPoP7B6HSK by artandtechnic@digipres.club
       2024-11-22T22:00:50Z
       
       0 likes, 0 repeats
       
       @foone ffmpeg: the joke that won’t stop giving
       
 (DIR) Post #AoJXQgOJd0TisBfpGi by foone@digipres.club
       2024-11-22T22:01:19Z
       
       0 likes, 0 repeats
       
       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
       
 (DIR) Post #AoJXSzSrgW5MbhtyiG by gudenau@fosstodon.org
       2024-11-22T22:01:56Z
       
       0 likes, 0 repeats
       
       @foone Uhm, I'd split the video files into h264 and acc streams (or whatever) and concat them outside of ffmpeg then smash them back together. This is how my dashcam works, so you should be able to do something similar. (It's literally cat a.h264 b.h264 > merged.h264)
       
 (DIR) Post #AoJXW5vC8OpVVAdJWi by foone@digipres.club
       2024-11-22T22:02:20Z
       
       0 likes, 0 repeats
       
       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
       
 (DIR) Post #AoJXhNp1v9pICl8H6O by foone@digipres.club
       2024-11-22T22:04:29Z
       
       0 likes, 0 repeats
       
       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)
       
 (DIR) Post #AoJXjrq5I0ApscoI7s by foone@digipres.club
       2024-11-22T22:05:02Z
       
       0 likes, 0 repeats
       
       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)
       
 (DIR) Post #AoJXn02tEZgkCWIG1I by foone@digipres.club
       2024-11-22T22:05:30Z
       
       0 likes, 0 repeats
       
       @trini which concat? #1, #2, or #3? :) (filter, demux, or protocol)
       
 (DIR) Post #AoJXt1rpNH41aVzhhY by krosylight@fosstodon.org
       2024-11-22T22:06:37Z
       
       0 likes, 0 repeats
       
       @foone what the concatted concat cats?!
       
 (DIR) Post #AoJXzJBnsrBD37KeLQ by foone@digipres.club
       2024-11-22T22:07:46Z
       
       0 likes, 0 repeats
       
       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
       
 (DIR) Post #AoJY3WxKdrHOu6ZnA8 by foone@digipres.club
       2024-11-22T22:08:15Z
       
       0 likes, 0 repeats
       
       @ben no of course not.but I might soon
       
 (DIR) Post #AoJY6WwN9j1vizYeUS by foone@digipres.club
       2024-11-22T22:09:03Z
       
       0 likes, 0 repeats
       
       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
       
 (DIR) Post #AoJYDrU5AnknT0oz44 by foone@digipres.club
       2024-11-22T22:10:23Z
       
       0 likes, 0 repeats
       
       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
       
 (DIR) Post #AoJYMRwVVOb0rEDCEK by gudenau@fosstodon.org
       2024-11-22T22:11:55Z
       
       0 likes, 0 repeats
       
       @foone You can provide arguments via files IIRC.
       
 (DIR) Post #AoJYUFDYhUE3hyu8Mi by foone@digipres.club
       2024-11-22T22:13:20Z
       
       0 likes, 0 repeats
       
       @gudenau I think that's only for concat, not concat, which I'm using
       
 (DIR) Post #AoJYYXINQi8GvxCjo0 by whbboyd@mastodon.social
       2024-11-22T22:14:03Z
       
       0 likes, 0 repeats
       
       @foone That's exactly what I probably would have suggested.I mean, I can't resist an opportunity to overengineer, so I actually would have suggested some sort of binary tree rollup, which would be (a) elegant in purely meaningless ways, and (b) *way* more complicated. But, y'know. Hoist the aggregation step out of ffmpeg, into some language that's better for orchestration, like, y'know, bash.
       
 (DIR) Post #AoJYeKCR25gu3UBYsy by foone@digipres.club
       2024-11-22T22:14:56Z
       
       0 likes, 0 repeats
       
       @trini I'm not sure how that one works. do you just list multiple inputs and they get magically muxed?
       
 (DIR) Post #AoJYr6om62x4JkDMbQ by cheeseanddope@infosec.exchange
       2024-11-22T22:17:28Z
       
       0 likes, 0 repeats
       
       @foone I used concat in my pipeline project for work. My pitch was "it's going to be ffmpeg and JavaScript" and they said "what"
       
 (DIR) Post #AoJZOEeVzNCCAjDAmG by foone@digipres.club
       2024-11-22T22:23:24Z
       
       0 likes, 0 repeats
       
       @UntaggedTransmitter yeah I think that's what I'm going to end up doing. (and thanks for the cw: so many people respond to joke posts like this with unsolicited suggestions and never even consider I might not want that!)
       
 (DIR) Post #AoJaUkP8wqzGLCgsaW by cheeseanddope@infosec.exchange
       2024-11-22T22:35:44Z
       
       0 likes, 0 repeats
       
       @foone I had to fiddle with the ratio output quite a bit, but this is what I ended up with. It looks like I pre rendered to desired output for every single video and picture, the stitched them all together. 1280 was width here.
       
 (DIR) Post #AoJavuuvyD1IlSW2wC by foone@digipres.club
       2024-11-22T22:40:45Z
       
       0 likes, 0 repeats
       
       ugh. I've written down the incantation to get lossless huffyuv but I wrote it down on my twitter, which google seems to no longer index.
       
 (DIR) Post #AoJaz1bnY3OGO02zPE by foone@digipres.club
       2024-11-22T22:41:00Z
       
       0 likes, 0 repeats
       
       probably a good sign I should get rid of that and archive it elsewhere
       
 (DIR) Post #AoJbG4XltBDiPbICNU by foone@digipres.club
       2024-11-22T22:44:18Z
       
       0 likes, 0 repeats
       
       okay mass-converting them all to the same format.all 3490 files. this'll take a while
       
 (DIR) Post #AoJbOIoOixYKyqzg6C by TemplailloAhi@mastodon.social
       2024-11-22T22:45:46Z
       
       0 likes, 0 repeats
       
       @foone Is it this one? https://twitter.com/Foone/status/1261463170725507073
       
 (DIR) Post #AoJc75dmXc6dA6Nub2 by fernsehmuell@chaos.social
       2024-11-22T22:53:58Z
       
       0 likes, 0 repeats
       
       @foone use an avisynth script to combine the clips and render this with ffmpeg.
       
 (DIR) Post #AoJcQx6NztQQTIEdaS by joshuata@infosec.exchange
       2024-11-22T22:57:33Z
       
       0 likes, 0 repeats
       
       @foone I’m just waiting for you to post “remember not to do this on a laptop” in an hour like you have had to every week
       
 (DIR) Post #AoJhP0ZqbaHcRPuLc8 by maxh@mastodon.sdf.org
       2024-11-22T23:53:03Z
       
       0 likes, 0 repeats
       
       @foone you can merge a hundred vids in one or whatever Chappell Roan said
       
 (DIR) Post #AoJpUZ7MPXn0eEkC3c by foone@digipres.club
       2024-11-23T01:23:52Z
       
       0 likes, 0 repeats
       
       @joshuata thankfully they were already on a different computer so I wasn't tempted
       
 (DIR) Post #AoJpX6DUJyyfshonuC by foone@digipres.club
       2024-11-23T01:24:12Z
       
       0 likes, 0 repeats
       
       @TemplailloAhi yes. thanks
       
 (DIR) Post #AoJyLo62FbQU5J1TEW by foone@digipres.club
       2024-11-23T03:03:00Z
       
       0 likes, 0 repeats
       
       @unnick yup
       
 (DIR) Post #AoKNV5FwJmwSlUAx1c by xinit@mastodon.coffee
       2024-11-23T07:44:00Z
       
       0 likes, 0 repeats
       
       @foone I meant to use concat, but I used concat. Damn it.
       
 (DIR) Post #AoKS0YS6DX4K6o7p4K by foone@digipres.club
       2024-11-23T08:35:19Z
       
       0 likes, 0 repeats
       
       @xinit happens to the best of us