Closed Forage closed 4 years ago
I suppose it's related to https://github.com/willforde/script.module.codequick/issues/3
Hi @Forage,
I verified we don't manipulate m3u8 for FranceTv channel (some other channels it happens to manipulate the m3u8 file)
During my checks I don't find any replay (catch-up) with multi language for France TV (France 2, France 3, ..). Do you have an exemple to check? Maybe we need to look into codequick for your question.
Meanwhile, with the live TV we have multi language for France TV channels (France 2, France 3, ..) and we can watch foreing movie with original language.
With @SylvainCecchetto we worked to use PVR IPTV SImple for Live TV. In this case the PVR IPTV Simple don't propose all language ... something we need to ask also to see if we can manage to keep all languages like in the plugin. after a new test it is working like the plugin
An example available now would be "France 3 / series-et-fictions / Happy Valley", it provides 3 audio streams. master.m3u8.txt
I tested this m3u8 file on VLC we have just one French channel. My test on the plugin is just one french channel also. And I confirm the m3u8 file play directly on kodi you have access to more language channels ....
It will be very good if we can manage to fix that. Maybe in Kodi side because we pass all language see the log below. In kodi side we might don't use the same code if we read directly the m3u8 and throught the plugin in this case. Hi @willforde, do you know why we have this different behaviour to play a m3u8 file?
The m3u8 file of the live tv might be different also ...
2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Input #0, hls,applehttp, from 'http://replayftv-vh.akamaihd.net/i/streaming-adaptatif_france-dom-tom/2019/S12/J4/200887545-5c940a03b3959-,standard1,standard2,standard3,standard4,standard5,qaa,qad,.mp4.csmil/master.m3u8?caption=%2F2019%2F03%2F21%2F%2F200887545-5c940a03b3959-1553206683.m3u8%3Afra%3AFrancais&audiotrack=0%3Afra%3AFrancais%2C5%3Aqaa%3AVersion+Originale+%28VO%29%2C6%3Aqad%3AAudio+Description+%28AD%29': 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Duration: 00:58:54.12, start: 0.100667, bitrate: 0 kb/s 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Program 0 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 205000 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Stream #0:0: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 256x144 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 205000 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 205000 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Program 1 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 327000 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Stream #0:2: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 320x180 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 327000 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Stream #0:3: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 327000 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Program 2 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 608000 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Stream #0:4: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p, 512x288 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 608000 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Stream #0:5: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 608000 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Program 3 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.987 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 870000 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Stream #0:6: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 704x396 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 870000 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Stream #0:7: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 870000 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Program 4 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 1521000 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Stream #0:8: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p, 1024x576 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 1521000 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Stream #0:9: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 1521000 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Program 5 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 189000 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Stream #0:10: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 189000 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Program 6 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 189000 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Stream #0:11: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: Metadata: 2019-03-23 18:09:32.988 T:2524 INFO: ffmpeg[9DC]: variant_bitrate : 189000 2019-03-23 18:09:32.988 T:2524 DEBUG: CDVDDemuxFFmpeg::AddStream ID: 8 2019-03-23 18:09:32.988 T:2524 DEBUG: CDVDDemuxFFmpeg::AddStream ID: 9 2019-03-23 18:09:32.998 T:2524 DEBUG: CDVDDemuxFFmpeg::SeekTime - unknown position after seek 2019-03-23 18:09:32.999 T:2524 NOTICE: Opening stream: 8 source: 256 2019-03-23 18:09:33.000 T:2524 NOTICE: Creating video codec with codec id: 27 2019-03-23 18:09:33.000 T:2524 NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 2019-03-23 18:09:33.000 T:2524 DEBUG: CDVDVideoCodecFFmpeg - Updated codec: ff-h264 2019-03-23 18:09:33.000 T:2524 DEBUG: CVideoPlayerVideo::OpenStream - open stream with codec id: 27 2019-03-23 18:09:33.000 T:2524 NOTICE: Creating video thread 2019-03-23 18:09:33.000 T:15540 DEBUG: Thread VideoPlayerVideo start, auto delete: false 2019-03-23 18:09:33.000 T:15540 NOTICE: running thread: video_thread 2019-03-23 18:09:33.000 T:15540 DEBUG: CVideoPlayerVideo - CDVDMsg::GENERAL_PAUSE: 0 2019-03-23 18:09:33.039 T:2524 NOTICE: Opening stream: 9 source: 256 2019-03-23 18:09:33.039 T:2524 NOTICE: Finding audio codec for: 86018 2019-03-23 18:09:33.040 T:2524 NOTICE: CDVDAudioCodecFFmpeg::Open() Successful opened audio decoder aac 2019-03-23 18:09:33.040 T:2524 NOTICE: Creating audio thread 2019-03-23 18:09:33.041 T:2524 DEBUG: CVideoPlayer::SetCaching - caching state 2 2019-03-23 18:09:33.041 T:2524 DEBUG: CDVDClock::SetSpeedAdjust - adjusted:0.000000 2019-03-23 18:09:33.041 T:3092 DEBUG: Thread VideoPlayerAudio start, auto delete: false 2019-03-23 18:09:33.042 T:3092 NOTICE: running thread: CVideoPlayerAudio::Process()
or maybe the parameter after the *.m3u8 "?caption=%2F2019%2F03%2F21%2F%2F200887545-5c940a03b3959-1553206683.m3u8%3Afra%3AFrancais&audiotrack=0%3Afra%3AFrancais%2C5%3Aqaa%3AVersion+Originale+%28VO%29%2C6%3Aqad%3AAudio+Description+%28AD%29'" forced to play just one channel language ...
I've noticed that the additional streams don't show up in VLC, if you play the same m3u8 file in a different player like Totem you do get to see and select them all. It's therefore a player issue, not file.
I assume that the additional URL parameter is only for the webplayer. It provides proper labels for the streams to select.
I'm not really sure, But I can look into it when I get the chance, bit busy at the moment. Do you have a m3u8 link that I can use for testing, the link above comes up with Access Denied when I click on it.
here: https://github.com/Catch-up-TV-and-More/plugin.video.catchuptvandmore/files/2999601/master.m3u8.txt
This content is geolocalized (to France).
Thank you !
I have made some changes recently in the master branch of codequick, thanks to @SylvainCecchetto. You can now pass in a url to item.set_callback
and have it be treated as a folder. This might be the sulution to the m3u8 problem.
item.set_callback("https://www.freeiptvplaylist.com/m3u/uk-freeiptvplaylist-com-06-04-19.m3u", is_folder=True)
Hi @willforde, Thank you for all changes done with @SylvainCecchetto !
I have a question about item.set_callback, I'm not sure if we set is_folder=true can help with his issue. With the version 0.9.8 of codequick we can have multi languages for Live TV of France TV (France 2, France 3, ....) meanwhile some catch-up tv have also multi languages (in the m3u8) but Kodi (or codequick) can't permit to have access other language.
Before we used codequick, I don't see any catch-up tv with multi languages for France TV.
We have another case of 6play (M6, ....). There is some catch-up TV with multi languages. In this case we have access to other languages.
So I think It is related to m3u8 file but don't know if the issue is on CU TV & More / Codequick / Kodi ...
Thanks, Wwark.
@wwark, can you clarify what the difference is between:
In case of the second one we are dealing with a m8u8 URL. What is provided in the other two cases?
Thanks, Wwark
So you are saying that at the moment, some m3u8 URLs work, providing multiple audio streams selectable in Kodi, and some m3u8 URLs do not work, even though they include multiple audio streams?
Yes. In this ticket, the Replay from France TV with multiple Audio stream, we have two cases:
So I think maybe Kodi don't call the same code (or implementation) in these two cases or CodeQuick don't call the same way for Replay and Live TV (It will be wierd) or something in our code ...
So my question, do you think there is some differences on listitem (contains playable item) in codequick to play content. Also the m3u8 file are different so ...
Extract of live TV France TV (m3u8) file
France_2-video=118000.m3u8
France_2-video=240000.m3u8
France_2-video=512000.m3u8
France_2-video=768000.m3u8
France_2-video=1404000.m3u8
Extract of Replay France TV (m3u8) file
I everybody, I just trying to reproduce this issue, but I was not able to find the bug.
With Catch-Up TV & More I selected Catch-Up TV --> France --> France 3 --> Séries et fictions --> Brokenwood --> Replay --> Brokenwood - Comme un oiseau en cage
.
Video starts with French audio by default for me, the I was able to do Settings --> Toggle audio stream
and mode from fr
to en
and the audio is now in English.
Do I miss something?
Test was made on Kodi 18.5 with Catch-UP TV & More 0.2.17
It is ok on my side on Kodi 18.5. It is good ! @Forage it is ok on your side ? We can close this ticket if it is the case.
While it was harder to find, lots of series are no longer available even though they are still listed, there are still issues with some.
Works: France 3 / séries & fictions / Brokenwood Broken: TF1 / Séries & Fictions / Emergence
ok I checked Emergence. It is a DRM content and we used the inputstream adaptive to play the content. The mdp get have two audio streams but FRA stream for both. I attached the MDP to share it 13693638.zip.
It is different from France 3 (not DRM content using the internal player of Kodi). The previous checked are just for France TV on my side. This one seems fixed.
I think the next versions of inputstream adaptive can help to have more audio stream for Emergence but maybe if the MPD or m3u8 changed kodi need to implement these changes. It means kodi might be able to play them or not ....
OK, I picked a bad example. Too bad the original tested series are no longer available. I'll dig a bit deeper tomorrow to see if I can find a non-DRM stream that does not work like the last time.
I tried all foreign series that were still available on different channels and they all worked for those who had multiple steams available in the first place. I suppose we can consider this bug fixed.
Perfect! Thank you very munch for this complete test 👍
Multiple channels, like France 2, 3, etc. provide multiple audio streams for a given video. This provides means to see e.g. an English series in "version originale" instead of French.
Kodi itself is able to deal with multiple audio streams in m3u8 files. If I manually download a France 3 m3u8 file of an English series and I play it directly by Kodi I can select the different audio streams in the UI. When watching the same series through this add-on I do not have the option, even though it downloads exactly the same m3u8 file.
If there some conversion/extraction taking place between get_video_url() and the actually playback when using the add-on or are we dealing with some shortcoming of Kodi?