David Brown wrote:
On Thu, Dec 06, 2007 at 04:21:56AM -0800, Ralph Shumaker wrote:

I tried playing with that just now, and cannot figure out a way to dump each frame to a jpg file. It has a few video out formats. And no matter what I did, I couldn't get the program to work anyway. It hung at the same point every time.

If you want jpgs of each frame, I'm guessing that mplayer is what you are
going to want.  It sounds like there are two problems with the results.

  - The image is squashed.  This is expected, since this is how they are
    stored on the DVD.  This can be fixed after you get the images you
    want.

I don't even know how to respond to that, so, ok. Perhaps this has something to do with the interlacing you mention below. But if that is the case, then I don't understand why my previous attempts didn't produce jpg files that looked even *more* widescreen.


  - The images are corrupted.  This sounds like your version of mplayer
    might not be configured to use libdvdcss (it is an option), in which
    case it won't be able to decrypt the video, and you'll get corrupt
    frames.  What distribution are you using?

Well, to start with, I'm on fc7 (with all the updates applied fairly regularly via yum).
$ mplayer --version
MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Mobile AMD Duron(tm) processor (Family: 6, Model: 7, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled with runtime CPU detection.
Unknown option on the command line: --version
Error parsing option on the command line: --version

I guess --version is not an option but it seemed to give it's version info anyway.


You might have an additional problem once you do get uncorrupted images:

- The frames might be interlaced, meaning that the even and odd lines of
    the image are from different points in time, giving moving objects a
    kind of Venetian Blind look.  This is a bit harder to solve, although
    mplayer has a fairly decent de-interlacer in it.  Actually, it has a
good software scaler as well, but I don't know if either can be invoked
    before dumping frames out.

If it will allow me to combine interlaced images after the fact, tedious, but I can deal with that. I just need to find out how to do it. I'm sure I could manage to get someone to help me figure out how to make a script to combine images 1 with 2, 3 with 4, 5 with 6, and so on. And just in case I might be able to get better selections, perhaps also a script to combine 2 with 3, 4 with 5, 6 with 7, and so on. (This is assuming that I'm understanding this right.)


What do you intend to do with the frames?  Do you just want to use a few,
or do you want to reassemble them in some other manner?  The expanded
frames will be significantly larger than the data on the DVD.

Yeah, I was just noticing the size difference. Each frame (tho corrupted) was about 100k. 30 fps, 3M/s, 180M/m, 10.8G/h, means about 21.6G. That won't be a problem. Even if the uncorrupted frames are 3 times the size of the corrupted ones, I'll still be all right.

I will end up deleting most of the frame/jpg files after they are created, probably about 99.9%. But I want to see the subtle differences between frames and decide which ones I want. I'm guessing a two hour movie will have about 216,000 frames. 30f*60s*60m*2h

All of the frames I decide to keep will be like separate paintings. And I wish to make my own changes to each. I do not intend on putting any of them back together, altho that could appeal to me later.


--
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to