[PATCH] BBC iPlayer HQ streams patch for XBMC + slightly modified iPlayer plugin
#1
I've modified rtmp.cpp to enable me to open BBC iPlayer's High Quality MP4 streams, i've authenticated, and the server has initiated stream playback, however i'm dropping out with this...

PHP Code:
21:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacket
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacketreceivedvideo 2486 bytes
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacket
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacketreceivedaudio 251 bytes
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacket
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacketreceivedaudio 265 bytes
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacket
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacketreceivedvideo 649 bytes
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacket
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacketreceivedaudio 313 bytes
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacket
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacketreceivedaudio 308 bytes
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacket
21
:16:50 T:2974808976 M:336015360   DEBUGGetNextMediaPacketreceivedvideo 3028 bytes
21
:16:50 T:2974808976 M:336015360   DEBUGOpen av_find_stream_info starting
21
:16:50 T:2974808976 M:336015360    INFOffmpeg: [flvCould not find codec parameters (Videoh264)
21:16:50 T:2974808976 M:336015360    INFOffmpeg: [flvCould not find codec parameters (Audio0x000044100 Hz0 channels)
21:16:50 T:2974808976 M:336015360 WARNINGcould not find codec parameters for rtmp://bbciplayertokfs.fplive.net:1935/bbciplayertok?authString=547d62bda5077a91848f4274fd520187&slist=mp4:b000fvd1fH26499716584
21:16:50 T:2974808976 M:336015360   ERROROpenDemuxStream Error creating demuxer
21
:16:50 T:2974808976 M:336015360  NOTICECDVDPlayer::OnExit()
21:16:50 T:2974808976 M:336015360  NOTICECDVDPlayer::OnExit() deleting input stream
21
:16:50 T:2974808976 M:336015360   DEBUGPlayback was stopped 

It would appear that ffmpeg is choking on the audio, anyone have any suggestions?
Reply
#2
Great work, I'd be interested in your changes as I couldn't get a connection when I tried something similar a while ago. If you've had no joy with playback yet, and can drop me a diff I'll probably have time over xmas to have a look myself.

A suggestion could be to dump everything returned from CDVDInputStreamRTMP::Read to file, as it should be a valid FLV video file. That can be examined in your favourite player or checked manually against the flash spec (which, thank god, is properly documented unlike rtmp). Version 9 here: http://www.adobe.com/devnet/flv/pdf/vide...pec_v9.pdf
Reply
#3
I dumped this file as suggested, and initially had problems opening it in any external application - vlc, mplayerc etc. After installing the latest CCCP beta (http://www.cccp-project.net/beta/), it will now open in Media Player Classic.... which detects the following...

Video: MPEG4 Video (H264) 640x368 [Video]
Audio: AAC 44100Hz stereo [Audio]

It would therefore seem that its certainly an ffmpeg issue. I'm using AreaScout's branch, and so my dvdplayer is actually using a fairly recent FFmpeg. I guess i'll seek help on their boards.
Reply
#4
Thumbs Up 
Giving this its own thread.

Here's a patch for XBMC to allow the high quality h264 streams to be opened. It is EXTREMELY hacky, and it's the same as it's been for the last 3 weeks due to various issues.

Really needs an flv guru to have a look over it, the rtmp timestamps that the BBC sends are bizarre - they seem to cycle over a sequence of the same numbers (48, 46, 45, 42, 38, . . .) and seem to have no real meaning. I've tried alsorts with them, does anyone know where to regenerate these from? I *think* that this is the reason for the framerate and sync issues on the video. I've taken a look over the FLV file specification and its got no real mention of it, however if I convert this file into MP4 it plays perfectly.

If you're not really sure whether you can help with the framerate stuff then to be honest i'd not bother downloading this particular release yet.


http://mail.overplayx.com/iplayer.zip

Slightly modified Plugin is here... http://mail.overplayx.com/iplayer-h264plugin.zip
Reply
#5
Hello,

a good option would be to automatically disable stack if any of these Plugins are called (BBc iPlayer & ITV) as you are not able to play the streams if activated.

I tried your modified Plugin last night quickly on a 30.12.08 T3ch (Xbox Hardware) build and it did not play any streams (stack disabled) with any of the players.

I will upload a log file over the weekend
Reply
#6
Yes, I'm pretty sure it's not at all usable in its current state, you should however get *something* to see (i.e. perfect audio but video with sync issues) Uncertain why you're not... perhaps try SVN version 16937 (which this was diffed against).

Anyway... the point of this is mostly to ask for assistance with FLV's containing h.264. I'm well aware that its a bad idea, and that f4v should be used for this purpose, however!
Reply
#7
Please submit as a new ticket to trac:
http://trac.xbmc.org/

Thanks Wink
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

Logout Mark Read Team Forum Stats Members Help
[PATCH] BBC iPlayer HQ streams patch for XBMC + slightly modified iPlayer plugin1