Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 11:50
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How I fixed my Mplayer audio/video sync problem
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Author Message
666philb


Joined: 07 Feb 2010
Posts: 1776
Location: wales

PostPosted: Tue 11 Dec 2012, 14:39    Post_subject:  How I fixed my Mplayer audio/video sync problem
Sub_title: 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. Smile

add
Code:
mc=0
to the bottom of your hidden /root/.mplayer/config file.

let me know if it works for you

_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=93998
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
Back to top
View user's profile Send_private_message 
Coffe


Joined: 20 Dec 2012
Posts: 6

PostPosted: 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
View user's profile Send_private_message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: 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.


Edited_times_total
Back to top
View user's profile Send_private_message 
scabz


Joined: 30 Apr 2009
Posts: 308
Location: Tallahassee FL US

PostPosted: 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
View user's profile Send_private_message AIM YIM 
Coffe


Joined: 20 Dec 2012
Posts: 6

PostPosted: Tue 25 Dec 2012, 11:46    Post_subject:  

Hi postfs1 and scabz,
thanks for your help Smile , I'll try all those fixes.
Back to top
View user's profile Send_private_message 
keniv

Joined: 06 Oct 2009
Posts: 200
Location: Scotland

PostPosted: 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
View user's profile Send_private_message 
scabz


Joined: 30 Apr 2009
Posts: 308
Location: Tallahassee FL US

PostPosted: 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
View user's profile Send_private_message AIM YIM 
keniv

Joined: 06 Oct 2009
Posts: 200
Location: Scotland

PostPosted: 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
View user's profile Send_private_message 
scabz


Joined: 30 Apr 2009
Posts: 308
Location: Tallahassee FL US

PostPosted: 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
View user's profile Send_private_message AIM YIM 
keniv

Joined: 06 Oct 2009
Posts: 200
Location: Scotland

PostPosted: 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
View user's profile Send_private_message 
rjbrewer


Joined: 22 Jan 2008
Posts: 4422
Location: merriam, kansas

PostPosted: 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.
Eeepc 8g 701, 900Mhz, 1Gb ram.
Full installs

Back to top
View user's profile Send_private_message 
666philb


Joined: 07 Feb 2010
Posts: 1776
Location: wales

PostPosted: 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

_________________
Tahrpup, built with trusty tahr packages http://murga-linux.com/puppy/viewtopic.php?t=93998
Quickpet_Precise, install popular apps quickly http://www.murga-linux.com/puppy/viewtopic.php?t=83642
Back to top
View user's profile Send_private_message 
keniv

Joined: 06 Oct 2009
Posts: 200
Location: Scotland

PostPosted: 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
View user's profile Send_private_message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: 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
View user's profile Send_private_message 
charlie6


Joined: 30 Jun 2008
Posts: 1015
Location: South of Belgium

PostPosted: 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 Sad 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. Very Happy (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]

Edited_time_total
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 2 Posts_count   Goto page: 1, 2 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0874s ][ Queries: 12 (0.0040s) ][ GZIP on ]