[MPlayer-dev-eng] audio pts bad in mplayer if audio encoding with lavc (mencoder)

Rich Felker dalias at aerifal.cx
Sat Jan 19 16:42:52 CET 2008


On Thu, Jan 17, 2008 at 11:42:09AM +0100, Ötvös Attila wrote:
> end of relevant files --------
> 
> mencoder:
> nBlockAlign always 1 if lavc_actx->block_align is 0
> 
> mplayer:
> priv->audio_block_no+=(packet len) if nBlockAlign is 1 -->
> pts=(byte pos)*dwScale/dwRate if nBlockAlign is 1
> 
> I think so correct apts:
> nBlockAlign=dwScale in mencoder (ae_lavc) or
> swScale=1 if nBlockAlign is 1 in mplayer (demux_avi)
> 
> Comment or other solving?

I've noticed the same problem when playing avi files generated by the
ffmpeg program itself... Could you check and confirm that? If so the
issue probably should be fixed at the lavf muxer level rather than
mencoder's wrapper.

Rich



More information about the MPlayer-dev-eng mailing list