720p mkv runs fine for 40 mins then stutters

For help and support with Mac OS X specific issues

720p mkv runs fine for 40 mins then stutters

Postby kidamnesiac » Mon Jul 12, 2010 12:09 am

First of all, thanks for this beautiful software! I've been able to stream all of my avi, mp3, flac, and other media with little to no problems.
However, I'm going insane trying to get 720p mkv files to play correctly using the MEncoder to transcode. They start up quickly and run perfectly for about 45 minutes. Then the bitrate drops to zero, even with the buffer full, and the video stutters repetitively for the remainder of the film every 10 minutes or so. Please help me! My wife is losing patience with my "experiment" and wants to go back to just watching DVDs and Blu-Rays.

My setup is a MacBook Pro 2.16 GHz Intel Core Duo with 2GB 667 MHz DDR2 SDRAM running Mac OS X 10.6.4 and PS3MS 1.20.409
My network is as follows: MacBook Pro <-100mbps ethernet cord-> Linksys WRT54GS Router <-Wifi G-> PS3.

I've tried a variety of options. keyint=1:vqscale=1:vqmin=2 as well as keyint=25:vqmax=5:vqmin=2. My buffer is currently set at 400mb, though I've tried everywhere in between that and 600mb in increments of 50mb. I've set my number of cores used for transcoding to 2 and have also attempted 4, per my reading a suggestion in another thread. Audio channels are set to 2 (stereo) and AC3 audio bitrate is 384kbps. Maximum bandwidth is set at 15 (per suggestion). I've also tried 14, 0 (no limit), and 54. Enhanced multicore support is checked, as is A/V sync alternative method, Force framerate parsed from FFMpeg, and switch to tsMuxer when h264 video is ps3 compatible. I exit out of all running applications before attempting to stream and make sure there is no other stress on the network during streaming. I've reset my MacBook, router, PS3, and the server countless times. It is my understanding that a 720p mkv file should stream comfortably over a wifi G connection in well under 54mpbs. So where's my problem? HELP!

MediaInfo on my test file
Code: Select all
General
Complete name                    : /Movies/Star Trek.mkv
Format                           : Matroska
File size                        : 6.56 GiB
Duration                         : 2h 6mn
Overall bit rate                 : 7 406 Kbps
Encoded date                     : UTC 2008-03-02 05:06:06
Writing application              : mkvmerge v2.2.0 ('Turn It On Again') built on Mar  4 2008 12:58:26
Writing library                  : libebml v0.7.7 + libmatroska v0.8.1

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 5 frames
Muxing mode                      : Container profile=Unknown@4.1
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 2h 6mn
Bit rate                         : 6 763 Kbps
Width                            : 1 280 pixels
Height                           : 536 pixels
Display aspect ratio             : 2.35:1
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.411
Stream size                      : 5.86 GiB (89%)
Writing library                  : x264 core 76 r1271 496d79d
Encoding settings                : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=7 / psy=1 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=0 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=6763 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00

Audio
ID                               : 2
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : A_AC3
Duration                         : 2h 6mn
Bit rate mode                    : Constant
Bit rate                         : 640 Kbps
Channel(s)                       : 6 channels
Channel positions                : Front: L C R, Side: L R, LFE
Sampling rate                    : 48.0 KHz
Bit depth                        : 16 bits
Stream size                      : 581 MiB (9%)

debug.log.zip
(37.05 KiB) Downloaded 7 times
kidamnesiac
 
Posts: 5
Joined: Mon Jul 12, 2010 12:05 am

Re: 720p mkv runs fine for 40 mins then stutters

Postby Gesatzs » Thu Jul 29, 2010 11:04 pm

Dear Kidamnesiac,
I wish I could help you but I in fact experiencing a similar issue.

Here is my network configuration :
- MacBook pro Core 2 duo 2.66 4Go, connected to modem (wifi)
- Modem Router ADSL2+ 15Mo + WIFI
- Sony Bravia 46HX700 connected to modem (cable)
- Synology DS210j 2x2To Raid0 connected to modem (cable)

Like you did, tried all options, buffer (400, 600) and max rate (14, 15, 50...), tried also to use only cable connections (no wifi),...
The Movie 720p runs well for 5, 10 or sometimes 15 minutes max, and then stutters, sometimes stops, it's a dead end...

I'm using this PS3.conf file by this slightly modified :
viewtopic.php?f=15&t=2099&p=29955#p29955
Code: Select all
# ps3mediaserver renderer profile for Sony Bravia HX500/HX700 series
# Refer to PS3.conf for help

RendererName=Sony Bravia HX Series
RendererIcon=bravia.png
UserAgentSearch=notusedhere
UserAgentAdditionalHeader=X-AV-Client-Info
UserAgentAdditionalHeaderSearch=(BRAVIA KDL.+HX5)|(BRAVIA KDL.+HX7)
Video=true
Audio=true
Image=true
SeekByTime=true
TranscodeVideo=MPEGAC3
TranscodeAudio=MP3
DefaultVBVBufSize=true
MuxH264ToMpegTS=true
MuxDTSToMpeg=false
WrapDTSIntoPCM=false
MuxLPCMToMpeg=false
MaxVideoBitrateMbps=0
MaxVideoWidth=0
MaxVideoHeight=0
H264Level41Limited=true
MimeTypesChanges=audio/wav=audio/L16|video/mp4=video/mpeg
DLNALocalizationRequired=true
TranscodeExtensions=dvr-ms,dvr,mkv,dv,ty,mov,ogm,hdmov,hdm,rmv,rmvb,rm,asf,evo,asx,flv,m2v,mpe,mod,tivo,ty,tmf,ts,tp,m2p,mp4,m4v,avi,wmv,wm,divx,div,flac,mlp,fla,wma,m4a,aac,dts,mka,ape,ogg,shn,mpc,ra,mp2,wv,oma,aa3,gif,png,arw,cr2,crw,dng,raf,mrw,nef,pef,tif,tiff
StreamExtensions=


MediaInfo=true
# [Supported video formats]:
# Here we declare support (or lack) of DTS (here, none of the entries declare dts as a supported audio codec)
Supported = f:mpegps|mpegts v:mpeg1|mpeg2|mp4|h264 a:ac3|lpcm|aac|mpa m:video/mpeg
# No H264 for AVI files, plus specific mediainfo attributes, for better auto detection (qpel and gmc are not supported here)
Supported = f:avi|divx v:mp4|divx|mjpeg a:mp3|lpcm|mpa|ac3 m:video/x-divx qpel:no gmc:0
Supported = f:mp4 v:mp4|h264 a:ac3|aac m:video/mp4
# WMV files are supported, but not with 5.1 audio: (hence the n:2)
Supported = f:wmv v:wmv|vc1 a:wma n:2 m:video/x-ms-wmv
# [Supported audio formats]:
Supported = f:wav a:dts|lpcm n:6 s:48000 m:audio/wav
Supported = f:wav n:2 s:48000 m:audio/wav
Supported = f:mp3 n:2 m:audio/mpeg
# Apple lossless not supported
Supported = f:aac n:2 a:(?!alac).+ m:audio/x-m4a
Supported = f:wma n:2 m:audio/x-ms-wma
Supported = f:atrac n:2 m:audio/x-oma
# [Supported image formats]
Supported = f:jpg m:image/jpeg
Supported = f:png m:image/png
Supported = f:gif m:image/gif
Supported = f:tiff m:image/tiff


Actually I'm not familiar with these settings:
Code: Select all
keyint=1:vqscale=1:vqmin=2
OR
Code: Select all
keyint=25:vqmax=5:vqmin=2

Hope this can help the thread
Or did you find a solution ?
Thanks for any help
Gesatzs
Gesatzs
 
Posts: 3
Joined: Thu Jul 29, 2010 8:45 am

Re: 720p mkv runs fine for 40 mins then stutters

Postby Gesatzs » Fri Jul 30, 2010 1:31 pm

Dear Amnesiac,

It seems I have found a solution for my problem.It might help you, or not !

I had 2 renderers found by the PS3ms, in the status page. My synology DS210j was actually detected as a renderer, and it (the synology) was doing the job (pretty poorly after 5mn of trying to keep up lol ). So I shut it down, and now it's working sooooo fine, it's great. I'll have to restart the synology and find a way that it is not detected as a media renderer, because most of the video are on this synology.

Bye all
Gesatzs
Gesatzs
 
Posts: 3
Joined: Thu Jul 29, 2010 8:45 am

Re: 720p mkv runs fine for 40 mins then stutters

Postby kidamnesiac » Tue Aug 03, 2010 6:57 am

Gesatzs,

I believe you may be on to something, however, my problem may be slightly different than yours. I live in an apartment with a shared internet connection. I often find multiple renderers on my main status page, despite the fact that I use an IP filter. I believe that the other renderers are other people in my complex that may be trying to access my server and causing interference with my playback.

After some research, I found that the "HTTP engine v2" option is not compatible with an IP filter. I have turned it off and have since noticed no other renderers connected to my server. I have also changed my preferred transcoding engine to TsMuxer, which I have been led to believe is slightly more stable than MEncoder for mkv files. I haven't had a chance to give these new settings a full test run on an HD mkv, but I'm hoping this will fix the problem for me.

Hopefully this is helpful to you. I will try and report back my own findings.
kidamnesiac
 
Posts: 5
Joined: Mon Jul 12, 2010 12:05 am


Return to Mac OS X Specific Support

Who is online

Users browsing this forum: No registered users and 3 guests