Jump to content

LiveTv and m3u8 : what am I missing ?


Recommended Posts

Posted

Hello everyone,

I am wondering if I am missing something when it comes to use m3u8 playlist file with IPTV.

So I have one M3U file which contains :

 

Quote

#EXTM3U

#EXTINF:10.000000,TVG-ID="TF1" tvg-name="TF1" tvg-logo="http://example.com/channel1.png" group-title="Generaliste",TF1

https://raw.githubusercontent.com/Paradise-91/ParaTV/main/streams/tf1plus/tf1.m3u8

#EXTINF:10.000000,TVG-ID="France2" tvg-name="France2" tvg-logo="http://example.com/channel1.png" group-title="Generaliste",France2
https://raw.githubusercontent.com/Paradise-91/ParaTV/main/streams/francetv/france2.m3u8

 

Which does not work with emby but works perfectly fine with VLC. However, if I attached the data from those m3u8 files within the m3u to have something like (I removed the URL to make it easier to read, you can see the code from the github link) :

#EXTM3U
#EXT-X-VERSION:6
#EXT-X-INDEPENDENT-SEGMENTS
#EXTINF:10.000000,TVG-ID="TF1" tvg-name="TF1" tvg-logo="http://example.com/channel1.png" group-title="Generaliste",TF1
#EXT-X-STREAM-INF:BANDWIDTH=3193080,AVERAGE-BANDWIDTH=2891350,RESOLUTION=1280x720,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2",SUBTITLES="subtitles",AUDIO="audio_0"
https://***/index_1.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=2207480,AVERAGE-BANDWIDTH=2011350,RESOLUTION=1024x576,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2",SUBTITLES="subtitles",AUDIO="audio_0"
https://***/index_2.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1591506,AVERAGE-BANDWIDTH=1461385,RESOLUTION=1024x576,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2",SUBTITLES="subtitles",AUDIO="audio_0"
https://***/index_3.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=1098706,AVERAGE-BANDWIDTH=1021385,RESOLUTION=640x360,FRAME-RATE=25.000,CODECS="avc1.42C01E,mp4a.40.2",SUBTITLES="subtitles",AUDIO="audio_0"
https://***/index_4.m3u8
#EXT-X-STREAM-INF:BANDWIDTH=605906,AVERAGE-BANDWIDTH=581385,RESOLUTION=416x234,FRAME-RATE=25.000,CODECS="avc1.42C00D,mp4a.40.2",SUBTITLES="subtitles",AUDIO="audio_0"
https://***/index_5.m3u8
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_0",CHANNELS="2",NAME="fra",LANGUAGE="fra",DEFAULT=YES,AUTOSELECT=YES,URI="https://***/index_12_0.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_0",CHANNELS="2",NAME="mul",LANGUAGE="mul",DEFAULT=NO,AUTOSELECT=NO,URI="https://***/index_13_0.m3u8"
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_0",CHANNELS="2",NAME="sme",LANGUAGE="sme",DEFAULT=NO,AUTOSELECT=NO,URI="https://***/index_14_0.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subtitles",NAME="no subtitles",DEFAULT=YES,AUTOSELECT=YES,FORCED=NO,LANGUAGE="mul",URI="https://***/index_9_0.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subtitles",NAME="Sourds et malentendant",DEFAULT=NO,AUTOSELECT=NO,FORCED=NO,LANGUAGE="sme",URI="https://***/index_10_0.m3u8"
#EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subtitles",NAME="français",DEFAULT=NO,AUTOSELECT=NO,FORCED=NO,LANGUAGE="fra",URI="https://***/index_11_0.m3u8"


Then it works partially : I receive the video data but not the audio. Even after cleaning the input to have something like this (again working for VLC) :
 

#EXTINF:0 tvg-country="FR" tvg-logo="https://w7.pngwing.com/pngs/652/689/png-transparent-france-tf1-group-logo-television-france-purple-television-angle.png" group-title="Généraliste",TF1_Test
#EXT-X-STREAM-INF:BANDWIDTH=3193080,AVERAGE-BANDWIDTH=2891350,RESOLUTION=1280x720,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2",AUDIO="audio_0"
https://***/index_1.m3u8
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_0",CHANNELS="2",NAME="fra",LANGUAGE="fra",DEFAULT=YES,AUTOSELECT=YES,URI="https://***/index_12_0.m3u8"

I am still having the same issue.

Am I missing something ? Or Emby does not support multiple stream ?

 

Posted

You are absolutely right, I forgot to bring the logs with me. So :

The logs with this m3u :

#EXTM3U
#EXTINF:10.000000,TVG-ID="TF1" tvg-name="TF1" tvg-logo="http://example.com/channel1.png" group-title="Generaliste",TF1
https://raw.githubusercontent.com/Paradise-91/ParaTV/main/streams/tf1plus/tf1.m3u8

are the on in ffmpeg-transcode-b0a3f68a-d38b-4bc9-9ef7-8e352cd44772_1.txt

 

and the one with this m3u :
 

#EXTINF:0 tvg-country="FR" tvg-logo="https://w7.pngwing.com/pngs/652/689/png-transparent-france-tf1-group-logo-television-france-purple-television-angle.png" group-title="Généraliste",TF1_Test
#EXT-X-STREAM-INF:BANDWIDTH=3193080,AVERAGE-BANDWIDTH=2891350,RESOLUTION=1280x720,FRAME-RATE=25.000,CODECS="avc1.4D401F,mp4a.40.2",AUDIO="audio_0"
https://***/index_1.m3u8
#EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio_0",CHANNELS="2",NAME="fra",LANGUAGE="fra",DEFAULT=YES,AUTOSELECT=YES,URI="https://***/index_12_0.m3u8"

are in ffmpeg-transcode-ce535e44-dff4-4bf2-9826-76b58c7c0a58_1.txt.

With the first file I have a black screen (no error messages) while with the second one I have the video flux but no audio.

I hope it those logs are ok :)

ffmpeg-transcode-b0a3f68a-d38b-4bc9-9ef7-8e352cd44772_1.txt ffmpeg-transcode-ce535e44-dff4-4bf2-9826-76b58c7c0a58_1.txt ffmpeg-remux-f3a0c126-b094-48f3-ad3a-8682dffa5ca2_1.txt

Posted

Sorry to bump on this topic but is something very obvious that I am missing ?

  • 4 weeks later...
Posted

Hi, have you updated to Emby Server 4.8.10? Has that helped?

Posted

Hello Luke,

Thank you for the answer :) Yes, I switch to 4.8.10 recently and I still experience the same issue. But I think actually I can simplify my question : can I use m3u8 files for Iptv ?

I will give a real example :

If I take a look at this github page
    https://github.c*m/iptv-org/iptv/blob/master/streams/fr.m3u
I can see this line :
 

#EXTINF:-1 tvg-id="TF1.fr",TF1 (720p) [Geo-blocked]
https://raw.githubusercontent.c*m/Paradise-91/ParaTV/main/streams/tf1plus/tf1.m3u8


I added this entry as is to m3u file but when I click on the channel, I have a black screen and after a while I got the following error message :

"Playback Error

No compatible streams are currently available. Please try again later or contact your system administrator for details.

"

(Logs in first_case.zip )

However, if I edit the same tf1.m3u8 and copy data from it to  paste it to my m3u file like this :

#EXTINF:0 tvg-country="FR" tvg-logo="" group-title="Généraliste",TF1_test2
https://live-tf1-hls.cdn-0.diff.tf1.f*/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaXAiOiI4Mi42NC4yMTAuNjQiLCJjbWNkIjoiIiwiZXhwIjoxNzI4NjE2NzkxLCJnaWQiOiIwNDZiOTUyMy03MDdkLTQ3NjMtODFjNi1lNDM1NTQxMjE3ZDUiLCJpYXQiOjE3Mjg2MDIzOTEsImlzcyI6ImRlbGl2ZXJ5IiwibWF4YiI6MCwic3RlbSI6Ii9vdXQvdjEvNzgwNTQyZjUxNmYxNDNmYzhhZDliZjE0NjIyMzE2ZTcvdGYxLWNtYWYiLCJzdWIiOiIwNDZiOTUyMy03MDdkLTQ3NjMtODFjNi1lNDM1NTQxMjE3ZDUifQ.-Im0wpeCjuMbQ9IQfX66aBm8oYbBeWqcg-vDFxNVr3c/out/v1/780542f516f143fc8ad9bf14622316e7/tf1-cmaf/index_1.m3u8

I can see the video stream ( the url is the first  #EXT-X-STREAM-INF:BANDWIDTH instance of tf1.m3u8 ).

And if I use this line :

#EXTINF:0 tvg-country="FR" tvg-logo="" group-title="Généraliste",TF1_test2
https://live-tf1-hls.cdn-0.diff.tf1.f*/eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjaXAiOiI4Mi42NC4yMTAuNjQiLCJjbWNkIjoiIiwiZXhwIjoxNzI4NjE2NzkxLCJnaWQiOiIwNDZiOTUyMy03MDdkLTQ3NjMtODFjNi1lNDM1NTQxMjE3ZDUiLCJpYXQiOjE3Mjg2MDIzOTEsImlzcyI6ImRlbGl2ZXJ5IiwibWF4YiI6MCwic3RlbSI6Ii9vdXQvdjEvNzgwNTQyZjUxNmYxNDNmYzhhZDliZjE0NjIyMzE2ZTcvdGYxLWNtYWYiLCJzdWIiOiIwNDZiOTUyMy03MDdkLTQ3NjMtODFjNi1lNDM1NTQxMjE3ZDUifQ.-Im0wpeCjuMbQ9IQfX66aBm8oYbBeWqcg-vDFxNVr3c/out/v1/780542f516f143fc8ad9bf14622316e7/tf1-cmaf/index_14_0.m3u8

I get the audio stream of the channel  ( the url used is the first #EXT-X-MEDIA:TYPE=AUDIO instance of tf1.m3u8) 

Logs can be seen in second_case.zip.

 

But no matter what I try, I cannot both both audio and video stream. Am I doing something wrong or it is just not possible to use m3u8 file with multiple streams ?

first_case.zip second_case.zip

Posted

Hi,

Try checking to see if the stream works before adding to Emby.
VLC is good for this.

Use the Media/Open network stream menu option.  Here is the result I get on your URL

image.png

Posted

Thank you Carlo,

I already opened this M3U file with VLC :

 

#EXTM3U
#EXTINF:-1 tvg-id="TF1.fr",TF1 (720p) [Geo-blocked]
https://raw.githubusercontent.c*m/Paradise-91/ParaTV/main/streams/tf1plus/tf1.m3u8

It worked and still works perfectly on my side with VLC , screenshot attached. I will add that both video and audio are working :)  You can't open it maybe because it Geo-Blocked ?


 

Screenshot from 2024-10-11 17-57-12.jpg

Posted

I do see lots of errors in the log with bad URIs.
It looks like this channel might be redirected to another URI that is denied access

    22:14:04.985 ffmpeg version 5.1-emby_2023_06_25 Copyright (c) 2000-2022 the FFmpeg developers and softworkz for Emby LLC
    22:14:04.985   built with gcc 10.3.0 (crosstool-NG 1.25.0)
    22:14:04.985 Execution Date: 2024-10-10 22:14:04
    22:14:05.018 [hls @ 0x329d64c0] Opening 'https://simulcast-p.ftven.fr/ZXhwPTE3Mjg2MjM5MDd+YWNsPSUyZip+aG1hYz1lOTU4ODdiNzUwYWMxOTM2M2FiNDYzOTVjM2E4YThlNzEwYTI5NzVlYTQ3NzI0YjY0ZGMyODAwNTEyYjJmZmNi/simulcast/France_2/hls_fr2/France_2-mp4a_96000_fra=20000.m3u8' for reading
    22:14:05.109 [https @ 0x32a09780] HTTP error 403 Forbidden
    22:14:05.109 [hls @ 0x329d64c0] parse_playlist error Server returned 403 Forbidden (access denied) [https://simulcast-p.ftven.fr/ZXhwPTE3Mjg2MjM5MDd+YWNsPSUyZip+aG1hYz1lOTU4ODdiNzUwYWMxOTM2M2FiNDYzOTVjM2E4YThlNzEwYTI5NzVlYTQ3NzI0YjY0ZGMyODAwNTEyYjJmZmNi/simulcast/France_2/hls_fr2/France_2-mp4a_96000_fra=20000.m3u8]
    22:14:05.109 [hls @ 0x329d64c0] Opening 'https://simulcast-p.ftven.fr/ZXhwPTE3Mjg2MjM5MDd+YWNsPSUyZip+aG1hYz1lOTU4ODdiNzUwYWMxOTM2M2FiNDYzOTVjM2E4YThlNzEwYTI5NzVlYTQ3NzI0YjY0ZGMyODAwNTEyYjJmZmNi/simulcast/France_2/hls_fr2/France_2-mp4a_96000_qaa=20002.m3u8' for reading
    22:14:05.212 [https @ 0x32a17c40] HTTP error 403 Forbidden
    22:14:05.213 [hls @ 0x329d64c0] parse_playlist error Server returned 403 Forbidden (access denied) [https://simulcast-p.ftven.fr/ZXhwPTE3Mjg2MjM5MDd+YWNsPSUyZip+aG1hYz1lOTU4ODdiNzUwYWMxOTM2M2FiNDYzOTVjM2E4YThlNzEwYTI5NzVlYTQ3NzI0YjY0ZGMyODAwNTEyYjJmZmNi/simulcast/France_2/hls_fr2/France_2-mp4a_96000_qaa=20002.m3u8]
    22:14:05.213 [hls @ 0x329d64c0] Opening 'https://simulcast-p.ftven.fr/ZXhwPTE3Mjg2MjM5MDd+YWNsPSUyZip+aG1hYz1lOTU4ODdiNzUwYWMxOTM2M2FiNDYzOTVjM2E4YThlNzEwYTI5NzVlYTQ3NzI0YjY0ZGMyODAwNTEyYjJmZmNi/simulcast/France_2/hls_fr2/France_2-mp4a_96000_qad_DESC=20001.m3u8' for reading
    22:14:05.320 [https @ 0x32a14f40] HTTP error 403 Forbidden
    22:14:05.320 [hls @ 0x329d64c0] parse_playlist error Server returned 403 Forbidden (access denied) [https://simulcast-p.ftven.fr/ZXhwPTE3Mjg2MjM5MDd+YWNsPSUyZip+aG1hYz1lOTU4ODdiNzUwYWMxOTM2M2FiNDYzOTVjM2E4YThlNzEwYTI5NzVlYTQ3NzI0YjY0ZGMyODAwNTEyYjJmZmNi/simulcast/France_2/hls_fr2/France_2-mp4a_96000_qad_DESC=20001.m3u8]
    22:14:05.320 [hls @ 0x329d64c0] Opening 'https://simulcast-p.ftven.fr/ZXhwPTE3Mjg2MjM5MDd+YWNsPSUyZip+aG1hYz1lOTU4ODdiNzUwYWMxOTM2M2FiNDYzOTVjM2E4YThlNzEwYTI5NzVlYTQ3NzI0YjY0ZGMyODAwNTEyYjJmZmNi/simulcast/France_2/hls_fr2/France_2-dfxp_10000_fra_CAPT=30001.m3u8' for reading
    22:14:05.408 [https @ 0x32a16440] HTTP error 403 Forbidden
    22:14:05.408 [hls @ 0x329d64c0] parse_playlist error Server returned 403 Forbidden (access denied) [https://simulcast-p.ftven.fr/ZXhwPTE3Mjg2MjM5MDd+YWNsPSUyZip+aG1hYz1lOTU4ODdiNzUwYWMxOTM2M2FiNDYzOTVjM2E4YThlNzEwYTI5NzVlYTQ3NzI0YjY0ZGMyODAwNTEyYjJmZmNi/simulcast/France_2/hls_fr2/France_2-dfxp_10000_fra_CAPT=30001.m3u8]

What happens if you don't use Firefox but instead use an Emby client such as Theater?
 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...