[gst-devel] mpeg->divx status

Ronald Bultje R.S.Bultje at pharm.uu.nl
Thu May 8 23:42:07 CEST 2003

Hey Joshua,

On Fri, 2003-05-09 at 07:29, Joshua N Pritikin wrote:
> mplayer can play it if i use the -fps option.  However,
> the audio has lots of clicks and pops.  The audio is about
> 1-2s ahead of the video too.  i'm going to work on fixing
> the AVI header and see if things improve.  At least, FPS
> looks easy to fix.

I've got a local semi-fix for the audio problem. I know the problem, but
fixing it is hard, since you basically need to know the number of
samples written in how many bytes at which samplerate. Normally, this
bytes-per-second value can be calculated using audio_size/time, but time
(last_timestamp-first_timestamp) is inaccurate, it misses the time being
spent in the last buffer, and this can't be calculated in any correct
way, since we don't know the length of the last buffer (in time). In
short, mp3-audio is currently broken in avimux, and I'm not sure yet how
to fix it. WAV audio should work.

For FPS, we simply request the FPS from the video sink pad, so if that
doesn't work, likely something is broken somewhere in how the elements
interoperate. It'd help if you could send the AVI header (first 1 kB or
so) of the file to me, or via bugzilla.


More information about the gstreamer-devel mailing list