Played with MPlayer controls and now I'm in trouble
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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).
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.
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.
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!
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.
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.
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
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:
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?
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.
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!
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.