PDA

View Full Version : BBC iPlayer HQ stream


motd2k
2008-12-12, 23:21
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...

21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket, received: video 2486 bytes
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket, received: audio 251 bytes
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket, received: audio 265 bytes
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket, received: video 649 bytes
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket, received: audio 313 bytes
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket, received: audio 308 bytes
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket
21:16:50 T:2974808976 M:336015360 DEBUG: GetNextMediaPacket, received: video 3028 bytes
21:16:50 T:2974808976 M:336015360 DEBUG: Open - av_find_stream_info starting
21:16:50 T:2974808976 M:336015360 INFO: ffmpeg: [flv] Could not find codec parameters (Video: h264)
21:16:50 T:2974808976 M:336015360 INFO: ffmpeg: [flv] Could not find codec parameters (Audio: 0x0000, 44100 Hz, 0 channels)
21:16:50 T:2974808976 M:336015360 WARNING: could not find codec parameters for rtmp://bbciplayertokfs.fplive.net:1935/bbciplayertok?authString=547d62bda5077a91848f4274f d520187&slist=mp4:b000fvd1fH26499716584
21:16:50 T:2974808976 M:336015360 ERROR: OpenDemuxStream - Error creating demuxer
21:16:50 T:2974808976 M:336015360 NOTICE: CDVDPlayer::OnExit()
21:16:50 T:2974808976 M:336015360 NOTICE: CDVDPlayer::OnExit() deleting input stream
21:16:50 T:2974808976 M:336015360 DEBUG: Playback was stopped

It would appear that ffmpeg is choking on the audio, anyone have any suggestions?

frosty
2008-12-14, 17:26
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/video_file_format_spec_v9.pdf

motd2k
2008-12-15, 14:27
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.