Audio out of Syn with one video and not the other.

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.

Re: Audio out of Syn with one video and not the other.

Postby ExSport » Tue Jan 22, 2013 10:12 pm

Yes!
EDIT:
Also if it doesn't work, delete "-fps 30000/1001" part and use only "-ofps 30000/1001" part.
Then post debug.log again and also if possible sample of this file (cutted part with MKVTOOLNIX or similar) so we can test if if in command line it works or not (easiest testing)
ExSport
 
Posts: 2168
Joined: Mon Jan 19, 2009 5:40 pm

Re: Audio out of Syn with one video and not the other.

Postby kanti123 » Wed Jan 23, 2013 10:25 am

I downloaded the tool you told me to, but i don't now how to cut the file.
you can download the video file from http://horriblesubs.info/

Maoyuu Maou Yuusha – 03 1080p

Sorry for not updating for several days, my computer crashed and I have to reinstall my windows. So I decided to switch to Ubuntu, I'll set up PS3 Media server up again and test it out as planed.
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 Syn with one video and not the other.

Postby BlitzkriegAL » Sat Jan 26, 2013 11:43 pm

Hello there guys, I'm actually having the same problem as kanti, so I thought I'd join in and see if I can help you fix our issue. I've read this thread and tried a great many things. Here's what's happened so far.

With default settings: Most videos play properly; this one and other 29fps videos play at a lower framerate, but the audio plays normally. Subtitles are usually slow at first, and stop working entirely shortly after.

With this code:
Code: Select all
framerate == null :: -fps 30000/1001 -ofps 30000/1001
No changes from default settings. I also tried removing the "-fps" part, leaving only the "-ofps" portion, but with no changes either.

With the no if-statement code:
Code: Select all
:: -fps 30000/1001 -ofps 30000/1001
This actually fixed the video. It works perfectly. But then all of my other videos were having the opposite problem: the video was playing too fast and the audio was behind. Since I have far fewer videos that don't work than do, I decided to revert the change. Again, I tried removing the "-fps" part as suggested, but with no change.

To help, I have uploaded samples of the videos as requested. "Hunter X Hunter" is one of the lower fps videos that works fine under default settings but not with your code, while "Maoyuu Maou Yuusha" is slow under default settings but works with your code.

http://www.mediafire.com/?i9b1s05hz61lyi6

Thank you in advance for your help.


EDIT: Since the first code doesn't fix the framerate but the second code does, perhaps we could solve the problem by fixing the code? The framerate fixes from the first code are clearly not being applied, so the if-statement is always returning false. Perhaps the FPS isn't actually null? Noticing something else (forgive me if I'm repeating what was said earlier in the thread)...

Here's a portion of my debug log with the video.
Code: Select all
INFO  2013-01-26 17:57:30.921 [New I/O server worker #1-10] Starting transcode/remux of [HorribleSubs] Maoyuu Maou

Yuusha - 01 [720p].mkv
DEBUG 2013-01-26 17:57:30.979 [New I/O server worker #1-10] Creating pipe \\.\pipe\mencoder1359241050979
DEBUG 2013-01-26 17:57:31.084 [Thread-29] Waiting for pipe connection \\.\pipe\mencoder1359241050979
DEBUG 2013-01-26 17:57:31.134 [mencoder.exe-5] Starting "C:\Program Files (x86)\PS3 Media Server

\win32\mencoder.exe" -ss 0 "C:\Users\Alex\Desktop\Torrents\[HorribleSubs] Maoyuu Maou Yuusha - 01 [720p].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=54000:vrc_

buf_size=7000 -ass -fontconfig -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -af lavcresample=48000 -srate

48000 -o \\.\pipe\mencoder1359241050979
DEBUG 2013-01-26 17:57:31.136 [mencoder.exe-5] Reading pipe: \\.\pipe\mencoder1359241050979
DEBUG 2013-01-26 17:57:31.136 [mencoder.exe-5] Attaching thread: mencoder.exe-5
DEBUG 2013-01-26 17:57:31.159 [Thread-33] MEncoder SB41 (C) 2000-2012 MPlayer Team
DEBUG 2013-01-26 17:57:31.159 [Thread-33] Custom build by SubJunk, http://www.spirton.com
DEBUG 2013-01-26 17:57:31.159 [Thread-33]
DEBUG 2013-01-26 17:57:31.162 [Thread-33] success: format: 0  data: 0x0 - 0x142783b6
DEBUG 2013-01-26 17:57:31.162 [Thread-33] libavformat version 54.29.105 (internal)
DEBUG 2013-01-26 17:57:31.163 [Thread-33] libavformat file format detected.
DEBUG 2013-01-26 17:57:31.174 [Thread-33] [lavf] stream 0: video (h264), -vid 0
DEBUG 2013-01-26 17:57:31.174 [Thread-33] [lavf] stream 1: audio (aac), -aid 0
DEBUG 2013-01-26 17:57:31.174 [Thread-33] [lavf] stream 2: subtitle (ass), -sid 0
DEBUG 2013-01-26 17:57:31.174 [Thread-33] VIDEO:  [H264]  1280x720  0bpp  30.303 fps    0.0 kbps ( 0.0 kbyte/s)
DEBUG 2013-01-26 17:57:31.175 [Thread-33] [V] filefmt:44  fourcc:0x34363248  size:1280x720  fps:30.303 

ftime:=0.0330
DEBUG 2013-01-26 17:57:31.175 [Thread-33]

==========================================================================
DEBUG 2013-01-26 17:57:31.175 [Thread-33] Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
DEBUG 2013-01-26 17:57:31.175 [Thread-33] libavcodec version 54.64.100 (internal)
DEBUG 2013-01-26 17:57:31.177 [Thread-33] AUDIO: 44100 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->176400)
DEBUG 2013-01-26 17:57:31.177 [Thread-33] Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4

Audio))
DEBUG 2013-01-26 17:57:31.177 [Thread-33]

==========================================================================
DEBUG 2013-01-26 17:57:31.177 [Thread-29] Result of \\.\pipe\mencoder1359241050979 : true
DEBUG 2013-01-26 17:57:31.177 [Thread-33] PACKET SIZE: 2048 bytes, deltascr: 884
DEBUG 2013-01-26 17:57:31.177 [Thread-33] Opening video filter: [ass auto=1]
DEBUG 2013-01-26 17:57:31.178 [Thread-33] [ass] auto-open
DEBUG 2013-01-26 17:57:31.189 [Thread-33]

==========================================================================
DEBUG 2013-01-26 17:57:31.190 [Thread-33] Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
DEBUG 2013-01-26 17:57:31.192 [Thread-33] Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
DEBUG 2013-01-26 17:57:31.192 [Thread-33]

==========================================================================
DEBUG 2013-01-26 17:57:31.196 [Thread-32] [ac3 @ 0113f220]channel_layout not specified
DEBUG 2013-01-26 17:57:31.197 [Thread-32] [ac3 @ 0113f220]No channel layout specified. The encoder will guess the

layout, but it might be incorrect.
DEBUG 2013-01-26 17:57:31.197 [Thread-32] Limiting audio preload to 0.4s.
DEBUG 2013-01-26 17:57:31.197 [Thread-32] Increasing audio density to 4.
DEBUG 2013-01-26 17:57:31.200 [Thread-32] Unsupported PixelFormat 61
DEBUG 2013-01-26 17:57:31.200 [Thread-32] Unsupported PixelFormat 53
DEBUG 2013-01-26 17:57:31.200 [Thread-32] Unsupported PixelFormat 81
DEBUG 2013-01-26 17:57:31.212 [Thread-33] Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
DEBUG 2013-01-26 17:57:31.212 [Thread-33] videocodec: libavcodec (1280x720 fourcc=3267706d [mpg2])
DEBUG 2013-01-26 17:57:31.212 [Thread-33] [VE_LAVC] Using constant qscale = 1.000000 (VBR).
DEBUG 2013-01-26 17:57:31.224 [Thread-33] Writing header...
DEBUG 2013-01-26 17:57:31.224 [Thread-33] INITV: 0.200, 0.158, fps: 23.976
DEBUG 2013-01-26 17:57:31.224 [Thread-33]
INFO  2013-01-26 17:57:31.235 [StartPlaying Event] renderer: 192.168.0.199, file: C:\Users\Alex\Desktop\Torrents\[HorribleSubs] Maoyuu Maou Yuusha - 01 [720p].mkv


Specifically, I'm looking at these three sets of lines:
Code: Select all
DEBUG 2013-01-26 17:57:31.134 [mencoder.exe-5] Starting "C:\Program Files (x86)\PS3 Media Server\win32\mencoder.exe" -ss 0 "C:\Users\Alex\Desktop\Torrents\[HorribleSubs] Maoyuu Maou Yuusha - 01 [720p].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=54000:vrc_buf_size=7000 -ass -fontconfig -sid 0 -ofps 24000/1001 -lavdopts fast -mc 0 -noskip -af lavcresample=48000 -srate 48000 -o \\.\pipe\mencoder1359241050979

DEBUG 2013-01-26 17:57:31.174 [Thread-33] VIDEO:  [H264]  1280x720  0bpp  30.303 fps    0.0 kbps ( 0.0 kbyte/s)
DEBUG 2013-01-26 17:57:31.175 [Thread-33] [V] filefmt:44  fourcc:0x34363248  size:1280x720  fps:30.303  ftime:=0.0330

DEBUG 2013-01-26 17:57:31.224 [Thread-33] Writing header...
DEBUG 2013-01-26 17:57:31.224 [Thread-33] INITV: 0.200, 0.158, fps: 23.976


For some reason, the middle set of lines (17:57:31.17) say the correct FPS, 30.303. But the other two sets say 23.976 (the first says -ofps 24000/1001, which is 23.976). Maybe this is the important part? What are the middle two lines coming from, and how can I get mencoder to read them?
BlitzkriegAL
 
Posts: 2
Joined: Sat Jan 26, 2013 8:52 pm

Re: Audio out of Syn with one video and not the other.

Postby kanti123 » Tue Jan 29, 2013 12:01 pm

I think best to avoid 30 fps video, if you notice you can play with FFmpeg or TsMuxer just fine. I wonder if there's a way for them to use FFMPEG instead of Mencoder, I also don't see any more updates for it. I'll have to play with this some more, right now I'm very busy with work (12 hours shift). I'll have to wait until the weekend.
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 Syn with one video and not the other.

Postby ExSport » Tue Jan 29, 2013 5:21 pm

23.976fps used also for 30.303fps is bug. Where? Who knows.
It seems MediaInfo or PMS badly parsed your file so it returned FPS=NULL. If PMS don't have any info about fps, it uses 24000/1001 by default.
Anyway if it will detect it right, this value can't be used because MEncoder doesn't support it so it have to be rounded to 23.976. Better than nothing 8-)
I agree that ignoring "framerate == null" is pitty. In first debug.log there is info that PMS parsed fps as null as we discussed in older posts. I am not sure if @BlitzkriegAL is on the same boat. It is needed to delete and disable PMS cache, change debug level to TRACE and restart PMS. Then detected fps will be logged in debug.log.
I already downladed sample from @kanti123 but had no time to test it, sorry. Will try later.
ExSport
 
Posts: 2168
Joined: Mon Jan 19, 2009 5:40 pm

Re: Audio out of Syn with one video and not the other.

Postby Pothier » Sat Feb 02, 2013 5:41 pm

I have the exact same problem with Maoyuu Maou Yuusha, and also Da Capo III.... im not that good with PMS but if you guys find a solution plz keep me updated. Im trying to follow your conversation but im not understanding half of it :cry:

Could it be a codec issue? CCCP got updated before xmas so i was looking for a way to update PMS but didnt find anything.
Pothier
 
Posts: 1
Joined: Sat Feb 02, 2013 5:34 pm

Re: Audio out of Syn with one video and not the other.

Postby dscribe » Sun Feb 03, 2013 11:00 pm

Thank you to everyone who has posted about their audio settings solutions in particular in general - and settings solutions in general. After about 2 months of effort, I've finally got HDHomeRun tuners, TVHeadend recording, and PS3MediaServer working fairly well as Upstart services on my home headless Ubuntu 12.04 server (aka an old laptop) over a gigabit home network. The only remaining problem is a slight lip sync error. It is present without change throughout playback of my ATSC TV over the air recordings. So I'll be following this topic with interest.

In the meantime, the only advice I have to offer to other readers is not on this specific topic. But I'd say that 80-90% of my setup problems turned out to be linux permissions related. It wasn't until I really understood file and directory permissions by owners, groups, and others that I could finally smash my gremlins.
dscribe
 
Posts: 1
Joined: Sun Feb 03, 2013 10:36 pm
Location: California, USA

Previous

Return to General Help and Support

Who is online

Users browsing this forum: No registered users and 21 guests