LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-08-2005, 12:31 PM   #1
imix
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Posts: 5

Rep: Reputation: 0
Angry Sound but no video with xine, mplayer


Hi all,

Let me explain you, when I tried to play any video file (wmv, avi, mpg) with xine or mplayer, I can ear sound but not video just a black screen.

I'm using Mandrake 10.1. into Laptop Compaq NC6000, with ATI Radeon 9600 video card,

When I trying with mplayer by command I got follow:

==================================================================

[jammauser@irontux tmp]$ mplayer Rana\ con\ Moto3.wmv
MPlayer 1.0pre5-3.4.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias 1495 MHz (Family: 6, Stepping: 5)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/jammauser/.mplayer/config
Reading config file /usr/lib/win32
Reading /home/jammauser/.mplayer/codecs.conf: Can't open '/home/jammauser/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Linux RTC init error in ioctl (rtc_irqp_set 1024): Invalid argument
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/jammauser/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
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 Rana con Moto3.wmv.
Cache fill: 16.93% (1420547 bytes) ASF file format detected.
VIDEO: [WMV2] 480x384 24bpp
Clip info:
name:
author:
copyright:
comments:
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, 16 bit (0x10), ratio: 4006->88200 (32.0 kbit)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (ffmpeg))
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 IYUV UYVY YV12 YVYU I420 YVU9
Decoder is capable of YUV output (flags 0x7f)
VDec: vo config request - 480 x 384 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 480x384 => 480x384 Planar YV12 [zoom]
Selected video codec: [wmv8] vfm:dshow (Windows Media Video 8)
==========================================================================
Checking audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 1 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 1ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
A: 8.2 V: 8.2 A-V: -0.048 ct: -0.021 134/134 1% 23% 0.5% 1 0 15%

==================================================================

And when I trying to use other video codec as below, I got follow:

===========================================================

[jammauser@irontux tmp]$ mplayer -vo jpeg Rana\ con\ Moto3.wmv
MPlayer 1.0pre5-3.4.1 (C) 2000-2004 MPlayer Team

CPU: Intel Pentium M Banias 1495 MHz (Family: 6, Stepping: 5)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection - WARNING - this is not optimal!
To get best performance, recompile MPlayer with --disable-runtime-cpudetection.
Reading config file /etc/mplayer/mplayer.conf
Reading config file /home/jammauser/.mplayer/config
Reading config file /usr/lib/win32
Reading /home/jammauser/.mplayer/codecs.conf: Can't open '/home/jammauser/.mplayer/codecs.conf': No such file or directory
Reading /etc/mplayer/codecs.conf: Can't open '/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
Linux RTC init error in ioctl (rtc_irqp_set 1024): Invalid argument
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Using usleep() timing
Can't open input config file /home/jammauser/.mplayer/input.conf: No such file or directory
Input config file /etc/mplayer/input.conf parsed: 53 binds
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0 : No such file or directory
Can't init input joystick
Setting up LIRC support...
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 Rana con Moto3.wmv.
Cache fill: 16.93% (1420547 bytes) ASF file format detected.
VIDEO: [WMV2] 480x384 24bpp
Clip info:
name:
author:
copyright:
comments:
==========================================================================
Trying to force audio codec driver family libmad...
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, 16 bit (0x10), ratio: 4006->88200 (32.0 kbit)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (ffmpeg))
==========================================================================
==========================================================================
Opening video decoder: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 IYUV UYVY YV12 YVYU I420 YVU9
Decoder is capable of YUV output (flags 0x7f)
VDec: vo config request - 480 x 384 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
No accelerated colorspace conversion found
SwScaler: using unscaled Planar YV12 -> RGB 24-bit special converter
VO: [jpeg] 480x384 => 480x384 RGB 24-bit [zoom]
Selected video codec: [wmv8] vfm:dshow (Windows Media Video 8)
==========================================================================
Checking audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit...
AF_pre: af format: 2 bps, 1 ch, 44100 hz, little endian signed int
AF_pre: 44100Hz 1ch Signed 16-bit (Little-Endian)
AO: [oss] 44100Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 44100Hz/1ch/16bit -> 44100Hz/2ch/16bit...
Starting playback...
A: 10.5 V: 10.5 A-V: 0.023 ct: -0.072 189/189 2% 47% 0.5% 0 0 14%

MPlayer interrupted by signal 2 in module: sleep_usleep
==================================================================

Can I see created a lot of jpg files with the video secuence.

Any Idea ??
Thanks!
 
Old 06-08-2005, 12:41 PM   #2
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Rep: Reputation: 15
not sure, but try moving the codecs to /usr/local/lib/codecs... that is were mplayer looks for them by default
 
Old 06-08-2005, 12:51 PM   #3
imix
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Posts: 5

Original Poster
Rep: Reputation: 0
I did a link to win32 video codec but, it does not work....

[root@irontux lib]# ls -lrt
total 880
-rwxr-xr-x 1 root root 424391 Feb 11 13:25 libmp3lame.so.0.0.0*
lrwxrwxrwx 1 root root 19 Feb 11 13:25 libmp3lame.so.0 -> libmp3lame.so.0.0.0*
lrwxrwxrwx 1 root root 19 Feb 11 13:25 libmp3lame.so -> libmp3lame.so.0.0.0*
-rwxr-xr-x 1 root root 804 Feb 11 13:25 libmp3lame.la*
-rw-r--r-- 1 root root 460574 Feb 11 13:25 libmp3lame.a
lrwxrwxrwx 1 root root 14 Jun 8 12:48 win32 -> /usr/lib/win32/
[root@irontux lib]# pwd
/usr/local/lib
[root@irontux lib]#

I got same result....
 
Old 06-08-2005, 01:52 PM   #4
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Rep: Reputation: 15
did you download the essential codecs from the mplayer website?
 
Old 06-08-2005, 02:25 PM   #5
SuSE-friend
Member
 
Registered: Jun 2005
Distribution: SuSE 9.0 / 9.1 / 9.2 - Knoppix - Ipcop.org
Posts: 31

Rep: Reputation: 15
Lightbulb maybe this helps

MPlayer 1.0pre5-3.4.1
is a little bit outdated - try the Mplayer pre7 instead
(should come whith a lot of codecs .. as the newest wmv windows media codecs)

That should fix your problems ..
You may also get w32-codecs for Xine ?

http://www.mplayerhq.hu/homepage/index.html

Quote:
2005.04.16, Saturday :: MPlayer 1.0pre7 released
 
Old 06-08-2005, 02:47 PM   #6
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Rep: Reputation: 15
lol i didnt even reolize he was using an older version (new to linux myself... just trying to be helpful)
 
Old 06-08-2005, 03:05 PM   #7
SuSE-friend
Member
 
Registered: Jun 2005
Distribution: SuSE 9.0 / 9.1 / 9.2 - Knoppix - Ipcop.org
Posts: 31

Rep: Reputation: 15
Wink

we all try

[aahhh I LOVE LINUX - pronounced as in the funny movie of Steve Ballmers Monkey dance]
 
Old 06-08-2005, 03:07 PM   #8
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Rep: Reputation: 15
lol i love linux too... i want to switch distro's but my CD tray broke off (i stepped on it by accident lol) so i gotta buy a new one before i get the chance to... i kinda wanna try gentoo
 
Old 06-08-2005, 04:10 PM   #9
imix
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Posts: 5

Original Poster
Rep: Reputation: 0
I'm afraid that it doesn't work, I've got the same point "Sound but no video with mplayer, just black screeen"

Other Idea ???


[jammauser@irontux tmp]$ /home/jammauser/Documentos/SW/MPlayer-1.0pre7/mplayer Rana\ con\ Moto3.wmv
MPlayer 1.0pre7-3.4.1 (C) 2000-2005 MPlayer Team
CPU: Intel Pentium M Banias (Family: 6, Stepping: 5)
Detected cache-line size is 64 bytes
CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2



Linux RTC init error in ioctl (rtc_irqp_set 1024): Invalid argument
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Playing Rana con Moto3.wmv.
ASF file format detected.
VIDEO: [WMV2] 480x384 24bpp 1000.000 fps 0.0 kbps ( 0.0 kbyte/s)
Clip info:
name:
author:
copyright:
comments:
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 44100 Hz, 1 ch, s16le, 32.0 kbit/4.54% (ratio: 4006->88200)
Selected audio codec: [ffwmav2] afm:ffmpeg (DivX audio v2 (FFmpeg))
==========================================================================
vo: X11 running at 1024x768 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [dshow] DirectShow video codecs
Decoder supports the following YUV formats: YUY2 IYUV UYVY YV12 YVYU I420 YVU9
Decoder is capable of YUV output (flags 0x7f)
VDec: vo config request - 480 x 384 (preferred csp: Packed YUY2)
[PP] Using codec's postprocessing, max q = 4.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 480x384 => 480x384 Planar YV12
Selected video codec: [wmv8] vfm:dshow (Windows Media Video 8)
==========================================================================
Checking audio filter chain for 44100Hz/1ch/s16le -> 44100Hz/2ch/s16le...
AF_pre: 44100Hz/1ch/s16le
AO: [oss] 44100Hz 2ch s16le (2 bps)
Building audio filter chain for 44100Hz/1ch/s16le -> 44100Hz/2ch/s16le...
Starting playback...
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
No bind found for key MOUSE_BTN0 1.0% 0 0
No bind found for key MOUSE_BTN0 1.0% 0 0
No bind found for key MOUSE_BTN0 1.0% 0 0
A: 16.9 V: 16.8 A-V: 0.046 ct: -0.047 347/347 4% 1% 0.7% 0 0

MPlayer interrupted by signal 2 in module: sleep_timer
 
Old 06-09-2005, 09:44 AM   #10
imix
LQ Newbie
 
Registered: Jun 2005
Location: Mexico
Posts: 5

Original Poster
Rep: Reputation: 0
finally I've got it!!!!!!!!!

There was a basic problem with the video output driver that was using mplayer.

When I try without arguments I got sound but no video:
[jammauser@irontux tmp]$ mplayer Rana\ con\ Moto3.wmv
But when I tried with -vo gl all change and I could se video and ear sound even when my old version
and the new one as well I mean MPlayer 1.0pre5-3.4.1 & MPlayer 1.0pre7-3.4.1
[jammauser@irontux tmp]$ mplayer -vo gl Rana\ con\ Moto3.wmv

Great !!!! can I see again my videos...........

Just to avoid to do it again and again (-vo gl) I've edited my config file as follow:

[jammauser@irontux .mplayer]$ cat config
# Write your default config options here!
vo = gl
[jammauser@irontux .mplayer]$ pwd
/home/jammauser/.mplayer
[jammauser@irontux .mplayer]$


hope by useful !!!!
 
Old 06-09-2005, 11:18 AM   #11
goosie
Member
 
Registered: May 2005
Distribution: Mandrake Linux 10.0 Community
Posts: 44

Rep: Reputation: 15
lol im an idiot... i just got done changing that for mine when i set up mplayer (about 2 weeks ago) but i got video just distorted and the -vo fixed it... sorry i didnt reolize that lol...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
video to ASCII in xine, mplayer? malaka56 Linux - Software 1 10-01-2005 04:53 PM
Mplayer and Xine create only green outputs on playing video files sn_piranha Linux - Software 5 10-10-2004 08:36 PM
fast sound and video playback (xmms, xine, mplayer) budhusa Linux - Software 8 01-13-2004 01:50 AM
No video window in VLC, mplayer and Xine always quit ? bagy Linux - Software 3 10-19-2003 12:08 PM
MPlayer & Xine, no video but audio Kocil Linux - Software 10 09-28-2003 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration