Hi folks, a brief status report whats currently going on...
First the bad news (sort of ;-). I'm getting better from my flu which means I'm probably getting back to work next week, thus I wont have as much time as I would like on the subject but I'll do my best.
The good news is that the ffmpeg libraries seems ok. My plan was to use a standalone player based on ffmpeg to verify the libraries. In this case I got the osx mplayer work on my mac. Mplayer was able to play the svt-play m3u8 streams without staggering. When I lowered the stream cache it occasionally complained about "Your system is too SLOW" which is a good problem indicator. Btw, anyone knows what the "SPS 32 referenced in buffering period" is meaning?
I also managed (which is another subject) to built the lastest stable release (xbmc-12.0.tar.gz) from scratch to make sure we track the current problem on the right release level. My current plan is to debug/trace the mplayer to find out how the cache is used m3u8 streams. Any other suggestions or ideas are welcome!
Trace output from playing a m3u8 stream with a low (32k) cache:
$
mplayer2 -cache 32 "http://svtplay7m-f.akamaihd.net/i/se//open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/master.m3u8"
Code:
MPlayer2 UNKNOWN (C) 2000-2011 MPlayer Team
Can't init Apple Remote.
Playing http://svtplay7m-f.akamaihd.net/i/se//open/20130129/1230799-001A/DIVING_WITH_CRO-001A-23b378251ee65366_,900,348,564,1680,2800,.mp4.csmil/master.m3u8.
Resolving svtplay7m-f.akamaihd.net for AF_INET6...
Couldn't resolve name for AF_INET6: svtplay7m-f.akamaihd.net
Resolving svtplay7m-f.akamaihd.net for AF_INET...
Connecting to server svtplay7m-f.akamaihd.net[92.33.33.152]: 80...
Cache size set to 32 KBytes
Cache fill: 4.29% (1407 bytes)
Detected file format: Apple HTTP Live Streaming format (libavformat)
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[NULL @ 0x7fdebb255800] non-existing SPS 0 referenced in buffering period
[NULL @ 0x7fdebb255800] non-existing SPS 32 referenced in buffering period
[NULL @ 0x7fdebbc95000] non-existing SPS 0 referenced in buffering period
[NULL @ 0x7fdebbc95000] non-existing SPS 32 referenced in buffering period
[NULL @ 0x7fdebcaf3000] non-existing SPS 0 referenced in buffering period
[NULL @ 0x7fdebcaf3000] non-existing SPS 32 referenced in buffering period
[NULL @ 0x7fdebcafaa00] non-existing SPS 0 referenced in buffering period
[NULL @ 0x7fdebcafaa00] non-existing SPS 32 referenced in buffering period
[NULL @ 0x7fdebcb1bc00] non-existing SPS 0 referenced in buffering period
[NULL @ 0x7fdebcb1bc00] non-existing SPS 32 referenced in buffering period
[h264 @ 0x7fdebb25a200] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7fdebb25a200] non-existing SPS 32 referenced in buffering period
[h264 @ 0x7fdebcb6ac00] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7fdebcb6ac00] non-existing SPS 32 referenced in buffering period
[h264 @ 0x7fdebcb45c00] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7fdebcb45c00] non-existing SPS 32 referenced in buffering period
[h264 @ 0x7fdebcb58000] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7fdebcb58000] non-existing SPS 32 referenced in buffering period
[h264 @ 0x7fdebcb7d800] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7fdebcb7d800] non-existing SPS 32 referenced in buffering period
[applehttp @ 0x7fdebb041a00] Estimating duration from bitrate, this may be inaccurate
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0
[lavf] stream 2: video (h264), -vid 1
[lavf] stream 3: audio (aac), -aid 1
[lavf] stream 4: video (h264), -vid 2
[lavf] stream 5: audio (aac), -aid 2
[lavf] stream 6: video (h264), -vid 3
[lavf] stream 7: audio (aac), -aid 3
[lavf] stream 8: video (h264), -vid 4
[lavf] stream 9: audio (aac), -aid 4
VIDEO: [H264] 768x432 0bpp 25.000 fps 0.0 kbps ( 0.0 kbyte/s)
Opening video filter: [scale]
[ass] auto-open
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Asking decoder to use 2 threads if supported.
[h264 @ 0x7fdebd8a6a00] non-existing SPS 0 referenced in buffering period
[h264 @ 0x7fdebd8a6a00] non-existing SPS 32 referenced in buffering period
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffaac] afm: ffmpeg (FFmpeg AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
AO: [coreaudio] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
A: 10.1 V: 0.0 A-V: 0.000 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 0%
Movie-Aspect is 1.78:1 - prescaling to correct movie aspect.
[swscaler @ 0x7fdebd0fa800] BICUBIC scaler, from yuv420p to yuyv422 using MMX2
VO: [corevideo] 768x432 => 768x432 Packed YUY2
A: 10.2 V: 10.2 A-V: -0.040 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 0%
Decreasing video pts: 10.181000 < 10.221000
A: 10.3 V: 10.3 A-V: 0.001 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 0%
Decreasing video pts: 10.141000 < 10.261000
A: 10.4 V: 10.4 A-V: -0.003 ct: 0.000 0/ 0 ??% ??% ??,?% 0 0 0%
Decreasing video pts: 10.341000 < 10.381000
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
[applehttp @ 0x7fdebb041a00] No longer receiving variant 1
[applehttp @ 0x7fdebb041a00] No longer receiving variant 2
[applehttp @ 0x7fdebb041a00] No longer receiving variant 3
[applehttp @ 0x7fdebb041a00] No longer receiving variant 4
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
A: 47.7 V: 47.7 A-V: -0.000 ct: 0.001 0/ 0 3% 8% 3.9% 59 0 0%
************************************************
**** Your system is too SLOW to play this! ****
************************************************
Possible reasons, problems, workarounds:
- Most common: broken/buggy _audio_ driver
- Try -ao sdl or use the OSS emulation of ALSA.
- Experiment with different values for -autosync, 30 is a good start.
- Slow video output
- Try a different -vo driver (-vo help for a list) or try -framedrop!
- Slow CPU
- Don't try to play a big DVD/DivX on a slow CPU! Try some of the lavdopts,
e.g. -vfm ffmpeg -lavdopts lowres=1:fast:skiploopfilter=all.
- Broken file
- Try various combinations of -nobps -ni -forceidx -mc 0.
- Slow media (NFS/SMB mounts, DVD, VCD etc)
- Try -cache 8192.
- Are you using -cache to play a non-interleaved AVI file?
- Try -nocache.
Read DOCS/HTML/en/video.html for tuning/speedup tips.
If none of this helps you, read DOCS/HTML/en/bugreports.html.
Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
A: 181.3 V: 181.3 A-V: -0.002 ct: 0.001 0/ 0 1% 7% 5.1% 294 0 0%
A: 182.1 V: 182.1 A-V: 0.000 ct: 0.001 0/ 0 1% 7% 5.1% 294 0 0%
A: 182.8 V: 182.7 A-V: 0.137 ct: 0.001 0/ 0 1% 7% 5.1% 294 0 0%
A: 184.5 V: 184.5 A-V: -0.003 ct: 0.001 0/ 0 1% 7% 5.1% 295 0 0%
A: 185.3 V: 185.3 A-V: 0.010 ct: 0.001 0/ 0 1% 7% 5.0% 295 0 0%
A: 185.8 V: 185.8 A-V: 0.000 ct: 0.001 0/ 0 1% 7% 5.0% 295 0 0%
MPlayer interrupted by signal 2 in module: decode_audio
MPlayer interrupted by signal 2 in module: enable_cache
A: 190.0 V: 189.2 A-V: 0.832 ct: 0.001 0/ 0 1% 7% 5.4% 296 0 0%
Exiting... (Quit)
--