Hacker Read top | best | new | newcomments | leaders | about | bookmarklet login

Also, as in your example, it's a million times easier to make bs your frame size so you can use skip and count to slice frames as you wish. I use this all of the time working with raw video files.


view as:

Why not use a video native tool like ffmpeg ? I'm unclear on what the advantage of dd is here.

You could seek to second, keyframe, etc, and it would continue to work for formats that don't have fixed frame sizes.

It's true that it is quite a lifehack if you often seek to frame in raw though.


The advantage of dd in this case is that dd is designed for exactly this use case of having a file (or character device, ie. magnetic tape) with some kind of fixed-size records.

Because it's bespoke raw video, ffmpeg wouldn't know what to do with it. Sure if I'm chopping up an MP4 then dd isn't going to 'cut' it ;P

Legal | privacy