2013-09-09, 20:41
(2013-09-08, 01:00)dhead Wrote:(2013-09-02, 20:19)traflaz Wrote: ...
So far, by snooping around the iplayer plugin code, I was able to dynamically generate a "iplayer.m3u8" playlist with php. As far as I can tell, the link I generate and the one created by the iplayer plugin is the same (except the authorization code thing of course).
But... it doesn't work. And I don't know why, I'm stuck.
My "main" playlist:
Code:#EXTM3U
#EXTINF:-1 tvg-shift=0 tvg-id="I56.2080.microsoft.com" tvg-name="BBC_One" tvg-logo="bbc_one" group-title="UK",BBC One
http://192.168.1.120/iplayer.m3u8
#EXTINF:-1 tvg-shift=0 tvg-id="I2.751869.microsoft.com" tvg-name="France_3" tvg-logo="france3" group-title="France",France 3
mms://wm.live.tv-radio.com/bouygues/all/channel2.wmv
#EXTINF:-1 tvg-shift=0 tvg-id="I40.751873.microsoft.com" tvg-name="i_Télé" tvg-logo="i_tele" group-title="France",i>Télé
http://chunk-output-1.live.tv-radio.com/canalplus/android/index/1200/02.m3u8
...
Tested with my own updated Gotham build on Linux that compiled with FFMPEG 2.0.1 (somehow I believed I had version 1.2).
The first stream doesn't work, the other two working flawlessly, I've used the m3u playlist as you provided with no changes.
Just to make sure I was playing the last stream (Télé) over 20 minutes and had no issue.
Yeah, the first one shouldn't work for you. That link points to my sever, on my own LAN.
The last one, iTélé, is what I had in mind when I started this. But now I think I see the difference. In the debug log, you can see that ffmpeg takes care of it because of the mime-type passed (hls,applehttp and tsmpeg).... I think.
Code:
14:37:21 T:3740 DEBUG: PVRManager - PVR::CPVRManager::OpenLiveStream - opening live stream on channel 'i>Télé'
14:37:21 T:3740 DEBUG: opening live stream on url 'http://chunk-output-1.live.tv-radio.com/canalplus/android/index/1200/02.m3u8'
14:37:21 T:3740 DEBUG: PVRFile - XFILE::CPVRFile::Open - playback has started on filename pvr://channels/tv/All TV channels/10.pvr
14:37:21 T:3740 DEBUG: CDVDInputStreamPVRManager::Open - stream opened: http://chunk-output-1.live.tv-radio.com/canalplus/android/index/1200/02.m3u8
14:37:21 T:3740 NOTICE: Creating Demuxer
14:37:21 T:3740 DEBUG: ffmpeg[E9C]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
14:37:21 T:4396 DEBUG: Previous line repeats 1 times.
14:37:21 T:4396 DEBUG: ------ Window Init (DialogBusy.xml) ------
14:37:21 T:3740 DEBUG: ffmpeg[E9C]: Using network protocols without global network initialization. Please use avformat_network_init(), this will become mandatory later.
14:37:21 T:3740 DEBUG: Previous line repeats 1 times.
14:37:21 T:3740 DEBUG: ffmpeg[E9C]: [h264] Current profile doesn't provide more RBSP data in PPS, skipping
14:37:22 T:3740 DEBUG: ffmpeg[E9C]: [mpegts] Estimating duration from bitrate, this may be inaccurate
14:37:22 T:3740 DEBUG: CDVDDemuxFFmpeg::Open - avformat_find_stream_info starting
14:37:22 T:3740 DEBUG: ffmpeg[E9C]: [hls,applehttp] Estimating duration from bitrate, this may be inaccurate
14:37:22 T:3740 DEBUG: CDVDDemuxFFmpeg::Open - av_find_stream_info finished
14:37:22 T:3740 INFO: ffmpeg[E9C]: Input #0, hls,applehttp, from 'http://chunk-output-1.live.tv-radio.com/canalplus/android/index/1200/02.m3u8':
14:37:22 T:3740 INFO: ffmpeg[E9C]: Duration: 00:00:00.14, start: 10682.791422, bitrate: 38 kb/s
14:37:22 T:3740 INFO: ffmpeg[E9C]: Program 0
14:37:22 T:3740 INFO: ffmpeg[E9C]: Metadata:
14:37:22 T:3740 INFO: ffmpeg[E9C]: variant_bitrate : 0
14:37:22 T:3740 INFO: ffmpeg[E9C]: Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuvj420p, 480x270 [SAR 86:85 DAR 1376:765], 25 tbr, 90k tbn, 180k tbc
14:37:22 T:3740 INFO: ffmpeg[E9C]: Stream #0:1: Audio: aac ([15][0][0][0] / 0x000F), 32000 Hz, stereo, fltp, 39 kb/s
Whereas in my case, it doesn't check. It seems like it just tries to open "iplayer.m3u8" as a video, which of course doesn't work. Also, the iTélé example is passing several segmented ts files, whereas I wanted to pass a single swf type link.
So close, yet so far....
I haven't tried with ffmpeg 2.0. Do you know if there's a windows build available somewhere? My testing machine is win7, and I don't want to mess with my xbmcbuntu setup.