Разная скорость звуковых дорожек в mplayer

Разные проблемы звука, видео, обсуждение разных устройств и т.д.

Модератор: Модераторы разделов

Virusmater
Сообщения: 91

Разная скорость звуковых дорожек в mplayer

Сообщение Virusmater »

В видеофайле 2 звуковые дорожки, по умолчанию включается 1-я, но если переключить на 2-ю, то скорость звука заметно увеличивается. Если нажать на stop и пустить заново, то все будет в порядке. Когда переключаешь обратно на 1-ю дорожку то скорость звука наоборот уменьшается. В totem все в порядке. Можно ли как нибудь решить эту проблему без перезапуска видео? Использую smplayer+mplayer последних сборок с svn
Спасибо сказали:
CrAzYMaN
Сообщения: 7
ОС: Gentoo

Re: Разная скорость звуковых дорожек в mplayer

Сообщение CrAzYMaN »

Virusmater писал(а):
09.08.2009 23:29
В видеофайле 2 звуковые дорожки, по умолчанию включается 1-я, но если переключить на 2-ю, то скорость звука заметно увеличивается. Если нажать на stop и пустить заново, то все будет в порядке. Когда переключаешь обратно на 1-ю дорожку то скорость звука наоборот уменьшается. В totem все в порядке. Можно ли как нибудь решить эту проблему без перезапуска видео? Использую smplayer+mplayer последних сборок с svn

в мплеере есть синхронизация звука man mplayer

−autosync <factor>


Gradually adjusts the A/V sync based on audio delay measurements. Specifying −autosync 0, the default, will cause frame timing to be based entirely on audio delay measurements. Specifying −autosync 1 will do the same, but will subtly change the A/V correction algorithm. An uneven video framerate in a movie which plays fine with −nosound can often be helped by setting this to an integer value greater than 1. The higher the value, the closer the timing will be to −nosound. Try −autosync 30 to smooth out problems with sound drivers which do not implement a perfect audio delay measurement. With this value, if large A/V sync offsets occur, they will only take about 1 or 2 seconds to settle out. This delay in reaction time to sudden A/V offsets should be the only side-effect of turning this option on, for all sound drivers.



delay[=ch1:ch2:...]


Delays the sound to the loudspeakers such that the sound from the different channels arrives at the listening position simultaneously. It is only useful if you have more than 2 loudspeakers.


ch1,ch2,...


The delay in ms that should be imposed on each channel (floating point number between 0 and 1000).


To calculate the required delay for the different channels do as follows:


1.


Measure the distance to the loudspeakers in meters in relation to your listening position, giving you the distances s1 to s5 (for a 5.1 system). There is no point in compensating for the subwoofer (you will not hear the difference anyway).


2.


Subtract the distances s1 to s5 from the maximum distance, i.e. s[i] = max(s) − s[i]; i = 1...5.

3.


Calculate the required delays in ms as d[i] = 1000*s[i]/342; i = 1...5.


EXAMPLE:


mplayer −af delay=10.5:10.5:0:0:7:0 media.avi


Would delay front left and right by 10.5ms, the two rear channels and the sub by 0ms and the center channel by 7ms.
Спасибо сказали:
Virusmater
Сообщения: 91

Re: Разная скорость звуковых дорожек в mplayer

Сообщение Virusmater »

разве это не про задержку?

добавлено
: вероятно Вы не поняли. Я говорю не про каналы (left, right, front, etc), а про дорожку (rus, eng, etc)
Спасибо сказали: