MEncoder

„MEncoder is a free command line video decoding, encoding and filtering tool released under the GNU General Public License. It is a close sibling to MPlayer and can convert all the formats that MPlayer understands into a variety of compressed and uncompressed formats using different codecs.“

MEncoder. (2008, February 23). In Wikipedia, The Free Encyclopedia. Retrieved 18:57, April 5, 2008, from
http://en.wikipedia.org/w/index.php?title=MEncoder&oldid=193447614


My Blog List

Tuesday, May 27, 2008

Re: [MEncoder-users] How to change the audio timestamps

On Tue, 27 May 2008, A. Schmid wrote:

> I don't even know why it happens. Is ALSA outputting too much/few
> samples per second? If captured samples have a slightly different
> duration compared to the playback, you only _can_ geht drift...

A player is supposed to use feedback from the audio drivers to keep things
in sync, but I've never gotten mplayer to work entirely satisfactorily
with ALSA (I use -ao oss instead). However, I was just seeing out-of-sync
audio, not systematic drift. That just sounds like too few/too many
frames.

> The only solution could be to make mencoder use a reliable time source
> (system clock instead of number of sound samples) to synchronize audio and
> video. Something like -autosync for mencoder.

There is no standard reliable time source for PCs. The system clock can
only be counted on to provide .1-second precision, and that not terribly
accurately.

Besides, it doesn't work since audio is almost never played back at
exactly the nominal sample rate, just the closest you can get with the
sound hardware's clock (combined with whatever on-the-fly resampling the
ALSA driver might be doing).
_______________________________________________
MEncoder-users mailing list
MEncoder-users@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mencoder-users

No comments:

PCBs

Links

Forex brokers, Forex online


Privacy Policy