Strange oddity with dvplay and --dump-frames

Jesse Gordon <[email protected]> Wed, 28 Oct 2009 20:25:00 -0700
Newsgroups gmane.comp.video.kino.devel
Message-ID <[email protected]>
Good Day everyone,

This may be the wrong place to ask - so I'll keep it short, and please 
don't bother if it bores you..!

I'm using playdv to convert dv  video into pnm streams using 
--dump-frames so I can do my own processing in my own C program, then I 
feed it back into encodedv to convert it back to a dv stream....

(It works fine on my old laptop, but my new 64 bit kubuntu box has this 
problem.)

--dump-frames puts out correct sized and valid pnm images, but the 
picture is scrambled.
Specifically, the resulting image is scrambled and appears like a triple 
image reflection sort of, and fills the top 2/3 of the image -- and the 
bottom 1/3 is black.

I've been looking through the code (playdv.c) and it seems that the 
image data is no longer being stored in dv_player->display->pixels[0] as 
RGBRGBRGB..

 From what I can tell, the image data is being stored in a scheme where 
every 4 bytes stores 2 pixels worth of data (or something like that), 
but I don't think it's RGB style..
The fourth byte seems to set the red-green hue -- but I'm all confused. 
(I've been tinkering with the code, poking different values into 
different byte offsets in dv_player->display->pixels[0]+offset to try 
and figure out what  exactly is going on.)

To clarify, playdv displays and plays videos perfectly -- it just 
doesn't save good data with doing --dump-frames -

The version that's not working is: v1.0.0, running on x86_64 
2.6.24-24-generic SMP (Slackware)

The version that DOES work just fine is: v1, running on 2.6.21.5-smp 
i686.0.0 (Kubuntu)

Anyway, I'd be most grateful for any clues!

(Or a suggestion for an alternate way to get a live stream from my 
miniDV camera's firewire port into my own program to do my own effects 
(so far it does binning, motion detect, stacking, and slow-motion).

Thanks very much,

-Jesse




------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference