Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

Reply
 
Thread Tools Search this Thread Display Modes
Old 28th November 2008, 05:04   #1  |  Link
ggking7
Registered User
 
Join Date: Sep 2006
Posts: 249
Is anyone playing Blu-Ray with 100% A/V sync?

I've tried everything I can possibly think of to speed up Blu-Ray playback via mplayer on Gentoo Linux and it still can't stay in A/V sync from the beginning to the end of a movie. I've tried playing from the hard disk and from the Blu-Ray disc, I've tried all kinds of mplayer optimization flags, and I just upgraded my AMD X2 2.55ghz to 3.3ghz. The console always fills up with "Too many video packets in the buffer" messages. Is anyone playing Blu-Ray back with 100% A/V sync from beginning to end?

Edit: Strangely, I get worse performance with -framedrop.

Last edited by ggking7; 28th November 2008 at 05:12.
ggking7 is offline   Reply With Quote
Old 28th November 2008, 05:27   #2  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Posts: 8,666
Quote:
Originally Posted by ggking7 View Post
Too many video packets in the buffer" messages
libmpdemux/demuxer.h, add one or two zeroes to MAX_PACK_BYTES.

Not guaranteed to work; if the problem is one of your CPU being too slow, it won't help. You can also try -lavdopts threads=2.

Last edited by Dark Shikari; 1st December 2008 at 06:10.
Dark Shikari is offline   Reply With Quote
Old 1st December 2008, 05:34   #3  |  Link
ggking7
Registered User
 
Join Date: Sep 2006
Posts: 249
Thank you, do I need to recompile mplayer after editing that file?
ggking7 is offline   Reply With Quote
Old 1st December 2008, 05:47   #4  |  Link
Adub
Fighting spam with a fish
 
Adub's Avatar
 
Join Date: Sep 2005
Posts: 2,698
Yes you do.
__________________
FAQs:Bond's AVC/H.264 FAQ
Site:Adubvideo
Adub is offline   Reply With Quote
Old 1st December 2008, 06:47   #5  |  Link
ggking7
Registered User
 
Join Date: Sep 2006
Posts: 249
Oh wow, night and day. Thank you very much. I changed:

#define MAX_PACK_BYTES 0x800000

to:

#define MAX_PACK_BYTES 0x8000000

Can this be specified when launching mplayer instead of editing libmpdemux/demuxer.h and compiling?
ggking7 is offline   Reply With Quote
Old 19th December 2008, 06:15   #6  |  Link
ggking7
Registered User
 
Join Date: Sep 2006
Posts: 249
Does anyone know of a way to accomplish this same thing with mplayer without editing that file?
ggking7 is offline   Reply With Quote
Old 19th December 2008, 11:51   #7  |  Link
nm
Registered User
 
Join Date: Mar 2005
Location: Finland
Posts: 2,641
Quote:
Originally Posted by ggking7 View Post
Does anyone know of a way to accomplish this same thing with mplayer without editing that file?
There is no command-line parameter for this. To have one, you would need to change the code more, create a patch and submit it to the mplayer-dev-eng mailing list for evaluation.

You could also try to ask on the mailing list if increasing the default value would be appropriate. Then the change could make it to SVN.
nm is offline   Reply With Quote
Old 19th December 2008, 16:05   #8  |  Link
ggking7
Registered User
 
Join Date: Sep 2006
Posts: 249
Alright, thank you. Here's a patch in case anyone needs it:

Code:
--- libmpdemux/demuxer.h        2008-12-19 06:36:34.000000000 -0800
+++ libmpdemux/demuxer.h        2008-12-19 06:36:54.000000000 -0800
@@ -23,7 +23,7 @@
 #ifdef CONFIG_TV_BSDBT848
 #define MAX_PACK_BYTES 0x2000000
 #else
-#define MAX_PACK_BYTES 0x800000
+#define MAX_PACK_BYTES 0x8000000
 #endif

 #define DEMUXER_TYPE_UNKNOWN 0

Last edited by ggking7; 19th December 2008 at 16:08.
ggking7 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:57.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.