swftools-common
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Swftools-common] New info -- Was: Problems with avi2swf


From: Matthias Kramm
Subject: Re: [Swftools-common] New info -- Was: Problems with avi2swf
Date: Sun, 30 Nov 2003 22:50:13 +0100
User-agent: Mutt/1.4i

On Sun, Nov 23, 2003 at 10:56:00AM -0800, Amartyo Banerjee wrote:
> > > <CImage> : Cannot convert non-YUV image to BGR24
> > > Can't handle Bpp 1, shutting down...
> > 
> > One bit per pixel? Are you converting greyscale video?
> 
> I don't see how that is possible. I'm pretty sure the webcam does colour. If 
> I use aviplay or
> mplayer to view the avi created by ffmpeg from the webcam, it is in colour. 
> Similarly, if I
> convert the frames to ppm images using transcode, they are in colour.
> When I turn the ppms into jpegs and use jpeg2swf, the result is in colour.

Interesting. Well, avifile reports the bpp as 1, so it's
especially strange that aviplay (which is based on avifile) 
does color, too.
I sincerly hope that what we have here is not some strange kind
of lossless indexed color compression...

Would it be possible for you to create, say, one second of video and 
send it to me in some way? I could open a ftp server somewhere
for that purpose.
I'd really love to take a closer look at this format...

> PS: Suppose I have an avi with audio in it. I convert the video
> portion as listed above, and separate out the audio and turn it into a
> wav file or an mp3 file. How would I combine it with the swf file so
> that audio and video are in sync in the final swf file ?

You have to generate audio.swf in a way that it has the same
framerate as video.swf, e.g. like this:
    wav2swf -r <framerate> audio.wav -o audio.swf
Where <framerate> is the one reported by "swfdump -r video.swf".

Now the following will bring audio and video together:
    swfcombine -mT audio.swf video.swf -o combined.swf

Greetings

Matthias








reply via email to

[Prev in Thread] Current Thread [Next in Thread]