Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Can't play ANY video
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
IvanZD
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 166

PostPosted: Tue Jul 05, 2005 4:32 pm    Post subject: Can't play ANY video Reply with quote

Hi! Wierd problem.. no matter which app using, no matter which file I try to play.. every app freezes when start to play video.. this is example of output from mplayer, I can't see anything useful from this, but maybe someone will help me:

Code:
ivan@tux /storage/fights $ gmplayer pride.fc.shockwave.2004.cd1.avi
MPlayer 1.0pre6-3.3.5-20050130 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
MMX supported but disabled
MMX2 supported but disabled
SSE supported but disabled
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags:  MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions:


Warning unknown option cache_min at line 144
Warning unknown option cache_prefill at line 147


vo: X11 running at 1280x1024 with depth 24 and 32 bpp (":0.0" => local display)
77 audio & 189 video codecs
/home/ivan/.kde/share/config/gtkrc:37: error: unexpected identifier `gtk-alternative-button-order', expected keyword - e.g. `style'
Playing /storage/fights/pride.fc.shockwave.2004.cd1.avi.
AVI file format detected.
VIDEO:  [DX50]  720x480  24bpp  29.970 fps  1482.8 kbps (181.0 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 14000->176400 (112.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[gl] Using 4 as slice height (0 means image height).
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm:ffmpeg (FFmpeg MPEG-4)
==========================================================================
Checking audio filter chain for 44100Hz/2ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
[ws] Error in display.
[ws]  Error code: 178 ( BadShmSeg (invalid shared segment parameter) )
[ws]  Request code: 147
[ws]  Minor code: 2
[ws]  Modules: enable_cache
[ws] Error in display.
[ws]  Error code: 14 ( BadIDChoice (invalid resource ID chosen for this connection) )
[ws]  Request code: 1
[ws]  Minor code: 0
[ws]  Modules: ao2_init
Broken pipe
ivan@tux /storage/fights $           


After gmplayer file_name command, mplayer starts but freezes immediately with this console output.. starting from this line:
Code:
[ws] Error in display.

to the end of output... is shown after I press Ctrl-C.

It is fresh instalation, so never worked out before.. starting gmplayer as root gives no change in situation. Any idea please?
_________________
http://www.meteoadriatic.net/
Back to top
View user's profile Send private message
arma
Apprentice
Apprentice


Joined: 07 Nov 2004
Posts: 198
Location: Belgium

PostPosted: Tue Jul 05, 2005 5:04 pm    Post subject: Reply with quote

try 'mplayer -vo help' to sees what video output is available

then try with 'mplayer -vo [chosen vo] [your file]
_________________
l'alcool est un ennemi...
et en quelque sorte,...
fuir l'ennemi, c'est lâche
Back to top
View user's profile Send private message
IvanZD
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 166

PostPosted: Tue Jul 05, 2005 5:33 pm    Post subject: Reply with quote

Unfortunately, don't work. I tried them all:
Code:
ivan@tux /storage/fights $ mplayer -vo help
MPlayer 1.0pre6-3.3.5-20050130 (C) 2000-2004 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton (Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
MMX supported but disabled
MMX2 supported but disabled
SSE supported but disabled
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags:  MMX: 0 MMX2: 0 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions:


Warning unknown option cache_min at line 144
Warning unknown option cache_prefill at line 147

Available video output drivers:
        xv      X11/Xv
        x11     X11 ( XImage/Shm )
        xover   General X11 driver for overlay capable video output drivers
        gl      X11 (OpenGL)
        gl2     X11 (OpenGL) - multiple textures version
        sdl     SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
        vesa    VESA VBE 2.0 video output
        null    Null video output
        mpegpes Mpeg-PES file
        yuv4mpeg        yuv4mpeg output for mjpegtools
        png     PNG file
        jpeg    JPEG file
        gif89a  animated GIF output
        pnm     PPM/PGM/PGMYUV file
        md5sum  md5sum of each frame


Noone output work.. only with xv and x11 freezes, with others do not freeze, but then shows message "Error opening selected vo" :cry:
_________________
http://www.meteoadriatic.net/
Back to top
View user's profile Send private message
cuciferus
n00b
n00b


Joined: 05 Jul 2005
Posts: 17
Location: RO

PostPosted: Tue Jul 05, 2005 5:52 pm    Post subject: Reply with quote

i had a similar error "fatal error:[ws] shared memory extension error" which was somehwo rlated to yours. I found out I had to have CONFIG_SYSVIPC=y in my kernel config for mplayer to work properly. Maybe you can find your answer here:
[url] http://zenii.linux.org.uk/~telsa/GDP/gnome-faq/problems.html
[/url]
or here [url] http://enterprise.linux.com/enterprise/04/10/16/0239251.shtml?tid=89
[/url]
Back to top
View user's profile Send private message
IvanZD
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 166

PostPosted: Tue Jul 05, 2005 6:03 pm    Post subject: Reply with quote

It is turned on.. Yes, I already had in mind that I maybe switched something off in kernel.. but I cannot find anything related to playing video there.
_________________
http://www.meteoadriatic.net/
Back to top
View user's profile Send private message
cuciferus
n00b
n00b


Joined: 05 Jul 2005
Posts: 17
Location: RO

PostPosted: Tue Jul 05, 2005 6:46 pm    Post subject: Reply with quote

Quote:
Code:
 BadShmSeg (invalid shared segment parameter

so my guess is that is something wrong with the shared memory configuration, not directly related to playing videos...it's just a guess basted opon my experience
Back to top
View user's profile Send private message
IvanZD
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 166

PostPosted: Tue Jul 05, 2005 7:01 pm    Post subject: Reply with quote

Dammit maybe you're right.. maybe now I will say some stupidness.. but looking at top shows this:

"Mem: 904860k total"

I have a 2x512MB of RAM.. pretty sure that in previous installation (slackware) there was somewhat bigger that number. What could I check now? Any idea?
_________________
http://www.meteoadriatic.net/
Back to top
View user's profile Send private message
IvanZD
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 166

PostPosted: Tue Jul 05, 2005 7:22 pm    Post subject: Reply with quote

Now, when I press Play in mplayer, it show this block in console:
Code:
Playing /storage/fights/pride.fc.shockwave.2004.cd1.avi.
Cache fill:  5.18% (434176 bytes)    AVI file format detected.
VIDEO:  [DX50]  720x480  24bpp  29.970 fps  1482.8 kbps (181.0 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, 16 bit (0x10), ratio: 14000->176400 (112.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
VO XOverlay need a subdriver
Error opening/initializing the selected video_out (-vo) device.


Doens't freeze.. if I press Play again, it prints that output again.. and like that...
_________________
http://www.meteoadriatic.net/
Back to top
View user's profile Send private message
IvanZD
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 166

PostPosted: Tue Jul 05, 2005 8:26 pm    Post subject: Reply with quote

I got it! It starts playing with this:

Code:
$ gmplayer -vo x11 -nosound 1.avi


When I omit -nosound I get:

Code:

.....
Checking audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
AF_pre: af format: 2 bps, 2 ch, 48000 hz, little endian signed int
AF_pre: 48000Hz 2ch Signed 16-bit (Little-Endian)
alsa-init: got device=0, subdevice=0
alsa-init: 1 soundcard found, using: default
[ws] Error in display.
[ws]  Error code: 178 ( BadShmSeg (invalid shared segment parameter) )
......

Just like before.. it means that problem is with audio..

AmaroK and other sound apps works.. strange...
_________________
http://www.meteoadriatic.net/
Back to top
View user's profile Send private message
arma
Apprentice
Apprentice


Joined: 07 Nov 2004
Posts: 198
Location: Belgium

PostPosted: Tue Jul 05, 2005 8:41 pm    Post subject: Reply with quote

again, try with '-ao help'
and choose a plugins that suits to you

are you sure you dont use any ESD or ARTS thats blocking your soundcard ?
_________________
l'alcool est un ennemi...
et en quelque sorte,...
fuir l'ennemi, c'est lâche
Back to top
View user's profile Send private message
IvanZD
Apprentice
Apprentice


Joined: 04 Jul 2005
Posts: 166

PostPosted: Tue Jul 05, 2005 9:27 pm    Post subject: Reply with quote

It works with -ao arts. So I put these lines in .mplayer/config:

Code:
vo = x11
ao = arts


Now I am able to play video with mplayer (still not with noatun, but now I know where probles should be). I must admit that multimedia was always be hard point for me in linux.. never really understood how it works :?

Thanks everyone for help!
_________________
http://www.meteoadriatic.net/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum