News for hackers. Stuff that matters.
Re:VLC 2.1.0 by sillysaurus2 on Thursday September 26, 2013 @12:13AM (#6448912)
I have a rather odd question for you. I've been trying to use VLC for forensic work, specifically for viewing videos frame-by-frame. There's a way to step forward one frame at a time, but there's no way to step backwards. So it's really difficult to switch between two frames back and forth to look for differences. I've resigned myself to capturing screenshots and pasting them into an image editor then using undo/redo to switch between frames. Do you have any suggestions for how to do it better?

I know this feature probably wouldn't be useful to anyone but me, so I'm not really putting in a feature request. Just hoping to discover that someone else has already figured out a way of stepping backwards frame-by-frame, to complement the existing "step forwards" functionality.

Re:VLC 2.1.0 by keithba on Thursday September 26, 2013 @12:48AM (#6449013)
You can use ffmpeg for this. For instance, to output one frame per second: ffmpeg -i foo.avi -r 1 -s WxH -f image2 foo-%03d.jpeg

See http://ffmpeg.org/ffmpeg.html#Video-and-Audio-file-format-co... for more examples.

Re:VLC 2.1.0 by Gormo on Thursday September 26, 2013 @03:47PM (#6453157)
If you want an interactive UI and you're on Windows, FFmpeg + VirtualDub is a great solution for doing this.
Re:VLC 2.1.0 by comex on Thursday September 26, 2013 @02:17AM (#6449193)
There are many use cases for stepping forwards and backwards between frames in a video; it's not nearly as niche as you suggest :)

This is, in fact, far and away my biggest complaint about VLC. You can say it's slow, but it's just a matter of caching the frames, something that QuickTime seems to have no problem with for the formats it supports.

Re:VLC 2.1.0 by jbk on Thursday September 26, 2013 @07:06AM (#6449967)
But that means using a lot more memory.

And you can only cache a couple of frames or so.

Anyway, patches very welcome on that.

Re:VLC 2.1.0 by FizDev on Thursday September 26, 2013 @12:37AM (#6448981)
Although I haven't tried it, there seems to be an extension for that : http://addons.videolan.org/content/show.php/Previous+frame?c...
Re:VLC 2.1.0 by iamthebest on Thursday September 26, 2013 @12:39AM (#6448988)
Last time I checked, Apple's QuickTime Player was able to do this. There's even an option to show frame numbers in place of units of time in the UI.
Re:VLC 2.1.0 by stinos on Thursday September 26, 2013 @03:41AM (#6449415)
Have a look at VirtualDUB (http://virtualdub.org/).Should do everything you want and more.
Re:VLC 2.1.0 by nitrogen on Thursday September 26, 2013 @02:49AM (#6449259)
If you're looking for differences between frames, have you tried using a differencing algorithm, e.g. so every frame is subtracted from the previous frame? EffecTV (http://effectv.sf.net/) uses a variation of this technique to do interesting things like cloaking and hologram effects.
Re:VLC 2.1.0 by jbk on Thursday September 26, 2013 @05:14AM (#6449645)
There is a small extension for that.

The issue is that doing a correct back-frame can mean going back up to 2 I-frame in the back, in some situations.

Re:VLC 2.1.0 by ehsanu1 on Thursday September 26, 2013 @05:58AM (#6449774)
Cache last N frames? (I don't know anything about video codecs)

I guess that would break when you jump to a specific location in the video, without the benefit of having cached the previous frame(s).

Re:VLC 2.1.0 by jbk on Thursday September 26, 2013 @07:07AM (#6449970)
Lots of ram and very limited.
Re:VLC 2.1.0 by etcet on Thursday September 26, 2013 @12:32AM (#6448968)
avidemux can do this. Most video formats are not designed or optimized for going backwards so it's much slower.
Re:VLC 2.1.0 by barrkel on Thursday September 26, 2013 @04:45AM (#6449572)
But fast forward is usually almost instantaneous, to the point it's often faster to seek backwards, then play back at normal speed, than to wait for a previous frame to be calculated.

There's no reason why the software can't cache frames (it's only 25fps normally) or fast forward from the last I-frame. 25 frames of 1080p HD video is 200MB, as uncompressed 32bpp bitmaps. I have 24GB of memory in my PC; that's the worst case, and it's not bad. A bunch of prior frames can be cached, and the next bunch recalculated if it looks like the user is going to continue stepping backwards.