[gst-devel] A question for avimux in gstreamer

Zhang Yanlong-PBVM47 PBVM47 at motorola.com
Tue May 13 02:30:11 CEST 2008


Mark,
Yes, it works well.
Very thanks for your helps.

BRs
Zhang Yanlong 

-----Original Message-----
From: Mark Nauwelaerts [mailto:manauw at skynet.be] 
Sent: Tuesday, May 13, 2008 6:21 AM
To: Zhang Yanlong-PBVM47
Cc: gstreamer-devel at lists.sourceforge.net
Subject: Re: [gst-devel] A question for avimux in gstreamer


There is indeed a bit of a bug there in avimux, as already noted in
http://bugzilla.gnome.org/show_bug.cgi?id=511489
A patch given there addresses it pretty much the way you indicate.

Regards,
Mark.


Zhang Yanlong-PBVM47 wrote:
> Pals,
> I have a question for avimux in gstreamer.
>  
> Pls look through the function "gst_avi_mux_audsink_set_caps" in file 
> "gstavimux.c"
> There are following lines at the end of this function:
>  
>   *avipad->parent.hdr.rate = avipad->auds.blockalign *
avipad->auds.rate;*
>   avipad->parent.hdr.samplesize = avipad->auds.blockalign;
>   avipad->parent.hdr.scale = 1;
>  
> My question is that why the program does "*avipad->auds.blockalign *
> avipad->auds.rate*" when calculating *avipad->parent.hdr.rate*.
>  
> When I playback a avifile which is generated by gstreamer avimux 
> (YUV420 video data and PCM audio data <depth: 16, width: 16, 2 
> channels>), the time lapsesvery slowly on player (Windows media 
> player). The time progress bar just passes 1 second but the real time
passes 4 seconds.
>  
> If I change the code to  "*avipad->parent.hdr.rate =
> avipad->auds.rate;*", the file is played well.
>  
> So I am not sure if there is some problem at this point.
>  
> Thanks a lot.
>  
> BRs
> Zhang yanlong
> **
>  
> 
> 
> ----------------------------------------------------------------------
> --
> 
> ----------------------------------------------------------------------
> --- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
> Don't miss this year's exciting event. There's still time to save
$100.
> Use priority code J8TL2D2. 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com
> /javaone
> 
> 
> ----------------------------------------------------------------------
> --
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel




More information about the gstreamer-devel mailing list