[AppleTV2] Stuttering AVI playback
#1
Hello,

I'm experiencing stuttering video and repeated buffering on AVI playback. These were 720p avi files. I had other non-720p (lower) avi and seemed to playback ok. 720p MKVs play fine, but 1080p mkv has the same stuttering and buffering.

Since ATV2 outputs 720p, I'm not too concerned with 1080p (although I wonder if ATV2 w/ XBMC is even capable of 1080p decode). Anyway, if 720p AVI playback is suppose to work, I would like to debug this issue on my ATV2.

I'm a newbie to this and have no idea where to start. Would be great if someone here can help.

Thx.
Reply
#2
xbmc.log
Reply
#3
I'm finding the same happening to me, will be glad to see if someone can actually help. About 50% of the videos I want to play are jittery. Note that my Boxee Box on the same network with same videos plays them flawlessly.

BTW: davilla... I don't have a /Users directory on my Apple TV2, so if you let me know where the logs are I'd be happy to post.
Reply
#4
gnomehole Wrote:I'm finding the same happening to me, will be glad to see if someone can actually help. About 50% of the videos I want to play are jittery. Note that my Boxee Box on the same network with same videos plays them flawlessly.

BTW: davilla... I don't have a /Users directory on my Apple TV2, so if you let me know where the logs are I'd be happy to post.

/private/var/mobile/Library/Preferences/xbmc.log
Reply
#5
I see from the forum rules, that there is no attachment allowed. The log file is too large to put in a post, but I'll post what I think is relevant..

thx.

BTW, This avi file played fine on Mac Mini Server with XBMC over the same wired connection.

Code:
19:16:19 T:138432512 M:129515520   DEBUG: ------ Window Init (VideoFullScreen.xml) ------
19:16:19 T:138432512 M:129515520    INFO: Loading skin file: VideoFullScreen.xml
19:16:19 T:159068160 M:129515520   DEBUG: CDVDPlayer::SetCaching - caching state 0
19:16:20 T:161374208 M:138547200 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
19:16:21 T:163188736 M:138752000 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
19:16:21 T:163188736 M:138809344   DEBUG: CDVDPlayerAudio:: Discontinuity - was:1838352.706813, should be:1728124.998480, error:-110227.708333
19:16:21 T:163188736 M:138809344 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
19:16:22 T:159068160 M:138809344 WARNING: Previous line repeats 2 times.
19:16:22 T:159068160 M:138809344   DEBUG: CDVDPlayer::SetCaching - caching state 1
19:16:22 T:159068160 M:138809344   DEBUG: CDVDPlayer::HandleMessages - player started 2
19:16:22 T:159068160 M:138809344   DEBUG: CDVDPlayer::HandleMessages - player started 1
19:16:22 T:138432512 M:138809344   DEBUG: ------ Window Init (DialogSeekBar.xml) ------
19:16:39 T:159068160 M:138993664   DEBUG: CDVDPlayer::SetCaching - caching state 0
19:16:39 T:163188736 M:138993664   DEBUG: CDVDPlayerAudio:: Discontinuity - was:2398974.248480, should be:2305098.331813, error:-93875.916667
19:16:39 T:138432512 M:138977280   DEBUG: ------ Window Deinit (DialogSeekBar.xml) ------
19:16:40 T:163188736 M:139128832   DEBUG: CDVDPlayerAudio:: Discontinuity - was:3914516.873480, should be:3776088.581813, error:-138428.291667
19:16:41 T:163188736 M:139128832   DEBUG: CDVDPlayerAudio:: Discontinuity - was:4394062.373480, should be:3904058.331813, error:-490004.041667
19:16:43 T:163188736 M:139128832   DEBUG: CDVDPlayerAudio:: Discontinuity - was:6038013.581813, should be:5600057.081813, error:-437956.500000
19:16:45 T:163188736 M:139137024   DEBUG: CDVDPlayerAudio:: Discontinuity - was:7356829.331813, should be:7200087.123480, error:-156742.208333
19:16:46 T:155676672 M:139137024   DEBUG: Thread 155676672 terminating (autodelete)
19:16:47 T:163188736 M:139137024   DEBUG: CDVDPlayerAudio:: Discontinuity - was:8811255.040147, should be:8416059.373480, error:-395195.666667
19:16:48 T:163188736 M:139137024   DEBUG: CDVDPlayerAudio:: Discontinuity - was:10092384.290147, should be:9952052.040147, error:-140332.250000
19:16:49 T:163188736 M:139137024   DEBUG: CDVDPlayerAudio:: Discontinuity - was:11051702.623480, should be:11027479.448898, error:-24223.174583
19:16:51 T:163188736 M:139137024   DEBUG: CDVDPlayerAudio:: Discontinuity - was:12591689.782231, should be:12480052.998480, error:-111636.783751
19:16:52 T:161374208 M:139137024   DEBUG: CPullupCorrection: detected pattern of length 1: 41708.30, frameduration: 41708.333333
19:16:52 T:163188736 M:139137024   DEBUG: CDVDPlayerAudio:: Discontinuity - was:13764897.206813, should be:13632131.373480, error:-132765.833333
19:16:53 T:163188736 M:139137024   DEBUG: CDVDPlayerAudio:: Discontinuity - was:14271992.956813, should be:13760000.000000, error:-511992.956813
19:16:54 T:163188736 M:139137024   DEBUG: CDVDPlayerAudio:: Discontinuity - was:14967975.875000, should be:14946565.181763, error:-21410.693237
19:16:55 T:163188736 M:139268096   DEBUG: CDVDPlayerAudio:: Discontinuity - was:16196527.181763, should be:15616085.998480, error:-580441.183283
19:16:57 T:163188736 M:139268096   DEBUG: CDVDPlayerAudio:: Discontinuity - was:17622093.623480, should be:17280060.998480, error:-342032.625000
19:16:58 T:163188736 M:139272192   DEBUG: CDVDPlayerAudio:: Discontinuity - was:18403422.081813, should be:18390168.215733, error:-13253.866080
19:16:59 T:163188736 M:139272192   DEBUG: CDVDPlayerAudio:: Discontinuity - was:19022933.049067, should be:18848112.748480, error:-174820.300587
19:16:59 T:163188736 M:139272192 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
19:17:00 T:161374208 M:139268096 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
19:17:00 T:163188736 M:139268096   DEBUG: CDVDPlayerAudio:: Discontinuity - was:20094701.248480, should be:19744050.456813, error:-350650.791667
19:17:00 T:163188736 M:139268096 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
19:17:02 T:161374208 M:139268096 WARNING: Previous line repeats 1 times.
19:17:02 T:161374208 M:139268096 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
19:17:02 T:163188736 M:139268096 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
19:17:02 T:163188736 M:139268096   DEBUG: CDVDPlayerAudio:: Discontinuity - was:21892301.915147, should be:21760129.415147, error:-132172.500000
19:17:02 T:163188736 M:139268096 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
19:17:03 T:163188736 M:139268096   DEBUG: CDVDPlayerAudio:: Discontinuity - was:22136862.081813, should be:21984046.373480, error:-152815.708333
19:17:03 T:163188736 M:139268096 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
19:17:03 T:161374208 M:139268096 WARNING: Previous line repeats 1 times.
19:17:03 T:161374208 M:139268096 WARNING: CDVDMessageQueue(video)::Get - asked for new data packet, with nothing available
19:17:03 T:163188736 M:139268096 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
Reply
#6
pastebin
42.7% of all statistics are made up on the spot

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#7
Thx.

Here is the pastebin link
http://pastebin.com/uhr1Hjww

Note the log contains 3 video playback
720p.mkv
1080p.mkv - stuttering but no buffer issue
720p.avi - stuttering and buffering issue
Reply
#8
ark1214 Wrote:Thx.

Here is the pastebin link
http://pastebin.com/uhr1Hjww

Note the log contains 3 video playback
720p.mkv
1080p.mkv - stuttering but no buffer issue
720p.avi - stuttering and buffering issue

Your 720p.avi is mpeg4 part 2 which is currently routed to ffmpeg until we figure out some things with the hw decoder for that format. If you ssh in and check with 'top', I bet you will see the CPU maxed.
Reply
#9
Ok, thx for the explanation.

Don't really understand all the different format/encoding.. But good to know that this is being worked on.

Great work on XBMC on IOS!! Looking forward to future enhancements/fixes.
Reply
#10
Download "mediainfo" and you can run that on your files. Look at the VIDEO stream section. Only things encoded with AVC/H264 seem to use the hardware decoder right now, so that's the only codec that will play without issues at 720p or higher resolutions.

If you are getting stuttering on files encoded with AVC/H264 (generally any MKV you come across will likely, but not guaranteed, to be this), then you should check the bitrate of the video stream. Also investigate your network configuration. I've played 1080p MKV's with 15Mbps bitrates without issue.
Reply
#11
HDClown Wrote:Download "mediainfo" and you can run that on your files. Look at the VIDEO stream section. Only things encoded with AVC/H264 seem to use the hardware decoder right now, so that's the only codec that will play without issues at 720p or higher resolutions.

If you are getting stuttering on files encoded with AVC/H264 (generally any MKV you come across will likely, but not guaranteed, to be this), then you should check the bitrate of the video stream. Also investigate your network configuration. I've played 1080p MKV's with 15Mbps bitrates without issue.

I am guessing that XBMC is well behind where Boxee is right now, I'm guessing their heavy work in codecs has really helped them with their solution. I can play every video I download with no chop on the boxee, but really am hoping to use ATV2s instead (half the price, among other things)

Right now if I have to worry about encoding issues and codecs I might as well just convert and use iTunes, or stick with Boxee. Having said that I'm going to stay tuned and see how things progress because I really want to use this on ATV2 as the ultimate solution. I know its early on... keep up the good work.
Reply
#12
gnomehole Wrote:I am guessing that XBMC is well behind where Boxee is right now, I'm guessing their heavy work in codecs has really helped them with their solution. I can play every video I download with no chop on the boxee, but really am hoping to use ATV2s instead (half the price, among other things)

Right now if I have to worry about encoding issues and codecs I might as well just convert and use iTunes, or stick with Boxee. Having said that I'm going to stay tuned and see how things progress because I really want to use this on ATV2 as the ultimate solution. I know its early on... keep up the good work.

Different hardware in the ATV2 and Boxee. Smooth playback really relies on hardware decoding of the GPU in all of these kinds of devices, as the CPUs are typically low on power. The GPU in the ATV2 will only hardware accelerate H264 as it stands right now. The XBMC devs think they may be able to accelerate some other codecs (such as XviD/DivX), but it's probably never going to be up to scale of Boxee. They don't think VC1 or WMV will ever be able to be hardware accelerated by the GPU, and it's probably more of an issue of what the GPU supports, not what the devs can do.
Reply
#13
HDClown Wrote:They don't think VC1 or WMV will ever be able to be hardware accelerated by the GPU, and it's probably more of an issue of what the GPU supports, not what the devs can do.

Good to know. Makes me feel better about getting 2 Boxees and only one ATV2. Maybe the ATV3 will have more guts.

I like playing with XBMC though, it really looks great.
Reply
#14
HDClown Wrote:Download "mediainfo" and you can run that on your files. Look at the VIDEO stream section. Only things encoded with AVC/H264 seem to use the hardware decoder right now, so that's the only codec that will play without issues at 720p or higher resolutions.

If you are getting stuttering on files encoded with AVC/H264 (generally any MKV you come across will likely, but not guaranteed, to be this), then you should check the bitrate of the video stream. Also investigate your network configuration. I've played 1080p MKV's with 15Mbps bitrates without issue.
Come again? I get horrible frameloss with a 11.3 Mbps 1080p rip.... Or are you talking about you have played 15Mbps birates on OTHER machines without an issue?
This file is encoded with AVC/H264 so I have dubbed it my "Make it or break it" file for now...
Reply
#15
Numus Wrote:Come again? I get horrible frameloss with a 11.3 Mbps 1080p rip.... Or are you talking about you have played 15Mbps birates on OTHER machines without an issue?
This file is encoded with AVC/H264 so I have dubbed it my "Make it or break it" file for now...

15Mbps AVC/H264 MKV's on my ATV2 without issue. My device is hard wired to my LAN. See mediainfo on all the files I've tested so far here: http://pastebin.com/b8g14Qj3
Reply

Logout Mark Read Team Forum Stats Members Help
[AppleTV2] Stuttering AVI playback0