Http stream --ignore-content-length
#16
(2020-08-23, 21:38)phunkyfish Wrote: It be easier if you provide the M3U entry that you used to test it with inputstream.ffmpeg.

I don't understand what you mean, the M3U was made by me, they are local addresses.

Code:
#EXTM3U
#EXTINF:-1,126 TV5MONDE EUROPE
http://192.168.2.2:1234/338_0_1788_22000...5_615_2.ts
#EXTINF:-1,127 Bloomberg Europe
http://192.168.2.2:1234/339_0_1847_22000..._1360_2.ts
#EXTINF:-1,128 Sky News Intl
http://192.168.2.2:1234/340_0_2004_22000..._1290_2.ts
#EXTINF:-1,129 PC JERO
http://192.168.2.138:1500
Reply
#17
That is a standard m3u file.   Perhaps you missed  the example m3u item @phunkyfish posted here https://forum.kodi.tv/showthread.php?tid...pid2972271  The documentation on how to use the #KODIPROP commands  is here https://github.com/xbmc/inputstream.ffmpegdirect 

Again this is in Matrix on Leia.

Martin
Reply
#18
@emveepee means inputstream.ffmpegdirect will only work on kodi Matrix.

Here is a M3U file you could test with based on your own file:

Code:

#EXTM3U
#KODIPROP:inputstream=inputstream.ffmpegdirect
#KODIPROP:mimetype=video/mp2t
#KODIPROP:inputstream.ffmpegdirect.is_realtime_stream=true
#KODIPROP:inputstream.ffmpegdirect.open_mode=ffmpeg
#EXTINF:-1,126 TV5MONDE EUROPE Ffmpeg
http://192.168.2.2:1234/338_0_1788_22000...5_615_2.ts
#KODIPROP:inputstream=inputstream.ffmpegdirect
#KODIPROP:mimetype=video/mp2t
#KODIPROP:inputstream.ffmpegdirect.is_realtime_stream=true
#KODIPROP:inputstream.ffmpegdirect.open_mode=curl
#EXTINF:-1,126 TV5MONDE EUROPE Curl
http://192.168.2.2:1234/338_0_1788_22000...5_615_2.ts

​​​​​​​See if either of those entries playback correctly. Remember you can only do this on Kodi Matrix.
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply
#19
(2020-08-23, 18:39)emveepee Wrote: What I meant is did you add all the required #KODIPROP values in the m3u?

Martin
Sorry I didn't see it before

 
(2020-08-24, 08:50)phunkyfish Wrote: @emveepee means inputstream.ffmpegdirect will only work on kodi Matrix.

Here is a M3U file you could test with based on your own file:

Code:

#EXTM3U
#KODIPROP:inputstream=inputstream.ffmpegdirect
#KODIPROP:mimetype=video/mp2t
#KODIPROP:inputstream.ffmpegdirect.is_realtime_stream=true
#KODIPROP:inputstream.ffmpegdirect.open_mode=ffmpeg
#EXTINF:-1,126 TV5MONDE EUROPE Ffmpeg
http://192.168.2.2:1234/338_0_1788_22000...5_615_2.ts
#KODIPROP:inputstream=inputstream.ffmpegdirect
#KODIPROP:mimetype=video/mp2t
#KODIPROP:inputstream.ffmpegdirect.is_realtime_stream=true
#KODIPROP:inputstream.ffmpegdirect.open_mode=curl
#EXTINF:-1,126 TV5MONDE EUROPE Curl
http://192.168.2.2:1234/338_0_1788_22000...5_615_2.ts

​​​​​​​See if either of those entries playback correctly. Remember you can only do this on Kodi Matrix.
Tested and still prematurely ending streaming on both Rolleyes
Reply
#20
Code:
--ffmpeg--

GET / HTTP/1.1
User-Agent: Kodi/19.0-ALPHA1 (Linux; Android 5.1.1; Orion R68G Build/LMY48Y) Android/5.1.1 Sys_CPU/aarch64 App_Bitness/32 Version/19.0-ALPHA1-(18.9.701)-Git:20200726-db40b2ade4
Accept: */*
Range: bytes=0-
Connection: close
Host: 192.168.2.138:1500
Icy-MetaData: 1

HTTP/1.1 200 Ok
Server: mini_httpd/1.19 19dec2003
Content-Type: text/plain; charset=iso-8859-1
Content-Length: 10096000
Connection: close

G.-....8W...s\..Q6.
..3`.:on.. .......D..U.p.-....d.6..;.....]........'..zU....dE..n..n.*Tf...E.....~.....Fg)`..K..U.|=....B..A.x_.7.s#...n.ch....O.........-N.".VF..|.x".fNM....f...A.p.QK.G.-..3.>-B..o....y...Ud..b....x..Y.0s0.....Z..qN..mt..kiR8.G..t#.N.*.!..o.





--Curl--

GET / HTTP/1.1
Host: 192.168.2.138:1500
Range: bytes=0-
User-Agent: Kodi/19.0-ALPHA1 (Linux; Android 5.1.1; Orion R68G Build/LMY48Y) Android/5.1.1 Sys_CPU/aarch64 App_Bitness/32 Version/19.0-ALPHA1-(18.9.701)-Git:20200726-db40b2ade4
Accept: */*
Accept-Encoding: deflate, gzip
Connection: Upgrade, HTTP2-Settings
Upgrade: h2c
HTTP2-Settings: AAMAAABkAARAAAAAAAIAAAAA
Accept-Charset: UTF-8,*;q=0.8

HTTP/1.1 200 Ok
Server: mini_httpd/1.19 19dec2003
Content-Type: text/plain; charset=iso-8859-1
Content-Length: 10096000
Connection: close

G.-....8W...s\..Q6.
..3`.:on.. .......D..U.p.-....d.6..;.....]........'..zU....dE..n..n.*Tf...E.....~.....Fg)`..K..U.|=....B..A.x_.7.s#...n.ch....O.........-N.".VF..|.x".fNM....f...A.p.QK.G.-..3.>-B..o....y...Ud..b....x..Y.0s0.....Z..qN..mt..kiR8.G..t#.N.*.!..o.
Reply
#21
Since you aren't sending a valid ts stream I can't see why ffmpeg should accept this but a valid Kodi debug log would be better then tcp dump.

Martin
Reply
#22
(2020-08-24, 18:32)emveepee Wrote: Since you aren't sending a valid ts stream I can't see why ffmpeg should accept this but a valid Kodi debug log would be better then tcp dump.

Martin

ffmpeg I think it does not support the option to ignore content-lengh, I think only Curl, Wget and VLC have it, in Kodi debug log there is not much else to see.

What I ask is to allow the hack in some way to allow to ignore that header, it would solve some problems with streaming servers in addition to my problem
Reply
#23
We are not talking ffmpeg, we were suggesting the you try the new inputstream ffmpegdirect addon which supports GetStreamTimes()  This is the Kodi PVR solution to growing files.   It may not work but if you follow the instructions rather then trying your own test it might do what you want. 

If you don't like the solution, Kodi is open source and you are welcome to use your creativity to submit a PR.

Martin
Reply
#24
(2020-08-26, 15:10)emveepee Wrote: We are not talking ffmpeg, we were suggesting the you try the new inputstream ffmpegdirect addon which supports GetStreamTimes()  This is the Kodi PVR solution to growing files.   It may not work but if you follow the instructions rather then trying your own test it might do what you want. 

If you don't like the solution, Kodi is open source and you are welcome to use your creativity to submit a PR.

Martin
I think you are not understanding me, the test is what you have put me with ffmpegdirect addon (I think there are only 2 input stream addons), what I put is the traffic of my server and it does not work, the broadcast is cut.

I have looked in the Kodi source code for a call to curl to add --ignore-content-length to it and compile it. But I have not been lucky.

Is this header possible to control with the PRV plugin or is it a thing of the main Kodi program?

Now the solution I have mounted is to use nginx ignoring the aforementioned header and this works perfectly
Reply
#25
Glad you have a solution.   I understand as much as I can given your reluctance to send the required Kodi debug log showing what is really happening.

Martin
Reply
#26
(2020-08-27, 01:12)emveepee Wrote: Glad you have a solution.   I understand as much as I can given your reluctance to send the required Kodi debug log showing what is really happening.

Martin

I did not put the log because it seems irrelevant knowing the problem, but here it is https://paste.kodi.tv/ifijoheyac.kodi
Reply
#27
Since that is 18.8  (Leia not Matrix) without using inputstream.ffmpegdirect so yes it is very relevant.  We knew that wouldn't work.

Martin
Reply
#28
So you need to install the Alpha build of Matrix and try inputstream.ffmpegdirect.
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply
#29
Yes, I tried it these days with Matrix, it is that I did not want to put Matrix back on android-tv, but I just did the test on the pc with linux and with the same result here the logs:

https://paste.kodi.tv/vicofipigi.kodi
https://paste.kodi.tv/oyijeqogap.kodi
Reply
#30
To be honest the right way to fix this is with Nginx as you have done.
Maintainer of Enigma2 PVR addon: repo, docschangelog
How to create a full debug: here
Reply

Logout Mark Read Team Forum Stats Members Help
Http stream --ignore-content-length0