OESF | ELSI | pdaXrom | OpenZaurus | Zaurus Themes | Community Links | Ibiblio

IPB

Welcome Guest ( Log In | Register )

> Mplayer Audio Sync
Rodre
post Jan 8 2007, 09:39 AM
Post #1





Group: Members
Posts: 12
Joined: 4-January 07
Member No.: 13,693



Hello,

I have a C760 running Cacko 1.23. I have encoded a DVD using mencoder and various other retail dvd encoders from pinnacle, Intervideo, and 123 Copy DVD. My problem is that when I play the ripped/encoded dvd file on my desktop the audio and video are synced perfectly, but when I play the video on my Z in mplayer the audio is 2-3 seconds faster than the video. What gives? How are others playing video on their Z? I have also encoded a .mpg file shot with my handycam and it does the same thing.

It appears that mplayer has the ability to resync the audio using either the + and - keys or by using a '-delay' switch on startup, but it appears that the mplayer for the Z either doesn't support this or doesn't have the input key mapping file. Does anyone know about this file?

~Rodre
Go to the top of the page
 
+Quote Post
 
Start new topic
Replies
Rodre
post Jan 10 2007, 11:47 PM
Post #2





Group: Members
Posts: 12
Joined: 4-January 07
Member No.: 13,693



I Encoded it using these instructions:

http://www.oesf.org/index.php?title=Mencoder_Encoding

Specifically:

mencoder dvd://1 -srate 24000 -vop scale=320:240 -o office_space.avi -oac mp3lame -lameopts preset=15:mode=3 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=150 -ofps 15 -sws 2

and it does the same thing.

I still have to try and re-encode using CBR. I guess I'll see what happens then.

Thanks for your advice, it still really helped me.

~Rodre
Go to the top of the page
 
+Quote Post
bubox
post Jan 23 2007, 11:14 PM
Post #3





Group: Members
Posts: 25
Joined: 25-December 06
From: japan
Member No.: 13,405



QUOTE(Rodre @ Jan 10 2007, 11:47 PM)
I Encoded it using these instructions:

http://www.oesf.org/index.php?title=Mencoder_Encoding

Specifically:

mencoder dvd://1 -srate 24000 -vop scale=320:240 -o office_space.avi -oac mp3lame -lameopts preset=15:mode=3 -ovc lavc -lavcopts vcodec=mpeg4:vhq:vbitrate=150 -ofps 15 -sws 2

and it does the same thing.

I still have to try and re-encode using CBR. I guess I'll see what happens then.

Thanks for your advice, it still really helped me.

~Rodre
*


Rodre,

any luck? I've got the exact same issue: audio faster than video (out of sync) issues with my c700.

I've been trying a bunch of different encoding options in ffmpeg and mencoder and haven't quite go t it yet. please let me know if you find the magical encoder combination.

I'll post if I stumble on the answer.

bubox
Go to the top of the page
 
+Quote Post
bubox
post Jan 25 2007, 05:26 AM
Post #4





Group: Members
Posts: 25
Joined: 25-December 06
From: japan
Member No.: 13,405



Rodre,

I've got video playing on my c700 with audio and vid in sync. Thanks to Serge for his last post about the cpu not being fast enough. My previous attempt involved finding the perfect codec, but what I really needed to do was crunch the vid down a little more.

Once I cut the fps down to 15 things got better sync-wise. It's still faily viewable. The -b parameter is bitrate, so first try that at 300 or 400 and see if it will work, then work your way down.

Here's what working for my c700:
CODE
ffmpeg -i infile.avi -b 200 -s 320x240 -r 15 -vcodec mpeg4 out.avi



add this:
CODE
-ss 00:00:00 -t 00:00:30

to encode the first 30 seconds only as a test.

questions:
is mono audio less cpu intensive?
is two-pass encoding more cpu intensive?


I think I can eek out a bit more quality without pushing the cpu with some two-pass encoding. That's next.

regards,

bubox
Go to the top of the page
 
+Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 26th November 2014 - 09:38 PM