[solved] Stuttering - solution: xvid 720p is not h.264
#1
Things we want from EVERY report:
Platform: ATV2
Version of iOS/ATV: 11.0.0 AppleTV2,1, Version 5.0.1
XBMC Build version: Build 9A406a Built on Dec 24 2011 (Git:20111222-22ad8e4)
Install method - sshed into ATV2

Detailed Instructions to Reproduce the Problem - Play Video


Skin name: Transparency

File Share: NFS using haneWIN(also tried mac NFS)

Playback Problems:
During playback of large HD videos, over 2gb, videos begin to stutter and buffer excessively. I thought SMB was the issue so I gave NFS a try. I am running wireless N. However tried a wire connections with no change.


Media File Details:


VIDEO.......: 3151 Kbps
AUDIO.......: AC3 5.1 - 448 Kbps SIZE........: 2.55 GB
FRAMERATE...: 23.976 NTSC RESOLUTION..: 1280x544
SA..........: BVOP: Yes
QPEL: No
GMC.: No

Log:

http://pastebin.com/8PTdfCYV
Reply
#2
Well multiple things:

Code:
894.01:39:33 T:149889024   ERROR: ffmpeg[8EF2000]: [ac3] frame sync error
895.01:39:33 T:149889024   ERROR: CDVDPlayerAudio::DecodeFrame - Decode Error. Skipping audio packet
896.01:39:33 T:149889024   DEBUG: CDVDPlayerAudio::Process - Decode Error
897.01:39:33 T:117215232   DEBUG: ffmpeg[6FC9000]: [NULL] Invalid and inefficient vfw-avi packed B frames detected

1. that file looks broken to me.
2. Be sure to use the latest hanewin version
3. I recommend using beta2 instead of 1 (or wait a few days for beta3 if you want)
4. The stuttering is because of the above - its all over the log. Looks like that ac3 stream is broken in that file
5. Please provide a full mediainfo output (google mediainfo for the right tool)

And last but most important Big Grin - as of the log this is mpeg4 part2 (aka xvid/divx) - and according to the filename it is > SD resolution (720p). Read the iOS FAQ in the wiki. These kind of files are not hardware decoded and therefore won't play stutterfree on the atv2 at the moment. Use h.264 encoded content for HD resolutions.

Problem cleared i think...
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
And now i change that topic because it has nothing to do with NFS at all!
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#4
Wow thanks. After I posted I did some more research and saw that is was as you have stated here. Anyway I got another file here that is having some issue when I try to play it. At random times the fps goes way down to like 7 and the whole video stutters. I was wondering if you could take a look at the log file and see what could be causing this.

Thanks

http://pastebin.com/dHUXR0up

mediainfo

General
Unique ID : 249627099525737523007579087468287584199 (0xBBCC6E3B316F2B20BE7EFDCC66C567C7)
Complete name : C:\Users\Marc\Downloads\Library\TV Shows\Last Exile\Season 2\[SFWhine]_Last_Exile_-Fam,_The_Silver_Wing.s02e10.mkv
Format : Matroska
Format version : Version 2
File size : 302 MiB
Duration : 23mn 59s
Overall bit rate : 1 760 Kbps
Encoded date : UTC 2011-12-27 04:51:53
Writing application : mkvmerge v5.0.1 ('Es ist Sommer') built on Oct 9 2011 11:55:43
Writing library : libebml v1.2.2 + libmatroska v1.3.0
Attachment : Yes / Yes / Yes / Yes

Video
ID : 2
Format : AVC
Format/Info : Advanced Video Codec
Format profile : [email protected]
Format settings, CABAC : Yes
Format settings, ReFrames : 9 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 23mn 59s
Width : 1 280 pixels
Height : 720 pixels
Display aspect ratio : 16:9
Frame rate : 23.976 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Writing library : x264 core 120 r2120 0c7dab9
Encoding settings : cabac=1 / ref=9 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=0.70:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=18 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=9 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=17.3 / qcomp=0.75 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=2:0.60
Language : Japanese
Default : Yes
Forced : No
Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177

Audio
ID : 1
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : A_AAC
Duration : 23mn 59s
Channel(s) : 2 channels
Channel positions : Front: L R
Sampling rate : 48.0 KHz
Compression mode : Lossy
Language : Japanese
Default : Yes
Forced : No

Text
ID : 3
Format : ASS
Codec ID : S_TEXT/ASS
Codec ID/Info : Advanced Sub Station Alpha
Compression mode : Lossless
Language : English
Default : Yes
Forced : No

Menu
00:00:00.000 : enTongueart 1
00:01:31.967 : en:OP
00:03:01.973 : enTongueart 2
00:10:55.947 : enTongueart 3
00:22:29.890 : en:ED
Reply
#5
Logfile doesn't fit the media info - media info says 9 refFrames. Logfiles says 4 refframes. Either these are 2 different versions of that file or it is b0rked or ffmpeg in XBMC doesn't detect it correct.

Beside that double check that thumbnailextraction is turned off in settings (see the iOS faq on how to do that).
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#6
Here is another log. In this one the ref frames match up. Same mediainfo as above.

http://pastebin.com/pWnxdz4c

During the playback I saw roughly 5 dips to around 7fps.

It seems to me this another situation were there is something wrong with the encoding/file.

Addition:

I also followed the faq for reducing buffering.
Reply
#7
Edit: Removed
Reply

Logout Mark Read Team Forum Stats Members Help
[solved] Stuttering - solution: xvid 720p is not h.2640