Проблемы при просмотре видео, звук ААС, высокий fps (smplayer, AAC 5.1 119.880 fps)

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

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

SamStone
Сообщения: 33
ОС: Ubuntu 8.10 x86_64

Проблемы при просмотре видео, звук ААС, высокий fps

Сообщение SamStone »

Здравствуйте :) Помогите разрешить 2 проблемы, уже несколько дней копаюсь, но пока мало что выходит :(
Первая проблема: при наличии звуковой дорожки закоденной AAC/mp4a, неверно выводятся каналы. Они получаются сдвинутыми против часовой стрелки. Т.е. центр идет через левую переднюю, правая передняя через центр и тд. Если звук АС3, то все нормально, для проверки перебрал пачку имеющихся фильмов ) Данный косяк есть в smplayer, xine, vlc. Однако через тотем все выводится нормально. Временное решение, чтоб хоть как-то смотреть, нашел в mplayer -af pan=..., т.е. ручками перекидываю каналы, чтобы все шло "прямо" :)
Звук через алсу. В ~/.asoundrc лежит

Код:

ctl.!default { type plug slave.ctl "surround51" slave.channels 6 route_policy default } pcm.!default { type plug slave.pcm "surround51" slave.channels 6 route_policy default } #2 "штуки", потому что, если оставить только вторую, то в смплеере не регулируется громкость. Может и криво, но хоть как-то работает :)


Вторая проблема: видео, в котором частота кадров определяется как 119.880 (других, больше 30, нет для теста :)), идет с жуткими тормозами, процессор загружен на макс, звук воспроизводится без проблем. Но только в smplayer'е. В мплеере нормально. Крутил-вертел настройки, но безрезультатно.
Пробовал выводить видео и через xv, и через х11.

Код:

/usr/bin/mplayer -noquiet -nofs -sub-fuzziness 1 -identify -slave -vo x11 -ao alsa -zoom -nokeepaspect -dr -input conf=/usr/share/smplayer/input.conf -nostop-xscreensaver -wid 79691790 -monitorpixelaspect 1 -fontconfig -font Lucida Sans -subfont-autoscale 1 -subfont-text-scale 5 -subcp UTF-8 -aid 1 -subpos 100 -contrast 0 -brightness 0 -hue 0 -saturation 0 -cache 8192 -osdlevel 0 -vf-add pp -autoq 6 -vf-add screenshot -channels 6 /home/sam/Видео/Sumomomo Momomo/Sumomomo Momomo(The Strongest Bride on Earth)[07].avi MPlayer 1.0rc2-4.2.3 © 2000-2007 MPlayer Team CPU: Intel® Core™2 Duo CPU E8400 @ 3.00GHz (Family: 6, Model: 23, Stepping: 6) CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1 Compiled with runtime CPU detection. mplayer: could not connect to socket mplayer: No such file or directory Failed to open LIRC support. You will not be able to use your remote control. Terminal type `unknown' is not defined. Playing /home/sam/Видео/Sumomomo Momomo/Sumomomo Momomo(The Strongest Bride on Earth)[07].avi. AVI file format detected. ID_VIDEO_ID=0 [aviheader] Video stream found, -vid 0 ID_AUDIO_ID=1 [aviheader] Audio stream found, -aid 1 VIDEO: [WMV3] 1280x720 24bpp 119.880 fps 2303.8 kbps (281.2 kbyte/s) Clip info: Software: VirtualDubMod 1.5.10.1 (build 2439/release) ID_CLIP_INFO_NAME0=Software ID_CLIP_INFO_VALUE0=VirtualDubMod 1.5.10.1 (build 2439/release) Source: nfW^(D3 Cap) ID_CLIP_INFO_NAME1=Source ID_CLIP_INFO_VALUE1=nfW^(D3 Cap) Comments: CRC32FB00AF889 ID_CLIP_INFO_NAME2=Comments ID_CLIP_INFO_VALUE2=CRC32FB00AF889 ID_CLIP_INFO_N=3 SUB: Detected subtitle file format: ssa SUB: Read 450 subtitles. ID_FILE_SUB_ID=0 ID_FILE_SUB_FILENAME=/home/sam/Видео/Sumomomo Momomo/Sumomomo Momomo(The Strongest Bride on Earth)[07].ass SUB: Added subtitle file (1): /home/sam/Видео/Sumomomo Momomo/Sumomomo Momomo(The Strongest Bride on Earth)[07].ass ID_FILENAME=/home/sam/Видео/Sumomomo Momomo/Sumomomo Momomo(The Strongest Bride on Earth)[07].avi ID_DEMUXER=avi ID_VIDEO_FORMAT=WMV3 ID_VIDEO_BITRATE=2303816 ID_VIDEO_WIDTH=1280 ID_VIDEO_HEIGHT=720 ID_VIDEO_FPS=119.880 ID_VIDEO_ASPECT=0.0000 ID_AUDIO_FORMAT=85 ID_AUDIO_BITRATE=192000 ID_AUDIO_RATE=0 ID_AUDIO_NCH=0 ID_LENGTH=1409.93 Opening video filter: [screenshot] Opening video filter: [pp] ========================================================================== Opening video decoder: [dmo] DMO video codecs DMO dll supports VO Optimizations 0 1 DMO dll might use previous sample when requested GetOutput r=0x0 size:2764800 align:1 StreamCount r=0x0 1 1 Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555 RGB565 RGB24 RGB32 Decoder is capable of YUV output (flags 0x1b) VDec: vo config request - 1280 x 720 (preferred colorspace: Packed YUY2) [PP] Using external postprocessing filter, max q = 6. VDec: using Planar YV12 as output csp (no 0) Movie-Aspect is undefined - no prescaling applied. [swscaler @ 0x89357b0]SwScaler: using unscaled yuv420p -> bgr24 special converter VO: [x11] 1280x720 => 1280x720 Planar YV12 [zoom] X11 error: BadAccess during XSelectInput Call X11 error: The 'ButtonPressMask' mask of specified window has probably already used by another appication (see man XSelectInput) X11 error: MPlayer discards mouse control (reconfiguring) X11 error: BadAccess during XSelectInput Call X11 error: The 'ButtonPressMask' mask of specified window has probably already used by another appication (see man XSelectInput) X11 error: MPlayer discards mouse control (reconfiguring) Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO) ========================================================================== ID_VIDEO_CODEC=wmv9dmo [PP] Using external postprocessing filter, max q = 6. ========================================================================== Forced audio codec: mad Opening audio decoder: [libmad] libmad mpeg audio decoder AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000) ID_AUDIO_BITRATE=192000 ID_AUDIO_RATE=48000 ID_AUDIO_NCH=2 Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3) ========================================================================== AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample) ID_AUDIO_CODEC=mad Starting playback... ************************************************ **** Your system is too SLOW to play this! **** ************************************************ Possible reasons, problems, workarounds: - Most common: broken/buggy _audio_ driver - Try -ao sdl or use the OSS emulation of ALSA. - Experiment with different values for -autosync, 30 is a good start. - Slow video output - Try a different -vo driver (-vo help for a list) or try -framedrop! - Slow CPU - Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts, e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all. - Broken file - Try various combinations of -nobps -ni -forceidx -mc 0. - Slow media (NFS/SMB mounts, DVD, VCD etc) - Try -cache 8192. - Are you using -cache to play a non-interleaved AVI file? - Try -nocache. Read DOCS/HTML/en/video.html for tuning/speedup tips. If none of this helps you, read DOCS/HTML/en/bugreports.html. Invalid command for bound key SPACE : pausing_keep invalid_command ===== PAUSE ===== ID_PAUSED

Советы в конце лога не помогли.

ubuntu 8.04 ядро 2.6.24-19, E8400, 2G, GA-X38-DS5, nVidia 8800GT, Audigy2 value + встроенный звук + AverTV 307, Alsa 1.0.16, smplayer 0.6.1 (SVN r1304). Кодеки всякие понаставлены (что рекомендуют в соотв. топиках)
Спасибо сказали:
alexotmp
Сообщения: 96
ОС: OpenSUSE 11.2

Re: Проблемы при просмотре видео, звук ААС, высокий fps

Сообщение alexotmp »

попробуй с этим поигратся:
mplayer -vfm help
mplayer -afm help
(Sumomomo Momomo - ааа не хочу женится; или институт зовет)))
Спасибо сказали:
SamStone
Сообщения: 33
ОС: Ubuntu 8.10 x86_64

Re: Проблемы при просмотре видео, звук ААС, высокий fps

Сообщение SamStone »

119 fps я поборол, проблема была в .asoundrc. Где-то нарыл конфиг, который почти устраивает:

Код:

pcm.!default { type plug slave.pcm "dmixer" } pcm.dmixer { type dmix ipc_key 1024 slave { pcm "hw:0,0" format S32_LE period_time 0 period_size 1024 buffer_size 8192 rate 96000 } bindings { 0 0 1 1 } } ctl.dmixer { type hw card 0 device 0 } pcm.dsp { type plug slave.pcm "dmixer" # use our new PCM here } ctl.mixer { type hw card 0 }

Один минус - 5.1 звук громкость в смплеере не регулируется, а разбираться времени почти нет :( Так и пилю потихоньку

Также погрался с -afm - ААС звук не полечился :(
Спасибо сказали:
Аватара пользователя
mixrin
Сообщения: 155
ОС: gentoo ~amd64

Re: Проблемы при просмотре видео, звук ААС, высокий fps

Сообщение mixrin »

В mplayer'е включи framedrop, либо рип кривой, либо проц слабый. 120 fps это нормально.
proud paludis user.
Спасибо сказали:
SamStone
Сообщения: 33
ОС: Ubuntu 8.10 x86_64

Re: Проблемы при просмотре видео, звук ААС, высокий fps

Сообщение SamStone »

Специально свою железку описал. Не думал, что Е8400 - слабый ;)
Фреймдроп, кстати, пробовал. Там вообще видео переставало показываться, только первый кадр висел ) И как я выше написал, проблема решилась новой начинкой для asoundrc.
Теперь бы с кривизной вывода mp4a аудио разобраться.
Спасибо сказали:
Аватара пользователя
mixrin
Сообщения: 155
ОС: gentoo ~amd64

Re: Проблемы при просмотре видео, звук ААС, высокий fps

Сообщение mixrin »

Может рип кривой, что mplayer об него спотыкается, у меня была одна вещь, от нее mplayer был жуткий memory leak, сначала забивалась вся оперативная память, потом своп :)
proud paludis user.
Спасибо сказали:
Аватара пользователя
sspphheerraa
Сообщения: 1375
ОС: Gentoo

Re: Проблемы при просмотре видео, звук ААС, высокий fps

Сообщение sspphheerraa »

120 fps это нормально

Ну, для кого как :D
Дайте мне ссылочку на видеокамеру (хотябы на суперпрофи... хотябы за 100000$...) снимающую с таким fps...


ps Этого явно не может быть. Файл кривой.
Sspphheerraa
Спасибо сказали:
SamStone
Сообщения: 33
ОС: Ubuntu 8.10 x86_64

Re: Проблемы при просмотре видео, звук ААС, высокий fps

Сообщение SamStone »

Гуглил на эту тему, вроде как причина - vbr видео в AVI. В основном такой ерундой стадает аниме.
Спасибо сказали:
Аватара пользователя
sspphheerraa
Сообщения: 1375
ОС: Gentoo

Re: Проблемы при просмотре видео, звук ААС, высокий fps

Сообщение sspphheerraa »

Тогда попробуй перемуксить в другой контейнер, например матрешку...
Sspphheerraa
Спасибо сказали: