LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 01-19-2007, 05:02 AM   #1
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Rep: Reputation: 34
Played with MPlayer controls and now I'm in trouble


I was basically pressing the various keys on my command line mplayer. Now the audio is faster than the video by 3 seconds. On seeing the man pages, I think I pressed the + or - keys. I don't know how to reset the controls. Can anybody help me? Thanks.
 
Old 01-19-2007, 05:39 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Delete the config file in the hidden directory named .mplayer
 
Old 01-19-2007, 05:45 AM   #3
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
It doesn't work. I deleted the config file present in /home/myusername/.mplayer

The delay applies only to the files I had pressed the controls in. Other files play fine.
 
Old 01-19-2007, 06:46 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Controls used during play are _not_ saved in any config file mplayer uses. After stopping-starting mplayer falls back to defaults (or whatever is in the config files).

The problem must be the movie itself (have seen this before).
 
Old 01-19-2007, 08:08 AM   #5
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Well... I can tell that there is nothing wrong with the files because they run properly on Windows and even Linux before I fiddled with the controls. I restarted my computer and it still does the same thing. I'm pretty sure that the modified settings must have been saved in some file. I just don't know which one it is. I couldn't find any Google entry for this either.

The audio is slowed down only for those files which I messed up with. I tried to set it right by using the + and - signs, but it seems too difficult to perform. Do you think that the information is stored in some other folder.

I recompiled MPlayer without removing the original files. The problem still remains. I want to solve this problem without complete uninstallation and reinstallation. Does anyone else know the way? Thanks.
 
Old 01-19-2007, 11:53 PM   #6
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
OK, I uninstalled MPlayer and then reinstalled it but the problem still persists. Can anyone tell me how to COMPLETELY reset the video settings. Watching the video when the sound is ahead is really very irritating.
 
Old 01-20-2007, 05:12 AM   #7
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
You'll find this very interesting:

I deleted the files. Used a backup disc to get the original file (which works properly in windows). Changed the name of the file to something different. Placed it in a different directory and then ran it. It had the exact delay as in the files before it! How did MPlayer recognise the file? I think I'm going to faint!

If you want to simulate the problem yourself, press the + and - keys on your keyboard. Be sure that you note down the AV delay for restoring it later. Close your MPlayer window. Start MPlayer and play the file again. You'll find that the delay has been saved for that particular file. No matter how you disguise the video, MPlayer will always recognise that file. Very strange!
 
Old 01-20-2007, 05:28 AM   #8
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Although I'm sure that settings changed during play are not stored, I tried what you did: Nothing was stored and after stopping and restarting the movie all was normal again. I tried it using an avi, wmv, mpg (and a mp3) file.

Could you give some more info?

- Which version of mplayer are you using?
- Installed from source or as package?
- Are there any info/error messages shown by mplayer (you maybe need to use the -v option to see this),
- System specs (cpu speed, memory things like that),
- Are there any other 'heavy' programs running?

I do have problems with sound (too slow in this case) if I'm running too many (heavy) programs on a box that hasn't got enough cpu power and the movie is hard to decode (HR HDTV AC3 files). But this has to do with the (lack of) power of the box, not mplayer.

I didn't give a solution, but the above could point you in the correct direction.

Hope this helps.
 
Old 01-20-2007, 06:00 AM   #9
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Thank you for you time, druuna.

- Which version of mplayer are you using?

I'm using MPlayer1.0rc1-3.2.2 .I can tell that there is nothing wrong with the version as the other files which I did not "modify" run properly.


- Installed from source or as package?

I compiled it from source.

- Are there any info/error messages shown by mplayer (you maybe need to use the -v option to see this),

I wouldn't call them errors as I get similar messages when I run the videos that run properly.

- System specs (cpu speed, memory things like that),

CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 3, Stepping: 3)


- Are there any other 'heavy' programs running?

No. Nothing of that sort. Note that it only affects those files in which I pressed the + and - buttons.


Quote:
I tried what you did: Nothing was stored and after stopping and restarting the movie all was normal again.
Every time you press + , the audio goes ahead by 0.1 seconds. Press + continuously for sometime till it (delay in ms) reaches a 5 digit number. You should be able to notice the difference now.Remember the number of times you pressed + and press - the same number of times to restore the video to its original state.

Thanks, once again.

Last edited by gregorian; 01-20-2007 at 06:01 AM.
 
Old 01-20-2007, 08:25 AM   #10
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Quote:
Originally Posted by gregorian
- Which version of mplayer are you using?

I'm using MPlayer1.0rc1-3.2.2 .I can tell that there is nothing wrong with the version as the other files which I did not "modify" run properly.
This is one of the more recent one's, I've got nothing to add.

Quote:
- Installed from source or as package?

I compiled it from source.
Ok, that is the best way.

Quote:
- Are there any info/error messages shown by mplayer (you maybe need to use the -v option to see this),

I wouldn't call them errors as I get similar messages when I run the videos that run properly.
Ok.

Are you getting any messages during play?

Quote:
- System specs (cpu speed, memory things like that),

CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 3, Stepping: 3)
That seems powerfull enough

Quote:
- Are there any other 'heavy' programs running?

No. Nothing of that sort. Note that it only affects those files in which I pressed the + and - buttons.

Every time you press + , the audio goes ahead by 0.1 seconds. Press + continuously for sometime till it (delay in ms) reaches a 5 digit number. You should be able to notice the difference now.Remember the number of times you pressed + and press - the same number of times to restore the video to its original state.

Thanks, once again.
Like I stated before: I cannot recreate your error on my box.

I did use the +/- button long enough to change the sound by over 3 seconds slower and faster (tried both ways), the sound/lip sync was way off. After stopping and starting all was ok again (perfect sync).

Did you read/implement the suggestions given here (mplayer document). Especially things mentioned in B.2.2
 
Old 01-20-2007, 09:06 AM   #11
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Quote:
Did you read/implement the suggestions given here (mplayer document). Especially things mentioned in B.2.2
Well thank you once more, for your time.

By adjusting the -delay options, I can make MPlayer synchronise the Audio and Video. But I have to do this every time. I know that the files are not bad as they ran perfectly before and they still do on Windows. All I want to do is make MPlayer forget all the "changes" I made to the file by using the + and - controls. But since you don't have a problem with it, I really don't know what is wrong with my MPlayer.

I compiled MPlayer according to these instructions:

http://www.linuxquestions.org/linux/...alling_MPlayer

I don't know if there is anything missing in those steps.I followed the steps exactly as mentioned.
 
Old 01-20-2007, 10:20 AM   #12
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
I just noticed this at the last line during the playback of the file:

Code:
A:   8.6 V:  12.5 A-V: -3.887 ct: -0.722 229/229  1%  2%  0.3% 0 0
Exiting... (Quit)
There it is

AV=-3.887

I went and typed mplayer --delay -3.887 File.flv
and it ran almost perfectly. I'm pretty sure that this is the delay. For other files it was of the order of 0.04 or something like that. Hence it seems to be synchronised. Just play any video from the command line and you'll find that one of the rapidly changing decimals is the AV value. Can this information be of any use in solving my problem?

Last edited by gregorian; 01-20-2007 at 10:24 AM.
 
Old 01-20-2007, 11:05 AM   #13
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

The line you are referring to is real-time status information. It does show that the AV is of by almost 4 seconds.

I see that your are trying to play a Flash Video Format file, do you have this problem with flv files only? Or do the other formats (wmv,avi,mpg etc) behave the same?

If it's only flv files that have this problem: The flv decoder could be the problem.

BTW: In relation to an earlier question (in #7) Mplayer detects the filetype by looking inside the file, it does not look at the extension.
 
Old 01-20-2007, 07:11 PM   #14
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
Quote:
I see that your are trying to play a Flash Video Format file, do you have this problem with flv files only? Or do the other formats (wmv,avi,mpg etc) behave the same?
Well, we're getting somewhere now.
Yes, the problem exists only with the flv files. I tried running files with extensions .avi .mpeg etc. and they all ran perfectly when I restarted the video.

Quote:
If it's only flv files that have this problem: The flv decoder could be the problem.
I've shuffled the codecs, but the problem still exist no matter which codecs I used.

Quote:
In relation to an earlier question (in #7) Mplayer detects the filetype by looking inside the file, it does not look at the extension.
Well, I wouldn't be too surprised if it identified the extension, but how did it identify the file after I replaced it with a new file with a different name in a different directory? Instead of identifying it as a new file, it had the exact lag as I had set while using the + and - controls!

Last edited by gregorian; 01-20-2007 at 07:14 PM.
 
Old 01-21-2007, 08:18 AM   #15
gregorian
Member
 
Registered: Apr 2006
Posts: 509

Original Poster
Rep: Reputation: 34
I thought that you might also want to know that I can't "jump" to any part of the file during playback. Yes, I have valid metadata. I injected all the files with metadata using an FLV injector about a month ago.
 
  


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
One avi file not getting played my mplayer. ShaanAli Linux - Software 3 05-01-2006 08:24 PM
Mplayer controls lowbrow Linux - Newbie 3 06-07-2005 10:22 AM
MPlayer controls appear off screen ohzo Linux - Newbie 2 07-15-2004 07:03 PM
mplayer plugin controls beaucoup Linux - Software 1 04-24-2004 09:58 AM
Mplayer issue...I have no controls.... oicdn Linux - Software 15 12-25-2003 07:29 AM

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

All times are GMT -5. The time now is 07:49 AM.

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