| Author |
Message |
666philb

Joined: 07 Feb 2010 Posts: 1217 Location: wales
|
Posted: Tue 11 Dec 2012, 14:39 Post subject:
How I fixed my Mplayer audio/video sync problem Subject description: yay a fix.... maybe |
|
i've been unable to use mplayer as my main video player in puppy, due to audio and video going out of sync. i found the problem is more pronounced on higher bitrate files, but can manifest itself even on lower bitrate stuff. And so i've always installed and used vlc as my main player as it works.
after a google session i think i've found a fix.
add to the bottom of your hidden /root/.mplayer/config file.
let me know if it works for you
_________________ Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
LÖVE2d, a collection of 27 lua gameshttp://www.murga-linux.com/puppy/viewtopic.php?t=76739
|
|
Back to top
|
|
 |
Coffe

Joined: 20 Dec 2012 Posts: 6
|
Posted: Mon 24 Dec 2012, 08:43 Post subject:
|
|
Hi 666philb,
Desktop : Packard Bell, PIII, 1Ghz, 512 RAM, cache size 256 KB, NVIDIA GeForce2 MX / 32 Mbytes SDRAM.
Puppy : Wary 5.1.4
Thanks for the fix but it didn't work for me. By the way, my config file is empty, so I added mc=0 on the top.It seems that my problem is elswere since the video slightly stucks from time to time, so that the audio stream is always ahead.
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Mon 24 Dec 2012, 15:37 Post subject:
|
|
http://www.mplayerhq.hu/DOCS/HTML/en/MPlayer.html#idp11175184
Information about the Internet page: Copyright © 2000-2010 MPlayer team
http://www.mplayerhq.hu/DOCS/HTML/en/MPlayer.html#idp11146064
Information about the Internet page: Copyright © 2000-2010 MPlayer team
http://www.mplayerhq.hu/DOCS/HTML/en/MPlayer.html#idp11192256
Information about the Internet page: Copyright © 2000-2010 MPlayer team
http://www.mplayerhq.hu/DOCS/HTML/en/MPlayer.html#streaming
Information about the Internet page: Copyright © 2000-2010 MPlayer team
http://www.mplayerhq.hu/DOCS/HTML/en/MPlayer.html#idp11124736
Information about the Internet page: Copyright © 2000-2010 MPlayer team
http://www.mplayerhq.hu/DOCS/HTML/en/MPlayer.html#idp11162352
Information about the Internet page: Copyright © 2000-2010 MPlayer team
http://www.mplayerhq.hu/DOCS/HTML/en/MPlayer.html#idp11164720
Information about the Internet page: Copyright © 2000-2010 MPlayer team
Also if there is a need to find technical information about a video file --TOOL-->
http://www.murga-linux.com/puppy/viewtopic.php?p=587243#587243
_________________
- I don't know why laboratories are named a hospitals.
- The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
Last edited by postfs1 on Tue 25 Dec 2012, 17:08; edited 3 times in total
|
|
Back to top
|
|
 |
scabz

Joined: 30 Apr 2009 Posts: 204 Location: Tallahassee FL US
|
Posted: Tue 25 Dec 2012, 00:42 Post subject:
|
|
For me i get better playback if you just dont use the gui.
On my fast computer with nvidia vid card i use this script.
| Code: | #!/bin/sh
exec mplayer -vo vdpau -vc ffmpeg12vdpau,ffwmv3vdpau,ffvc1vdpau,ffh264vdpau,ffodivxvdpau, -ao alsa -cache 8192 "$@" |
you could just drag and drop video files onto the script and it plays without the gui. you get better performance that way. Script above only works on nvidia vid cards with vdpau.
for most other video cards i would use -vo gl first, if doesnt work right then i would try -vo xv and last resort would be -vo x11.
Script would look like this.
| Code: | #!/bin/sh
exec mplayer -vo gl -ao alsa -cache 8192 "$@" |
of course it all depends on your vid card on what options work best for you.
if you dont want to make a script or you just want to try it out just test in terminal | Code: | | mplayer -vo gl -ao alsa -cache 8192 /location/of/file/no/spaces/or/video/will/fail.avi |
for key comands or option and stuff run mplayer --help in terminal.
you will have to mess with the options for better playback for you pc but i have been able to watch 720p hd content on my old netbook and on my moms even older P3.
|
|
Back to top
|
|
 |
Coffe

Joined: 20 Dec 2012 Posts: 6
|
Posted: Tue 25 Dec 2012, 11:46 Post subject:
|
|
Hi postfs1 and scabz,
thanks for your help , I'll try all those fixes.
|
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 145 Location: Scotland
|
Posted: Wed 26 Dec 2012, 11:48 Post subject:
|
|
Hi Scabz
I have an old Toshiba plll 800MHz 320MB. My son-in-law sends me video of my grandchildren sent from an iPhone4. They show up as mp4 but I am not sure of the resolution. They have always run on mplayer with the video running slowly and behind the sound which runs at the correct speed. However, have just tried your code. It makes a big difference with the video just behind the sound though hardly noticeable. I am using lupu 528 with the appropriate video driver. I used your code to make a little script and made it executable with a desktop icon. Now all I do is drag the video file onto the desktop icon and it plays. I am no expert on this and there might be a better way but here's what I used.
| Code: | #!/bin/sh
/usr/bin/roxterm -e mplayer -vo xv -ao alsa -cache 8192 "$@" |
Is there anything you can suggest that I could experiment with that would speed up the video a little bit more?
Regards,
Ken.
|
|
Back to top
|
|
 |
scabz

Joined: 30 Apr 2009 Posts: 204 Location: Tallahassee FL US
|
Posted: Wed 26 Dec 2012, 14:27 Post subject:
|
|
maybe add framedrop, code would look like this.
| Code: | #!/bin/sh
/usr/bin/roxterm -e mplayer -vo xv -ao alsa -framedrop -cache 8192 "$@" |
or you could try hardframedrop
| Code: | #!/bin/sh
/usr/bin/roxterm -e mplayer -vo xv -ao alsa -hardframedrop -nocorrect-pts -cache 8192 "$@" |
What is you vid card there might be options for you card?
|
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 145 Location: Scotland
|
Posted: Wed 26 Dec 2012, 15:05 Post subject:
|
|
Bellow is what PupSysInfo reports on video.
Chip description:
0.0 VGA compatible controller
S3 Inc. 86C270-294 Savage/IX-MV (rev 11)
oem: S3 Incorporated. M7 BIOS
X Server: Xorg
Driver used: savage
X.Org version: 1.7.6
dimensions: 1024x768 pixels (271x203 millimeters)
depth of root window: 16 planes
The driver that was recommended for this was the xorg_high-1.1-lucid which is what I have installed. I hope this is the info your looking for. I tried both your suggestions. The first seemed to bring up the first frame of the video but did not play the rest. Sound was OK. The second played both sound and video in better sync although video might have been a little jerkier but still useable.
Regards,
Ken.
|
|
Back to top
|
|
 |
scabz

Joined: 30 Apr 2009 Posts: 204 Location: Tallahassee FL US
|
Posted: Wed 26 Dec 2012, 15:35 Post subject:
|
|
Sorry man i cant help more, there might me someone else that can help you more but i am not a expert.
|
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 145 Location: Scotland
|
Posted: Wed 26 Dec 2012, 15:47 Post subject:
|
|
OK the help you have already given me has improve things a lot.
Thanks again.
Ken.
|
|
Back to top
|
|
 |
rjbrewer

Joined: 22 Jan 2008 Posts: 4349 Location: merriam, kansas
|
Posted: Wed 26 Dec 2012, 16:09 Post subject:
|
|
keniv;
I've often had Mplayer problems with Lucid 528.
I switched to Wary 5.3 and Mplayer works fine.
_________________
Inspiron 700m, Pent.M 1.6Ghz, 1Gb ram.
Msi Wind U100, N270 1.6>2.0Ghz, 1.5Gb ram.
Full installs
|
|
Back to top
|
|
 |
666philb

Joined: 07 Feb 2010 Posts: 1217 Location: wales
|
Posted: Wed 26 Dec 2012, 17:29 Post subject:
|
|
for info purposes, here's an example of my /root/.mplayer/config | Code: | [default]
[gnome-mplayer]
vo=vdpau
msglevel=all=5
mc=0 |
_________________ Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
LÖVE2d, a collection of 27 lua gameshttp://www.murga-linux.com/puppy/viewtopic.php?t=76739
|
|
Back to top
|
|
 |
keniv
Joined: 06 Oct 2009 Posts: 145 Location: Scotland
|
Posted: Wed 26 Dec 2012, 18:04 Post subject:
|
|
Hi rjbrewer
I have lazy, lupu, slacko and precise all frugal and xp (rarly used) booting with grub. I have had similar problems with pups and mplayer playing this form of video. I also use vlc but it performs less well with this. I had just assumed it was due to the limits of my hardware. I have not tried wary but will give it a go.
Regards,
Ken.
|
|
Back to top
|
|
 |
postfs1

Joined: 27 Mar 2010 Posts: 831
|
Posted: Wed 26 Dec 2012, 23:30 Post subject:
|
|
| keniv wrote: | ...
Chip description:
0.0 VGA compatible controller
S3 Inc. 86C270-294 Savage/IX-MV (rev 11)
oem: S3 Incorporated. M7 BIOS
X Server: Xorg
Driver used: savage
... |
http://web.njit.edu/all_topics/Prog_Lang_Docs/html/mplayer/video.html#xv
and lower on the page:
Title: 2.3.1.2.1.2 S3 cards
_________________
- I don't know why laboratories are named a hospitals.
- The alive personage is like a tea bag with granules of unknown density inside, at that one the packet was made of organic material and was placed in the evaporated liquid or liquid.
|
|
Back to top
|
|
 |
charlie6
Joined: 30 Jun 2008 Posts: 798 Location: South of Belgium
|
Posted: Thu 27 Dec 2012, 06:20 Post subject:
audio/video out of sync playing a mp4 file |
|
Hi,
- playing a .mp4 music solfege lesson (downloaded from you tube using You2pup) resulted in a dramatic out of sync between images and «metronomic tap» sounds.
Here is what itried:
- converting that .mp4 file to .AVI (using ffmpeg) helped to recover the sync. Now just clicking on the AVI file and mplayer runs it OK. (This seems to me the most straightforward solution with minimal lost of time for maximum result).
last edited: But...it worked only on one tested file. Further downloaded mp4 files are still out of sync after avi conversion.
This did not helped either:
- applying forum member scabz's (thankx!) 1st post above + applying mplayers various audio/video bitrates manuals settings did not help.
Hope this helps
Charlie[/u]
Last edited by charlie6 on Fri 28 Dec 2012, 01:47; edited 1 time in total
|
|
Back to top
|
|
 |
|