LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   mplayer program (https://www.linuxquestions.org/questions/linux-software-2/mplayer-program-719043/)

kadhan 04-14-2009 10:28 AM

mplayer program
 
I am using RHEL 4 Linux....

I cannot play videos using mplayer.
Audio has no problem.
The log is given below..

#####################################################

[root@localhost Desktop]# mplayer video.mp4
MPlayer 1.0rc2-3.4.5 (C) 2000-2007 MPlayer Team
CPU: AMD Sempron(tm) 2400+ (Family: 6, Model: 8, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Playing video.mp4.
ISO: File Type Major Brand: ISO/IEC 14496-1 (MPEG-4 system) v2
Quicktime/MOV file format detected.
[mov] Audio stream found, -aid 0
[mov] Video stream found, -vid 1
VIDEO: [avc1] 320x240 24bpp 30.000 fps 0.0 kbps ( 0.0 kbyte/s)
Can't open /dev/fb0: No such file or directory
[fbdev2] Can't open /dev/fb0: No such file or directory
vo_cvidix: No vidix driver name provided, probing available ones (-v option fordetails)!
[unichrome] Found chip: VT8378 [S3 UniChrome] Integrated Video
[VO_SUB_VIDIX] Description: VIA CLE266 Unichrome driver.
[VO_SUB_VIDIX] Author: Timothy Lee <timothy@siriushk.com>.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 125.3 kbit/8.88% (ratio: 15662->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [oss] 44100Hz 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: [cvidix] 320x240 => 320x240 Planar YV12
vo_cvidix: warn: screenwidth and height not set assuming 640x480
A: 26.8 V: 26.8 A-V: 0.001 ct: 0.023 805/805 4% 2% 1.5% 1 0
===== PAUSE =====



#################################################################33


What is vo_cvidix???
What i will do for viewing a video????

Please help.... !!!!!!!!!!!!

jasohl 04-14-2009 02:21 PM

MPlayer documentation:
VIDIX
"There is a console VIDIX driver: -vo cvidix. This requires a working and initialized framebuffer for most cards..."

You can see here that MPlayer can't access the framebuffer.
Quote:

Can't open /dev/fb0: No such file or directory
[fbdev2] Can't open /dev/fb0: No such file or directory
Are you trying to play the video in a console, rather than in X?

TB0ne 04-14-2009 02:21 PM

Quote:

Originally Posted by kadhan (Post 3508515)
I am using RHEL 4 Linux....

I cannot play videos using mplayer.
Audio has no problem.

What is vo_cvidix???
What i will do for viewing a video????

Please help.... !!!!!!!!!!!!

Install the missing video codecs. Visit the mplayer website, which has links to the codecs, as well as installation instructions.

kadhan 04-14-2009 02:56 PM

Quote:

Originally Posted by jasohl (Post 3508732)
MPlayer documentation:
VIDIX
"There is a console VIDIX driver: -vo cvidix. This requires a working and initialized framebuffer for most cards..."

You can see here that MPlayer can't access the framebuffer.


Are you trying to play the video in a console, rather than in X?

Thanks for your quick response....
I am trying to play the video in console..
When I am using suse linux i usually play the video in console...but in RHEL i cannot do this.....

kadhan 04-14-2009 02:57 PM

Quote:

Originally Posted by TB0ne (Post 3508733)
Install the missing video codecs. Visit the mplayer website, which has links to the codecs, as well as installation instructions.

Missing codec means ?? I think i installed all codecs....

jasohl 04-14-2009 03:40 PM

This is not a Codec issue. vo_cvidix is not a codec, it's an output driver.
It needs the framebuffer to display the video in a console. You need to have a frame buffer running. Usually the fb is compiled into the kernel and you just need to add an argument to your bootloader config, Lilo or Grub.

You can read more about Framebuffers at Wikipedia: Linux framebuffer

And TLDP: Framebuffer HOWTO
(Kinda old though.)

kadhan 04-14-2009 10:14 PM

Quote:

Originally Posted by jasohl (Post 3508817)
This is not a Codec issue. vo_cvidix is not a codec, it's an output driver.
It needs the framebuffer to display the video in a console. You need to have a frame buffer running. Usually the fb is compiled into the kernel and you just need to add an argument to your bootloader config, Lilo or Grub.

You can read more about Framebuffers at Wikipedia: Linux framebuffer

And TLDP: Framebuffer HOWTO
(Kinda old though.)


Hi Jasohi,

Thanks for ur valuable reply.....
But i dont know how to add frame buffer in kernel.
Can u explain???

Mridulj 04-15-2009 12:37 AM

I am to using RHEL 4 . so can i know are u able to play
mp3 files using mplayer .if yes from where can I download
it ?

kadhan 04-15-2009 01:37 AM

Quote:

Originally Posted by Mridulj (Post 3509223)
I am to using RHEL 4 . so can i know are u able to play
mp3 files using mplayer .if yes from where can I download
it ?

U can download the source of mplayer from http://www.mplayerhq.hu

jasohl 04-15-2009 12:22 PM

I'm not familiar with RHEL so things might be a little different...
but you should be able to find out if FB is enabled by looking at the /boot/config file

Look for lines like this. (y = built-in, m = module, n = not supported by current kernel)
Code:

CONFIG_FB=y
CONFIG_FB_VESA=y
(There might be more)

I'm not sure which bootloader RHEL uses, but you have to edit the kernel line, adding something like this

Code:

kernel /boot/vmlinuz root=/dev/hda1 vga=791
Maybe someone with more RH experience can provide the specifics.

Mridulj 04-15-2009 01:39 PM

thanks a lot jasohl,

but may I know what changes will take place
if I implement those changes .

I will check the bootloader for RHEL4.

kadhan 04-21-2009 11:18 AM

Quote:

Originally Posted by jasohl (Post 3509911)
I'm not familiar with RHEL so things might be a little different...
but you should be able to find out if FB is enabled by looking at the /boot/config file

Look for lines like this. (y = built-in, m = module, n = not supported by current kernel)
Code:

CONFIG_FB=y
CONFIG_FB_VESA=y
(There might be more)

I'm not sure which bootloader RHEL uses, but you have to edit the kernel line, adding something like this

Code:

kernel /boot/vmlinuz root=/dev/hda1 vga=791
Maybe someone with more RH experience can provide the specifics.



my /boot/config-2.6.9-34.EL file looks like this.

Code:

#
# Multimedia devices
#
CONFIG_VIDEO_DEV=m

#
# Video For Linux
#

#
# Video Adapters
#
# CONFIG_VIDEO_BT848 is not set
# CONFIG_VIDEO_PMS is not set
# CONFIG_VIDEO_BWQCAM is not set
# CONFIG_VIDEO_CQCAM is not set
# CONFIG_VIDEO_W9966 is not set
# CONFIG_VIDEO_CPIA is not set
# CONFIG_VIDEO_SAA5246A is not set
# CONFIG_VIDEO_SAA5249 is not set
# CONFIG_TUNER_3036 is not set
# CONFIG_VIDEO_STRADIS is not set
# CONFIG_VIDEO_ZORAN is not set
# CONFIG_VIDEO_MEYE is not set
# CONFIG_VIDEO_SAA7134 is not set
# CONFIG_VIDEO_MXB is not set
# CONFIG_VIDEO_DPC is not set
# CONFIG_VIDEO_HEXIUM_ORION is not set
# CONFIG_VIDEO_HEXIUM_GEMINI is not set
# CONFIG_VIDEO_CX88 is not set
CONFIG_VIDEO_OVCAMCHIP=m
#
#
#
#
#
# Graphics support
#
CONFIG_FB=y
CONFIG_FB_MODE_HELPERS=y
CONFIG_FB_CIRRUS=m
# CONFIG_FB_PM2 is not set
# CONFIG_FB_CYBER2000 is not set
# CONFIG_FB_ASILIANT is not set
# CONFIG_FB_IMSTT is not set
CONFIG_FB_VGA16=m
CONFIG_FB_VESA=y
CONFIG_VIDEO_SELECT=y
# CONFIG_FB_HGA is not set
CONFIG_FB_RIVA=m
# CONFIG_FB_RIVA_I2C is not set
# CONFIG_FB_RIVA_DEBUG is not set
CONFIG_FB_I810=m
CONFIG_FB_I810_GTF=y
# CONFIG_FB_MATROX is not set
# CONFIG_FB_RADEON_OLD is not set
# CONFIG_FB_RADEON is not set
# CONFIG_FB_ATY128 is not set
# CONFIG_FB_ATY is not set
# CONFIG_FB_SIS is not set
# CONFIG_FB_NEOMAGIC is not set
CONFIG_FB_KYRO=m
# CONFIG_FB_3DFX is not set
# CONFIG_FB_VOODOO1 is not set
# CONFIG_FB_TRIDENT is not set
# CONFIG_FB_VIRTUAL is not set



#
#
#
#

#
# Console display driver support
#
CONFIG_VGA_CONSOLE=y
CONFIG_MDA_CONSOLE=m
CONFIG_DUMMY_CONSOLE=y
CONFIG_FRAMEBUFFER_CONSOLE=y
# CONFIG_FONTS is not set
CONFIG_FONT_8x8=y
CONFIG_FONT_8x16=y

#
#
#



and my /boot/grub/menu.lst file is given below

Code:

kernel /boot/vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb quiet
I change the above file as

Code:

kernel /boot/vmlinuz-2.6.9-34.EL ro root=LABEL=/ rhgb vga=791 quiet

Now mplayer shows video as blurred ( not clear) and two small video frames are shown.And now mplayer uses fbdev as the output driver.The log file is given below

Code:

root@localhost Desktop]# mplayer video.mp4
MPlayer 1.0rc2-3.4.5 (C) 2000-2007 MPlayer Team
CPU: AMD Sempron(tm)  2400+ (Family: 6, Model: 8, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Playing video.mp4.
ISO: File Type Major Brand: ISO/IEC 14496-1 (MPEG-4 system) v2
Quicktime/MOV file format detected.
[mov] Audio stream found, -aid 0
[mov] Video stream found, -vid 1
VIDEO:  [avc1]  320x240  24bpp  30.000 fps    0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 125.3 kbit/8.88% (ratio: 15662->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
AO: [oss] 44100Hz 2ch s16le (2 bytes per sample)
Starting playback...
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
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 1.33:1 - prescaling to correct movie aspect.
[swscaler @ 0x86f2588]SwScaler: using unscaled yuv420p -> bgr565 special converter
VO: [fbdev] 320x240 => 320x240 BGR 16-bit









A:  1.2 V:  1.2 A-V:  0.001 ct:  0.023  38/ 38  3%  3%  1.6% 0 0
Exiting... (Quit)
[root@localhost Desktop]#



Plz help me for correcting this problem???


All times are GMT -5. The time now is 04:09 PM.