Audio out of sync

For help and support with PS3 Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Audio out of sync

Postby royd » Sat Dec 15, 2012 2:53 pm

I have been struggling with audio out of sync problems for some time now. I think the problem is the same for all formats.

I was just about to give up on PS3 media server, but decided to try a few old versions.

Everything is working fine for me until version 1.60. From that moment on audio is clearly out of sync for al formats.

Am I the only one experiencing these problems?

I am happy to be able to keep on using PMS( version 1.54), but in my case its clearly version 1.60 and newer that is not working for me. Any ideas anyone?
royd
 
Posts: 6
Joined: Sat Dec 15, 2012 2:02 pm

Re: Audio out of sync

Postby meskibob » Sat Dec 15, 2012 4:09 pm

viewtopic.php?f=6&t=496
Can you specifically provide the debug.log (point 6) using the latest release and a sample file that demonstrates the issue (point 7)?
I provide NO application support via PM or email, so please post your question to the forum per the Forum Rules.
meskibob
Moderator
 
Posts: 4772
Joined: Mon Jan 19, 2009 4:11 pm

Re: Audio out of sync

Postby royd » Sat Dec 22, 2012 6:56 pm

Hi, I tried too find a small file but my files are all way larger than 200 mb.

The issue is with alle my files. .avi .vob .mkv in all pms versions newer than 1.54

Below is part of my debug.lob. The "[mpeg2video @ 0113f220]rc buffer underflow"" message is repeated over and over again. :
Code: Select all
...
DEBUG 2012-12-22 18:37:59.955 [New I/O server worker #1-7] Detected encoding for D:\Videos\Angel.s01-05.Complete.dvdrip.x264\Angel.s01.1999.dvdrip.x264\Angel.1x22.To_Shanshu_in_L.A..x264.srt is WINDOWS-1252.
DEBUG 2012-12-22 18:38:03.865 [UPNP-AliveMessageSender] Sending ALIVE...
INFO  2012-12-22 18:38:05.791 [New I/O server worker #1-13] Starting transcode/remux of Angel.1x01.City_Of.x264.mkv
DEBUG 2012-12-22 18:38:05.855 [New I/O server worker #1-13] Creating pipe \\.\pipe\mencoder1356197885854
DEBUG 2012-12-22 18:38:05.871 [Thread-22] Waiting for pipe connection \\.\pipe\mencoder1356197885854
DEBUG 2012-12-22 18:38:05.921 [mencoder.exe-4] Starting "C:\Program Files (x86)\PS3 Media Server\win32\mencoder.exe" -ss 0 D:\Videos\Angel.s01-05.Complete.dvdrip.x264\Angel.s01.1999.dvdrip.x264\Angel.1x01.City_Of.x264.mkv -msglevel statusline=2 -oac lavc -of mpeg -mpegopts format=mpeg2:muxrate=500000:vbuf_size=1194:abuf_size=64 -ovc lavc -channels 6 -lavdopts debug=0:threads=8 -lavcopts autoaspect=1:vcodec=mpeg2video:acodec=ac3:abitrate=448:threads=8:keyint=5:vqscale=1:vqmin=2:vrc_maxrate=6000:vrc_buf_size=1835 -ass -ass-color ffffff00 -ass-border-color 00000000 -ass-font-scale 1.0 -font C:\Windows\Fonts\Arial.ttf -ass-force-style FontName=C:\Windows\Fonts\Arial.ttf,Outline=1,Shadow=1,MarginV=10 -noflip-hebrew -fontconfig -subcp cp1252 -sid 100 -ofps 24000/1001 -sub D:\Videos\Angel.s01-05.Complete.dvdrip.x264\Angel.s01.1999.dvdrip.x264\Angel.1x01.City_Of.x264.srt -lavdopts fast -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o \\.\pipe\mencoder1356197885854
DEBUG 2012-12-22 18:38:05.924 [mencoder.exe-4] Reading pipe: \\.\pipe\mencoder1356197885854
DEBUG 2012-12-22 18:38:05.924 [mencoder.exe-4] Attaching thread: mencoder.exe-4
DEBUG 2012-12-22 18:38:05.945 [Thread-26] MEncoder SB41 (C) 2000-2012 MPlayer Team
DEBUG 2012-12-22 18:38:05.945 [Thread-26] Custom build by SubJunk, http://www.spirton.com
DEBUG 2012-12-22 18:38:05.945 [Thread-26]
DEBUG 2012-12-22 18:38:05.949 [Thread-26] success: format: 0  data: 0x0 - 0x17359808
DEBUG 2012-12-22 18:38:05.949 [Thread-26] libavformat version 54.29.105 (internal)
DEBUG 2012-12-22 18:38:05.951 [Thread-26] libavformat file format detected.
DEBUG 2012-12-22 18:38:05.965 [Thread-26] [lavf] stream 0: video (h264), -vid 0, Video
DEBUG 2012-12-22 18:38:05.965 [Thread-26] [lavf] stream 1: audio (aac), -aid 0, -alang eng, English
DEBUG 2012-12-22 18:38:05.965 [Thread-26] [lavf] stream 2: subtitle (dvdsub), -sid 0, -slang dan
DEBUG 2012-12-22 18:38:05.965 [Thread-26] [lavf] stream 3: subtitle (dvdsub), -sid 1, -slang eng
DEBUG 2012-12-22 18:38:05.965 [Thread-26] [lavf] stream 4: subtitle (dvdsub), -sid 2, -slang fin
DEBUG 2012-12-22 18:38:05.965 [Thread-26] [lavf] stream 5: subtitle (dvdsub), -sid 3, -slang nor
DEBUG 2012-12-22 18:38:05.965 [Thread-26] [lavf] stream 6: subtitle (dvdsub), -sid 4, -slang swe
DEBUG 2012-12-22 18:38:05.965 [Thread-26] VIDEO:  [H264]  720x576  0bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
DEBUG 2012-12-22 18:38:05.965 [Thread-26] [V] filefmt:44  fourcc:0x34363248  size:720x576  fps:25.000  ftime:=0.0400
DEBUG 2012-12-22 18:38:05.965 [Thread-26] ==========================================================================
DEBUG 2012-12-22 18:38:05.966 [Thread-26] Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
DEBUG 2012-12-22 18:38:05.967 [Thread-26] libavcodec version 54.64.100 (internal)
DEBUG 2012-12-22 18:38:05.969 [Thread-26] AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
DEBUG 2012-12-22 18:38:05.969 [Thread-22] Result of \\.\pipe\mencoder1356197885854 : true
DEBUG 2012-12-22 18:38:05.969 [Thread-26] Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
DEBUG 2012-12-22 18:38:05.969 [Thread-26] ==========================================================================
DEBUG 2012-12-22 18:38:05.970 [Thread-26] PACKET SIZE: 2048 bytes, deltascr: 884
DEBUG 2012-12-22 18:38:05.970 [Thread-26] Opening video filter: [ass auto=1]
DEBUG 2012-12-22 18:38:05.970 [Thread-26] [ass] auto-open
DEBUG 2012-12-22 18:38:05.982 [Thread-26] ==========================================================================
DEBUG 2012-12-22 18:38:05.983 [Thread-26] Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
DEBUG 2012-12-22 18:38:05.985 [Thread-26] Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
DEBUG 2012-12-22 18:38:05.985 [Thread-26] ==========================================================================
DEBUG 2012-12-22 18:38:05.985 [Thread-25] [ac3 @ 0113f220]channel_layout not specified
DEBUG 2012-12-22 18:38:05.985 [Thread-25] [ac3 @ 0113f220]No channel layout specified. The encoder will guess the layout, but it might be incorrect.
DEBUG 2012-12-22 18:38:05.985 [Thread-25] Limiting audio preload to 0.4s.
DEBUG 2012-12-22 18:38:05.985 [Thread-25] Increasing audio density to 4.
DEBUG 2012-12-22 18:38:05.987 [Thread-25] Unsupported PixelFormat 61
DEBUG 2012-12-22 18:38:05.987 [Thread-25] Unsupported PixelFormat 53
DEBUG 2012-12-22 18:38:05.987 [Thread-25] Unsupported PixelFormat 81
DEBUG 2012-12-22 18:38:05.990 [Thread-26] Movie-Aspect is 1.36:1 - prescaling to correct movie aspect.
DEBUG 2012-12-22 18:38:05.990 [Thread-26] videocodec: libavcodec (720x576 fourcc=3267706d [mpg2])
DEBUG 2012-12-22 18:38:05.990 [Thread-26] [VE_LAVC] Using constant qscale = 1.000000 (VBR).
DEBUG 2012-12-22 18:38:05.996 [Thread-25] [ass] PlayResX undefined, setting to 384
DEBUG 2012-12-22 18:38:05.999 [Thread-26] Writing header...
DEBUG 2012-12-22 18:38:05.999 [Thread-26] INITV: 0.200, 0.158, fps: 23.976
DEBUG 2012-12-22 18:38:05.999 [Thread-26]
DEBUG 2012-12-22 18:38:06.172 [Thread-25] [mpeg2video @ 0113f220]rc buffer underflow
DEBUG 2012-12-22 18:38:06.175 [Thread-25] [mpeg2video @ 0113f220]rc buffer underflow
...
...
Last edited by Raptor399 on Wed Dec 26, 2012 11:24 pm, edited 1 time in total.
Reason: Edited for code fragments
royd
 
Posts: 6
Joined: Sat Dec 15, 2012 2:02 pm

Re: Audio out of sync

Postby ucinv » Sun Dec 23, 2012 2:26 am

I just came here to say this fixed my problem as well.

I had v1.72.0 on Win7 Pro. I tried watching several DVD .iso's and .vob's, all were out of audio sync. For 30 mins, I tried various tweaks found here and on Google. Nothing worked. I came across this post, and decided to try it. After downgrading to 1.54.0, audio works well on those same movie files WITHOUT tweaking anything at all! Thanks OP, I probably would've struggled for hours and still not thought about downgrading.
ucinv
 
Posts: 1
Joined: Sun Dec 23, 2012 2:17 am

Re: Audio out of sync

Postby royd » Wed Dec 26, 2012 10:13 pm

Some additional info. Bandwidth setting makes no difference.

Also the "rc buffer underflow" message that is logged over and over again in debug.log of newer versions (>= 1.60) is not there in older versions(<= 1.54).

Does anyone know what it means?
royd
 
Posts: 6
Joined: Sat Dec 15, 2012 2:02 pm

Re: Audio out of sync

Postby kanti123 » Mon Dec 31, 2012 7:07 am

Hm... never seen this before. I've seen overflow, I also having the same issue as you are. My transcode max buffer is 2965, and I put in 900, that should be 2700 use and 200 for head room. Have you tried Parse with Ffmpeg or disable alternative sync?
My Setup
Computer
Asus G73Jw
16Gig of ram
2x 512Gig of HDD
1 Gigabit LAN line
Geforce GTX460M

Output Setup
PS3 Slim
1000 base full band
HDMI to Denon AVR-4311CI to Samung un55ES7100 (Calibrated with X-Rite i1Pro Enhanced from Spectracal)
kanti123
 
Posts: 41
Joined: Fri Nov 25, 2011 6:02 pm

Re: Audio out of sync

Postby mazey » Mon Dec 31, 2012 7:33 am

try setting

mpeg2 quality.

keyint=1:vqscale=1:vqmin=2

in transcode common settings. it was changed to keyint=5:vqscale=1:vqmin=2 in like 1.60 or so. might fix ure issue.
PMS 1.90.2 Snapshot - Intel Celeron G1840 Dual 2.8Ghz / Asus Z97m-plus / Corsair Vengeance 8GB / Windows 8.1 Pro (64 bit)
mazey
 
Posts: 775
Joined: Sat Oct 24, 2009 9:07 am

Re: Audio out of sync

Postby royd » Wed Jan 02, 2013 11:08 pm

Thx, guys, I'll try that this weekend.

I already tried disableing alternative sync.. no effect :?

I also noticed earlier that the ffmpeg setting in video engines is new in version 1.60(I think)...
royd
 
Posts: 6
Joined: Sat Dec 15, 2012 2:02 pm

Re: Audio out of sync

Postby mikeavalanche » Thu Jan 03, 2013 3:44 pm

I had this same issue with version (1.70) but also with the 1.60 version.
So i downgraded back 1.54 and the problem is solved.
In the past i never had these issues but as of the latest version i had these frustrating seconds of audio delay .

So thanks a lot for the suggestion !
mikeavalanche
 
Posts: 2
Joined: Thu Jan 03, 2013 3:35 pm

Re: Audio out of sync

Postby royd » Wed Jan 09, 2013 8:43 pm

mpeg2 quality setting didn't work either. :-s Back to 1.54 again :-(
royd
 
Posts: 6
Joined: Sat Dec 15, 2012 2:02 pm

Next

Return to General Help and Support

Who is online

Users browsing this forum: Bing [Bot] and 8 guests