


"for i in "), then echo the last video part to finish the video. Loop the middle part to the specified count using a numeric loop (e.g. We can echo the first video independently, then Basically, just print/echo the files after -i in the right order. *.wav do echo "file '$PWD/$f'" done) -c copy output.wav". This is the sort of code used to concat video files using shell process substitution "ffmpeg -f concat -safe 0 -i <(for f in. You can use shell substitution to iterate over the videos files you want to concat. ffmpeg -i out.avi -c copy -ss 00:00:5 -t 5 -copyinkf out2.avi)Ĭoncatenate the 3 video parts into the full video, looping the middle a certain amount of times.įfmpeg has a section detailing concatenation in its docs. Important part: use "-copyinkf" as a parameter to force ffmpeg/avconv to stream copy that part of Over (usually a few frames long), and the rest.

The start (up to the point you want to break), the part you want to repeat over and Stream copy the contents of the new video file into 3 seperate video files: h264 avi with a relatively small amount of keyframes (good for datamoshing) Very high specified keyframe interval with the -g command (e.g. Using libav (avconv) or ffmpeg, convert the source video into an avi using a One of the beauties of this method is that the audio is moshed If you're using Linux, that means you very likely have all the software you need toĭo this already. Well, as it turns out, ffmpeg/libav can actually datamosh if you use the right commands. You either have to really know what you'reĭoing (I don't) or use really specific software (old versions ofĪvidemux for example), so I had a look for ways to make datamoshing easier. Tl dr: I wrote a (Linux) shell script that uses ffmpeg/libav that you can use if you want to datamosh videos easily, the link is near the end.įor a while I thought that the datamoshing methods available
