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. |
28th November 2008, 05:04 | #1 | Link |
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. |
28th November 2008, 05:27 | #2 | Link |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
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.
__________________
Follow x264 development progress | akupenguin quotes | x264 git status ffmpeg and x264-related consulting/coding contracts | Doom10 Last edited by Dark Shikari; 1st December 2008 at 06:10. |
1st December 2008, 06:47 | #5 | Link |
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? |
19th December 2008, 11:51 | #7 | Link | |
Registered User
Join Date: Mar 2005
Location: Finland
Posts: 2,641
|
Quote:
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. |
|
19th December 2008, 16:05 | #8 | Link |
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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|