Воспроизведение 2-х видеофайлов

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

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

mixaiii
Сообщения: 93

Воспроизведение 2-х видеофайлов

Сообщение mixaiii »

Насколько я помню в ubuntu 8.04 у меня нормально воспроизводилось сразу 2 видеофайла

а в ubuntu 8.10 нет

т.е. я хочу чтоб одновременно можно было запустить VLC и mplayer или totem

в консоле

если запустить тотем а потом vlc то
$ vlc Linux_vs_Windows.mpg
VLC media player 0.9.4 Grishenko
[00000001] main libvlc debug: VLC media player - version 0.9.4 Grishenko - © 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--build=i486-linux-gnu' '--enable-maintaner-mode' '--enable-release' '--prefix=/usr' '--enable-libtool' '--enable-fast-install' '--with-binary-version=1ubuntu3' '--disable-update-check' '--disable-gnome' '--disable-gtk' '--disable-familiar' '--disable-fb' '--enable-ggi' '--enable-sdl' '--enable-esd' '--enable-mad' '--enable-arts' '--enable-jack' '--enable-pulse' '--enable-lirc' '--enable-a52' '--enable-aa' '--enable-dvbpsi' '--enable-mozilla' '--with-mozilla-pkg=libxul-plugin' '--disable-kde' '--enable-mp4' '--enable-dvb' '--disable-satellite' '--enable-ogg' '--enable-vorbis' '--enable-shout' '--enable-qt4' '--disable-slp' '--enable-flac' '--disable-skins' '--disable-basic-skins' '--enable-skins2' '--enable-freetype' '--enable-mkv' '--enable-speex' '--enable-caca' '--enable-live555' '--enable-libmpeg2' '--enable-fribidi' '--enable-cdio' '--enable-mod' '--enable-theora' '--enable-modplug' '--enable-dvdnav' '--enable-gnutls' '--enable-ffmpeg' '--enable-ncurses' '--enable-smb' '--disable-gnomevfs' '--enable-bonjour' '--enable-mpc' '--enable-vcd' '--enable-vcdx' '--enable-notify' '--enable-twolame' '--enable-x264' '--enable-faad' '--disable-zvbi' '--enable-telx' '--enable-mediacontrol-bindings' '--disable-atmo' '--enable-taglib' '--enable-libass' '--enable-libdca' '--enable-alsa' '--enable-dv' '--enable-v4l' '--enable-v4l2' '--enable-pvr' '--enable-svgalib' '--enable-dvd' '--without-dvdcss' 'build_alias=i486-linux-gnu' 'CFLAGS=-g -O2' 'LDFLAGS=-Wl,--as-needed' 'CPPFLAGS=' 'CXXFLAGS=-g -O2'
[00000001] main libvlc debug: translation test: code is "ru"
QPainter::begin: Paint device returned engine == 0, type: 1
[HuhHuh??] x11 video output error: X11 request 140.19 failed with error code 11:
BadAlloc (insufficient resources for operation)
X Error of failed request: BadAlloc (insufficient resources for operation)
Major opcode of failed request: 140 (XVideo)
Minor opcode of failed request: 19 ()
Serial number of failed request: 88
Current serial number in output stream: 89


если наоборот

totem Потоки.mpeg
The program 'totem' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
(Details: serial 66 error_code 11 request_code 140 minor_code 19)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)


тотем и mplayer

mplayer Linux_vs_Windows.mpg
MPlayer 1.0rc2-4.3.2 © 2000-2007 MPlayer Team
CPU: AMD Athlon™ 64 Processor 3200+ (Family: 15, Model: 47, Stepping: 2)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Option msglevel: Unknown suboption 5
Warning unknown option msglevel at line 5
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.

Playing Linux_vs_Windows.mpg.
MPEG-PS file format detected.
VIDEO: MPEG1 320x240 (aspect 1) 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
xscreensaver_disable: xscreensaver wid=18874875.
[VO_XV] Could not grab port 57.
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 320 x 240 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed Sad
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
==========================================================================
Forced audio codec: mad
Opening audio decoder: [libmad] libmad mpeg audio decoder
AUDIO: 48000 Hz, 2 ch, s16le, 128.0 kbit/8.33% (ratio: 16000->192000)
Selected audio codec: [mad] afm: libmad (libMAD MPEG layer 1-2-3)
==========================================================================
AO: [pulse] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
VO: [xv] 320x240 => 320x240 Planar YV12
X11 error: BadAlloc (insufficient resources for operation)?,?% 2 0
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)
X11 error: BadAlloc (insufficient resources for operation)?,?% 2 0
X11 error: BadAlloc (insufficient resources for operation)?,?% 2 0
X11 error: BadAlloc (insufficient resources for operation)?,?% 2 0
X11 error: BadAlloc (insufficient resources for operation)?,?% 2 0
---------------------------------------------//---------------------------------------------
X11 error: BadAlloc (insufficient resources for operation)1.4% 2 0
X11 error: BadAlloc (insufficient resources for operation)1.4% 2 0
X11 error: BadAlloc (insufficient resources for operation)1.4% 2 0
X11 error: BadAlloc (insufficient resources for operation)1.4% 2 0
X11 error: BadAlloc (insufficient resources for operation)1.4% 2 0
X11 error: BadAlloc (insufficient resources for operation)1.4% 2 0
X11 error: BadAlloc (insufficient resources for operation)1.4% 2 0
X11 error: BadAlloc (insufficient resources for operation)1.4% 2 0
A: 10.4 V: 10.4 A-V: 0.007 ct: -0.069 249/249 4% 0% 1.4% 2 0
Exiting... (Quit)


возможно что-то с Выбор мультимедийной системы (gstreamer-properties)

изначально все играет через xv

конечно, если тотем пустить через xv, а допустим mplayer через x11 то все норм
но в 8.04 я так не делал и работало то ли на автомате (перекл. на х11) то ли всё через xv шло

как решить проблему?
Спасибо сказали:
Аватара пользователя
Mage-Warrior
Сообщения: 869
Статус: Семь раз понюхай, один раз откуси!
ОС: SlackWare 12.1

Re: Воспроизведение 2-х видеофайлов

Сообщение Mage-Warrior »

Вот по этой ссылке есть решение - обновление драйвера видео. Где-то мельком встречал связь с композитным менеджером (compiz/beryl).
*- Большинство проблем, дружок, завсегда покажет лог! -*
Спасибо сказали:
mixaiii
Сообщения: 93

Re: Воспроизведение 2-х видеофайлов

Сообщение mixaiii »

ну не знаю
ибо драйвера на видео я не ставил (у меня ati)
стоят те что по умолчанию
в 8.04 так же стояли драйвера по умолчанию

опа! по поводу компиза
отключил компиз, теперь показывает 2 видеофайла одновременно
но как теперь сделать, чтоб с компизом работало (как в 8.04)?
Спасибо сказали:
Аватара пользователя
Mage-Warrior
Сообщения: 869
Статус: Семь раз понюхай, один раз откуси!
ОС: SlackWare 12.1

Re: Воспроизведение 2-х видеофайлов

Сообщение Mage-Warrior »

mixaiii писал(а):
28.01.2009 10:14
...
опа! по поводу компиза
отключил компиз, теперь показывает 2 видеофайла одновременно
но как теперь сделать, чтоб с компизом работало (как в 8.04)?

Пробуйте обновить драйвер (чем черт не шутит).
Еще нашел, что может помочь добавление:

Код: Выделить всё

 Option "AccelMethod" "exa"
в секцию Device файла /etc/X11/xorg.conf и перезапуск X-ов.
*- Большинство проблем, дружок, завсегда покажет лог! -*
Спасибо сказали:
mixaiii
Сообщения: 93

Re: Воспроизведение 2-х видеофайлов

Сообщение mixaiii »

Mage-Warrior писал(а):
28.01.2009 13:35
Пробуйте обновить драйвер (чем черт не шутит).

не знаю как
Mage-Warrior писал(а):
28.01.2009 13:35
Еще нашел, что может помочь добавление:

Код: Выделить всё

 Option "AccelMethod" "exa"
в секцию Device файла /etc/X11/xorg.conf и перезапуск X-ов.

спасибо! это помогло, только вроде тормозить стало... мда, точно, прорисовка какая та ужасная :(
а что это значит Option "AccelMethod" "exa" ?
Спасибо сказали:
Аватара пользователя
Mage-Warrior
Сообщения: 869
Статус: Семь раз понюхай, один раз откуси!
ОС: SlackWare 12.1

Re: Воспроизведение 2-х видеофайлов

Сообщение Mage-Warrior »

*- Большинство проблем, дружок, завсегда покажет лог! -*
Спасибо сказали:
mixaiii
Сообщения: 93

Re: Воспроизведение 2-х видеофайлов

Сообщение mixaiii »

ясно, спасибо
но с этой опцией тормозит прорисовка окон некоторых программ
может есть какое-нибудь другое решение или опция в xorg?
Спасибо сказали:
Аватара пользователя
Mage-Warrior
Сообщения: 869
Статус: Семь раз понюхай, один раз откуси!
ОС: SlackWare 12.1

Re: Воспроизведение 2-х видеофайлов

Сообщение Mage-Warrior »

Обновите драйвер (на открытый). Инструкция.
Вообще, хотелось бы тогда увидеть xorg.conf, лог загрузки X и узнать точное название вашей видеокарты. Без этих данных можно давать только общие рекомендации.
Нашел много тем по этому поводу. Для снятия тормозов предлагаю отключить EXA, а для решения вашей первоначальной проблемы - включить. Замкнутый круг. Поэтому вся надежда на исправление пропиетарных драйверов или установку открытых.
Пока все, что могу придумать, так как у самого только Nvidia была (чему рад, однако).
*- Большинство проблем, дружок, завсегда покажет лог! -*
Спасибо сказали:
mixaiii
Сообщения: 93

Re: Воспроизведение 2-х видеофайлов

Сообщение mixaiii »

так
видеокарта radeon 9800
как я понял сейчас стоят открытые драйвера
Mesa DRI R300 20060815 AGP 8x x86/MMX+/3DNow!+/SSE2 TCL
xorg.conf у меня по-умолчанию пустой (читал где-то что теперь в ubuntu 8.10 всё само настраивается, но если в хорг что-нибудь написать, то это будет приоритетный)
как я уже писал при токой видяхе в 8.04 всё нормально работало (правда в xorg.conf что-то было написано) и прорисовка окон не тормозила

поповоду лога загрузки
нужен var/log/Xorg.0.log?
если да, то вот http://paste.org.ru/?evs8oc

ради интереса поставил проприетарные драва
там 2 видео показывает нормально, прорисовка окон не тормозит
но дрова как известно г....
вот проприетарный xorg http://paste.org.ru/?t2mzro

снес их и вернул открытые

по поводу открытых драйверов (ради интереса)
а в чем разница межу тем что стоит у меня сейчас и этим
http://www.youisbee.ru/index.php/documents...atiopendrv.html
?
просто глянул http://phoronix.com/forums/showthread.php?t=9951
там написано WARNING: the following guide is no longer actively supported. Please upgrade to Ubuntu 8.10 if you need updated radeon drivers

а так сегодня вечером может попробую поставить

п.с. может в компизе дело т.к. если его откл., то всё норм
Спасибо сказали:
mixaiii
Сообщения: 93

Re: Воспроизведение 2-х видеофайлов

Сообщение mixaiii »

поставил открытые драйвера
не помогло :(
Спасибо сказали:
Аватара пользователя
HomeCraft
Сообщения: 220
ОС: Lubuntu 18.04, Lubuntu 14.04

Re: Воспроизведение 2-х видеофайлов

Сообщение HomeCraft »

Чтобы не плодить темы расскажу тут о своей проблеме:
Система Mandriva 2009.1 (перешел с 2008.1) при запуске xine или попытке воспроизведения видео в totem они вылетают со следующими сообщениями:

Код: Выделить всё

[av@localhost ~]$ xine
Это xine (графическая оболочка для X11) - свободный видеопроигрыватель v0.99.5.
(c) 2000-2007 The xine Team.
X Error of failed request:  BadAlloc (insufficient resources for operation)
  Major opcode of failed request:  133 (XVideo)
  Minor opcode of failed request:  19 ()
  Serial number of failed request:  2346
  Current serial number in output stream:  2347
[av@localhost ~]$ totem
** (totem:4017): WARNING **: Failed to create dbus proxy for org.gnome.SettingsDaemon: Could not get owner of name 'org.gnome.SettingsDaemon': no such name
The program 'totem' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAlloc (insufficient resources for operation)'.
  (Details: serial 106 error_code 11 request_code 133 minor_code 19)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
[av@localhost ~]$

из нагугленного напрашивается вывод, что причиной являются кривые дрова intel. У меня установлены два пакета:

Код: Выделить всё

[av@localhost ~]$ rpm -qa | grep x11-driver-video-i
x11-driver-video-i810-1.7.4-31mdv2009.1
x11-driver-video-intel-2.7.1-0.1mdv2009.1

последнй был обновлен, но ситуация не изменилась. В 2008.1 проблем не было, да и с 2009.1 столкнулся только на одном компе. На лаптопе с интелом все нормально, на десктопе с нвидиа тоже. Проблема только на десктопе с интелом.
Кто сталкивался с подобным, подскажите как побороть.
Спасибо сказали: