Playing Movies

Place to discuss anything, almost. No politics, religion, Microsoft, or anything else that I (the nazi censor) deem inappropriate.

Playing Movies

Postby Master of Reality » Mon Nov 03, 2003 5:07 pm

Im not sure what the problem is with my video. I try to play an mpeg with mplayer (or noatun, xine, etc) and the output is just greenish lines and such, with audio (i think). It worked in the past so but i recall it also doing this before a long time ago. Any ideas what the problem is?
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Postby Tux » Mon Nov 03, 2003 6:00 pm

Got all the codecs installed? win32, xanim, Real etc?

Also have you tried using differnt video outputs? (-vo in mplayer)
Tux
guru
guru
 
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Postby Linux Frank » Tue Nov 04, 2003 9:46 am

Are you sure it is an Mpeg? that particular problem (audio and a green screen) is often indicative of a badly encoded AVI - or an AVI newer than can be supported by currently installed codecs. Mplayer has a seperate package that includes many of the codecs you would need, was this installed?
Linux Frank
administrator
administrator
 
Posts: 239
Joined: Fri Jan 10, 2003 2:06 pm

Postby Master of Reality » Tue Nov 04, 2003 10:46 am

ahhh... i think that may be how i fixed it last time. I shall install the mplayer codecs pack.
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Postby Master of Reality » Tue Nov 04, 2003 11:11 am

erm.... does anyone know where to put the codecs? i dont have a /usr/local/lib/codecs like the mplayer documentation mentions.

Maybe i should install mplayer from source instead of a tgz package.
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Postby Tux » Tue Nov 04, 2003 11:19 am

/usr/local/lib/win32
and symobolically link /usr/lib/win32 to the above (or vice versa)
Tux
guru
guru
 
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Postby Master of Reality » Tue Nov 04, 2003 4:21 pm

alright the sound didnt work before but now it does.. the codec does load.. (avi) but i get some errors... here they are:

Code: Select all
MPlayer 1.0pre2-3.2.3 (C) 2000-2003 MPlayer Team

CPU: Advanced Micro Devices Duron MG Morgan 1283 MHz (Family: 6, Stepping: 1)
Detected cache-line size is 64 bytes
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 0
Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE

Reading config file /usr/local/etc/mplayer/mplayer.conf: No such file or directory
Reading config file /root/.mplayer/config
Reading /root/.mplayer/codecs.conf: Can't open '/root/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open '/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf
font: can't open file: /root/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using Linux hardware RTC timing (1024Hz).
Can't open input config file /root/.mplayer/input.conf: No such file or directory
Can't open input config file /usr/local/etc/mplayer/input.conf: No such file or directory
Falling back on default (hardcoded) input config

Playing /music/twelve_monkeys_dvd.avi
AVI file format detected.
VIDEO:  [DIV3]  720x288  24bpp  23.976 fps  715.1 kbps (87.3 kbyte/s)
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
MP3lib: init layer2&3 finished, tables done
AUDIO: 48000 Hz, 2 ch, 16 bit (0x10), ratio: 12000->192000 (96.0 kbit)
Selected audio codec: [mp3] afm:mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
open: No such device
vo_mga: Couldn't open /dev/mga_vid
open: No such device
vo_mga: Couldn't open /dev/mga_vid
vo: X11 running at 1600x1200 with depth 24 and 32 bpp (":0.0" => local display)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffdivx] vfm:ffmpeg (FFmpeg DivX ;-) (MS MPEG-4 v3))
==========================================================================
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)
AO: [oss] 48000Hz 2ch Signed 16-bit (Little-Endian) (2 bps)
Building audio filter chain for 48000Hz/2ch/16bit -> 48000Hz/2ch/16bit...
Starting playback...
VDec: vo config request - 720 x 288 (preferred csp: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
VO: [xv] 720x288 => 720x288 Planar YV12
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
A:   0.8 V:   0.8 A-V: -0.003 ct:  0.027   21/ 21  51% 95%  4.9% 4 0 0%%

MPlayer interrupted by signal 2 in module: sleep_rtc
anyone know what this means... i would suspect the error where it says couldnt open /dev/mga_vid (which i have no idea what that means)
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Postby Void Main » Tue Nov 04, 2003 4:32 pm

Does adding "-vo x11" to the command line give you video?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Master of Reality » Tue Nov 04, 2003 4:58 pm

yes, yes it does......... what'd i do?
oh... so it was trying to use some sort of other video.. instead of X11.
I see
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Postby Void Main » Tue Nov 04, 2003 5:14 pm

Precisely. It is defaulting to a video device that you don't have. x11 usually works on everything although it is about the least efficient. Usually "sdl" or "xv" are better choices if your system supports them. You can set this as the default in your config file. The easiest way to do that is just run "gmplayer" and right click on it and change the video output in the options.
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Master of Reality » Tue Nov 04, 2003 9:13 pm

hmmm any ideas as to how to make the sound play at the same time as the movie. There is about a 4 or 5 second difference. I tried ALSA and OSS drivers which both do the same. And i dont have the others.
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm

Postby Void Main » Tue Nov 04, 2003 9:24 pm

Never had that problem. What format is the movie in and how fast is your machine?
User avatar
Void Main
Site Admin
Site Admin
 
Posts: 5705
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA

Postby Tux » Wed Nov 05, 2003 6:58 am

You often get that A/V sync problem with stuff encoded with older divx and xvid codecs. The solution is to ge t mplayer to compensate.

You could to this on the command line like this:

(g)mplayer video.avi -ao alsa9 -af delay 1.2

This would play video.avi, output audio to ALSA and delay audio by 1.2 seconds from video. You can also use a -ve value. These setting can also be set in gmplayers controls.
Tux
guru
guru
 
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Postby Tux » Wed Nov 05, 2003 7:03 am

Another thing:

The +/- keys adjust audio sync up and down 0.1s each press on the fly, that can be more useful than guessing values.
Tux
guru
guru
 
Posts: 689
Joined: Wed Jan 08, 2003 10:40 am

Postby Master of Reality » Wed Nov 05, 2003 3:37 pm

ill try the delay dealy.

It was avi and mpg and my machine is 96MB RAM, 32MB video and 1GHz Duron
Master of Reality
guru
guru
 
Posts: 562
Joined: Thu Jan 09, 2003 8:25 pm


Return to The Lounge

Who is online

Users browsing this forum: No registered users and 0 guests

cron