LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 03-01-2008, 02:34 AM   #1
dtjohnst
Member
 
Registered: Jan 2004
Posts: 53

Rep: Reputation: 15
mplayer keeps locking up


Howdy all. I've been away from linux for awhile (yeah, boo for me) and got back into it lately but I'm having an absolutely heinous problem that's keeping me from wiping windows until I can solve it.

I'm running Gentoo and I'm using stable packages. I have kernel 2.6.23 with userspace vesa framebuffer support compiled into the kernel. I'm booting in a 1440x900 framebuffer and life is grand.

If I play a video with mplayer and only set the -vo fbdev and no other options (original size in top left corner of screen in), everything is fine. If I play fullscreen (using mplayer -vo fbdev -fs -zoom -x 1440 -y 900 Movie.avi) it will work fine, the first time. With some movies, it plays fine from then on out. With others, I can watch a movie once, and everytime after that it freezes. Now I don't mean kinda freezes, I mean hard lock. It goes zombie, PPID is init, and it can't be killed. I have to switch to another tty and get on with life. But until I reboot, I can't play that video again.

I dunno if that's clear. I'm not sure it is. Let's say I have 2 videos. Video1.avi, Video2.avi. I boot up my box and log in. Now I play Video1.avi in fullscreen, and it works fine. Then I watch it again, no problem. 3rd time, works like a charm. I could watch this video all day. Then I play Video2 in fullscreen, and it works fine. Try to watch it again, and mplayer locks up HARD. Go to a different tty and log in, try to watch Video1, and mplayer locks up hard again. once it locks up hard, it won't play a movie again.

I would look for inconsistencies with these video files, but they are all encoded by the same person on the same hardware using the same software and settings. I've put them on different media (originally on external USB HDD, tested by copying the files to internal HDD). The external drive is NTFS, the internal was FAT32. Both work fine in Windows using Media Player.

Here's where it gets strange. If I try to copy the files using Linux, the cp command goes zombie. :S Again, works fine in windows, and this is copying from the uncompressed, unencrypted NTFS partition to a FAT32 partition, file size is under 800MB. So I thought something wrong with the file. But again, I can copy it fine with Windows. I ran scandisk on the drives, no errors.

So I went to the mplayer website and read about submitting bug reports. They said submit the first 5MB of the file since most problems can be diagnosed there. So I made a test. I ran dd if=Video1.avi of=~/smallfile bs=1024k count=5 and then played smallfile. Worked fine. Play it again, worked fine. It runs perfectly. So I tried a larger file: dd if=Video1.avi of=~/smallfile bs=1024k count=10 and then with count=200 and with count=400 and then with count=600, and it worked fine every time. I can dd it, play the new file 20 times if I want to, and mplayer doesn't freeze.

But, if I try to dd the whole file, dd goes zombie. Whether I use the external HDD (NTFS) or the internal HDD (Fat32) I moved it to. I literally have no idea what's going on. Do I have like....80% of files are bad files but play and can be copied fine in Windows or is it not a file problem? If not a file problem, why just these files? How can I test the files to see if they are ok? And most importantly, how can I get mplayer to quit locking up on me?

A man can't by if he can't watch his movies. And right now Linux isn't letting me watch my movies. :-(

Please tell me someone here can help me out. I REALLY want to take Vista and XP off my machine and not hate my computer anymore.

Last edited by dtjohnst; 03-01-2008 at 02:39 AM.
 
Old 03-02-2008, 05:29 AM   #2
anupamsr
Member
 
Registered: Sep 2004
Location: India
Distribution: Kubuntu, Archlinux, Suse, Gentoo, Mandrake
Posts: 371

Rep: Reputation: 30
May be there is some problem with NTFS driver? (Your file is on NTFS partition, right?) May be the read operation gets stuck after continuously reading the file? Try dd-ing the file with different sizes and see if there is some file-size barrier. (It is also possible that it is random...)

I know that when I/O error occurs, no error is shown at terminal (I know this because I have my Gentoo installed on a USB hard-disk, and when I accidentally unplug it, the whole system still works, but mplayer, or cd, or cp, basically anything I/O related gets hanged).

Last edited by anupamsr; 03-02-2008 at 05:30 AM.
 
  


Reply



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
In Kubuntu I have compiled MPlayer and it works fine, MPlayer Plug-in is not working kickass331 Linux - Newbie 10 08-11-2006 09:12 PM
Locking down a IP AD griggt Linux - Networking 1 08-25-2005 04:16 AM
RH 9 Locking Up ScooterB Linux - Newbie 2 06-04-2004 04:00 PM
problems with mplayer locking up system joshandcar Linux - General 6 05-13-2003 01:59 AM
Mplayer V 0.90 locking up the system joshandcar Linux - General 2 05-04-2003 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:18 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