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 Fri 24 Oct 2014, 12:10
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 2 of 2 Posts_count   Goto page: Previous 1, 2
Author Message
keniv

Joined: 06 Oct 2009
Posts: 200
Location: Scotland

PostPosted: Thu 27 Dec 2012, 11:50    Post_subject:  

Hi postfs1

I've had a look at the link you were good enough to provided and found this.

"2.3.1.2.1.2 S3 cards

S3 Savage3D's should work fine, but for Savage4, use XFree86 version 4.0.3 or greater (in case of image problems, try 16bpp). As for S3 Virge.. there is xv support, but the card itself is very slow, so you better sell it."

The trouble is I don't know if my card is "3D" and don't know how to try 16bpp. Is this something that can be set up by editing an mplayer file?

Thanks for your help.

Ken.
Back to top
View user's profile Send_private_message 
keniv

Joined: 06 Oct 2009
Posts: 200
Location: Scotland

PostPosted: Thu 27 Dec 2012, 12:09    Post_subject:  

Hi charlie6

Have just tried converting from .mp4 to .avi. However, I find the video is a bit pixelated and is still out of sync with the sound. Oh well it was worth a try.

Thanks,

Ken.
Back to top
View user's profile Send_private_message 
charlie6


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

PostPosted: Fri 28 Dec 2012, 01:43    Post_subject:  

Hi keniv,
keniv wrote:
Have just tried converting from .mp4 to .avi. However, I find the video is a bit pixelated and is still out of sync

Embarassed you are right !
it only worked for one file Sad ...not on further downloaded ones ...
thanks
charlie
Back to top
View user's profile Send_private_message 
scabz


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

PostPosted: Fri 28 Dec 2012, 02:36    Post_subject:  

all the .mp4 or .m4v , .flv or .avi are just container files the the encoding inside can all be the same, so the type of file doesnt really matter much.
Back to top
View user's profile Send_private_message AIM YIM 
keniv

Joined: 06 Oct 2009
Posts: 200
Location: Scotland

PostPosted: Fri 28 Dec 2012, 11:41    Post_subject:  

Hi All

The previous post is perhaps an explanation of another thing that made me wonder about these .mp4 files produced by the iPhone4 as I have earlier mp4 files which work OK on mplayer. I should have said that I also tried 666philb's idea in the first post but It did not seem to make any difference.

Regards,

Ken.
Back to top
View user's profile Send_private_message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Fri 28 Dec 2012, 14:55    Post_subject:  

keniv wrote:
...
The trouble is I don't know if my card is "3D" and don't know how to try 16bpp. Is this something that can be set up by editing an mplayer file?
...


Operating System:
QUIRKY LINUX 1.40
Video Card:
S3 Virge
Variant of booting:
from CD-ROM
Options of booting:
puppy pfix=nox,ram
Command for receiving the information about video card:
lspci|grep VGA
Command for preparing the launch of X Window System:
xorgwizard
Steps in XORGWIZARD:
[ Xorg ] ---> [ Probe ] ---> [ 1024x768x16 ] ---> [ OK ]

Arrow

If X Window System has been activated:

Steps in JWM:
[ Menu ] ---> [ Multimedia ] ---> [ MPlayer media player ]

Arrow

If MPlayer has been activated:

Steps in MPlayer:
(when mouse's arrow is above the player's box, then one click by right button will give the menu)

[ Menu ] ---> [ Preferences ] --->
Audio = alsa
Video = x11 / xshm

Arrow

I tested one publicly accessible .MP4 file and MPLayer was good at this experiment.

Quote:

Information(about video file), which was taken from SMPlayer box:

Video:
Resolution=640 x 480
Aspect ratio=1.33333
Format=H264
Bitrate=512 kbps
Frames per second=29.970

Audio:
Format=MP4A
Bitrate=149 kbps
Rate=44100 Hz
Channels=2

_________________
  • 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 
keniv

Joined: 06 Oct 2009
Posts: 200
Location: Scotland

PostPosted: Sat 29 Dec 2012, 09:18    Post_subject:  

Hi postfs1

I made the changes you suggested i.e.

Audio from default to alsa.

Video from xv to x11.

Unfortunately video and audio still out of sync. However, I think if I click on an mp4 file I am using gmplayer rather than mplayer which I am using when running from a terminal. I'm not sure how much difference using the gui makes but I guess it slows things down a bit.

Thanks,

Ken.
Back to top
View user's profile Send_private_message 
charlie6


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

PostPosted: Sat 29 Dec 2012, 15:19    Post_subject:  

Hi,
here running under Xorg X11 without extra video/audio card (just the intel on board devices);
the following mplayers command line code runs a/c sync nice on .avi files(*):
Quote:
#!/bin/sh
exec mplayer -vo x11 -framedrop -autosync 30 -nocache "$@"


(*)files converted from .mp4 to .avi using ffmpeg converter.
notes:
- the above code does not solve the a/v sync on .mp4 files.

- i believe the -framedrop option to be unnecessary.

best regards, charlie
Back to top
View user's profile Send_private_message 
postfs1


Joined: 27 Mar 2010
Posts: 831

PostPosted: Sat 29 Dec 2012, 17:07    Post_subject:  

http://tattatthrow.blogspot.ru/2009/09/play-h264-on-slow-computer-mplayer.html
---Internet page as source--->

Operating System:
QUIRKY LINUX 1.40
Video Card:
S3 Virge
Variant of booting:
from CD-ROM

If SDL available:
Code:

mplayer -quiet -vo sdl -ao sdl:alsa -vfm ffmpeg -lavdopts lowres=0:fast:skiploopfilter=all /folder/Video.mp4

http://web.njit.edu/all_topics/Prog_Lang_Docs/html/mplayer/video.html#sdl

If XV available:
Code:

mplayer -quiet -vo xv -ao alsa -vfm ffmpeg -lavdopts lowres=0:fast:skiploopfilter=all /folder/Video.mp4



If XV is not available:

Quote:

Code:

mplayer -quiet -vo x11 -ao alsa -vfm ffmpeg -lavdopts lowres=0:fast:skiploopfilter=all /folder/Video.mp4

************************************************
**** Your system is too SLOW to play this! ****
************************************************

Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
- Try -ao sdl or use the OSS emulation of ALSA.
- Experiment with different values for -autosync, 30 is a good start.
- Slow video output
- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
- Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
- Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.



Exiting... (End of file)

Code:

mplayer -quiet -vo x11 -ao alsa -vfm ffmpeg -lavdopts lowres=0:fast:skiploopfilter=all -cache 8192 /folder/Video.mp4




If MAN PAGE for MPLAYER is available:
man mplayer|grep --before-context=68 --after-context=50 lowres
man mplayer|grep --before-context=2 --after-context=1 vfm

_________________
  • 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: Sun 30 Dec 2012, 06:17    Post_subject:  

Hi,
@postfs1 ==> thanks for your posts !
i also get this working playing a mp4 file with good audio/video sync:
Quote:
#!/bin/sh
exec mplayer -quiet -vo x11 -ao alsa -vf crop=1024:500:100:140,scale=640:352,harddup "$@"
Back to top
View user's profile Send_private_message 
charlie6


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

PostPosted: Mon 31 Dec 2012, 08:48    Post_subject:  

Hi postfs1,
your previous post...
Code:
mplayer -quiet -vo x11 -ao alsa -vfm ffmpeg -lavdopts lowres=0:fast:skiploopfilter=all -cache 8192 /folder/Video.mp4

Running that code again returned a audio/video out of sync of about 1sec (video too slow), together with a full screen display. As the dispay is full scren, I believe the video cpu needs to be too high.
Running here a PC with lean video/audio resources, without extra sound/video card, I tried to reduce the display size in order to reduce the video CPU needs.
I then found the code given in my above post: the display is not full size nor complete screen, but enough for the current needs).
Cheers,
Charlie
Back to top
View user's profile Send_private_message 
strzygaa

Joined: 26 Mar 2014
Posts: 1

PostPosted: Sat 29 Mar 2014, 22:15    Post_subject:  

thanks, it's helped me alot!!
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 2 of 2 Posts_count   Goto page: Previous 1, 2
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.0811s ][ Queries: 12 (0.0059s) ][ GZIP on ]