Diskussion zu Wrapper in Open ATV 7.x (Streamlink, YT-DL und YT-DLP)

Nachricht
Autor
E2WORLD
VIP
VIP
Beiträge: 1484
Registriert: 27 Apr 2020 16:25
Hat gedankt: 287 Mal
Hat Dank erhalten: 685 Mal

Diskussion zu Wrapper in Open ATV 7.x (Streamlink, YT-DL und YT-DLP)

#1

Beitrag von E2WORLD »

Anmerkungen, Fehler und sonstige Probleme zu https://www.opena.tv/viewtopic.php?t=59845 bitte her posten.
Benutzeravatar
azman
Member
Member
Beiträge: 70
Registriert: 10 Jan 2021 21:09
Receiver 1: SF 8008
Hat gedankt: 42 Mal
Hat Dank erhalten: 17 Mal
Geschlecht:

#2

Beitrag von azman »

When using the streamlinkwrapper and switching to a channel whose transmission is not 24 hours a day and currently not broadcast, an appropriate message appears.
And everything would be fine if the entire E2 was not crashing at this point. It does not respond to commands from the remote control, the only way out is to give init4 and init 3 commands via telnet.

This also happens when using ytdlpwrapper.

Will there be a solution to this problem?

Regards
Benutzeravatar
Papi2000
Super Moderator
Super Moderator
Beiträge: 25825
Registriert: 20 Apr 2013 20:09
Receiver 1: Viele GigaBlues
Receiver 2: DM und ZGemma
Receiver 3: bissl VU
Hat gedankt: 4483 Mal
Hat Dank erhalten: 8287 Mal

#3

Beitrag von Papi2000 »

There is a crashlog of that?
Look in /home/root/logs, and supply zipped Log.
If not, and that are legal streams without user informations, activate Debuglog, placed same as crashlogs, and give the zipped debuglog as attachment here.
Grüßle
Ralf
--------------------------------------------
---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----




Bild
Benutzeravatar
azman
Member
Member
Beiträge: 70
Registriert: 10 Jan 2021 21:09
Receiver 1: SF 8008
Hat gedankt: 42 Mal
Hat Dank erhalten: 17 Mal
Geschlecht:

#4

Beitrag von azman »

I am attaching the logs

[ATTACH]85149[/ATTACH]
Dateianhänge
Logs.zip
(95.93 KiB) 13-mal heruntergeladen
Benutzeravatar
Papi2000
Super Moderator
Super Moderator
Beiträge: 25825
Registriert: 20 Apr 2013 20:09
Receiver 1: Viele GigaBlues
Receiver 2: DM und ZGemma
Receiver 3: bissl VU
Hat gedankt: 4483 Mal
Hat Dank erhalten: 8287 Mal

#5

Beitrag von Papi2000 »

Thank you. It's not all clear with the logs.
Why do you use AutoBouquetsMaker?
I've never seen a sense in Europe to use it.

But your main error comes after the test, to display a message box.
Did you test the switching to such a channel with the Metrix-atv?
Then i fear, it's a network error - VU and Giga also had comparable such

Code: Alles auswählen

...
19:07:19.4760 /usr/bin/enigma2(_Z17handleFatalSignaliP9siginfo_tPv) [0x754B8]
...

Those "FatalSignal"-errors mostly are by the driver unhandled network events, that had to be solved by the vendor.
Grüßle
Ralf
--------------------------------------------
---- Einen Receiver kann sich jeder kaufen - Eine stabile E²-Box muß man sich verdienen! ----




Bild
Benutzeravatar
azman
Member
Member
Beiträge: 70
Registriert: 10 Jan 2021 21:09
Receiver 1: SF 8008
Hat gedankt: 42 Mal
Hat Dank erhalten: 17 Mal
Geschlecht:

#6

Beitrag von azman »

AutoBouquetsMaker - removed thanks for the suggestion.

I checked the Matrix skin and it's the same.

But I found a partial solution.
I select a channel and get a message that the channel is not currently live.
I give OK - the message disappears
In the channel selection window, I select one that is definitely live and click OK - nothing happens, I have a channel selection window all the time and whatever I choose and click OK, it does not work and I know that these items are online.
But when instead of OK I use the right arrow, it chews me over the entire page in the channel selection list and surprisingly, the channel is automatically turned on, which is as if it is highlighted for selection / confirmation on this page.

It's not comfortable, but at least E2 doesn't freeze

I hope the team will find time to solve this problem.
4l3x2k
VIP
VIP
Beiträge: 1532
Registriert: 20 Dez 2016 10:06
Hat gedankt: 399 Mal
Hat Dank erhalten: 824 Mal

#7

Beitrag von 4l3x2k »

You may try this ChannelSelection.py.

It belongs to /usr/lib/enigma2/python/Screens/. Make a backup of your ChannelSelection.py.

This change is to be discussed with the main devs.

If you can please check time shift with a normal and a iptv channel and switching to the offline channel.

I test with

Code: Alles auswählen

#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a8088/https%3a//www.youtube.com/watch?v=99fcbgyC1uE:[streamlinksrv] First SDA Church Of Teaneck
#SERVICE 4097:0:1:0:0:0:0:0:0:0:streamlink%3a//https%3a//www.youtube.com/watch?v=99fcbgyC1uE:[streamlink] First SDA Church Of Teaneck
#SERVICE 4097:0:1:0:0:0:0:0:0:0:YT-DL%3a//https%3a//www.youtube.com/watch?v=99fcbgyC1uE:[youtube-dl] First SDA Church Of Teaneck
#SERVICE 4097:0:1:0:0:0:0:0:0:0:YT-DLP%3a//https%3a//www.youtube.com/watch?v=99fcbgyC1uE:[yt-dlp] First SDA Church Of Teaneck


EDIT
The following packages are installed via command line

Code: Alles auswählen

streamlinksrv
enigma2-plugin-extensions-streamlinkwrapper
enigma2-plugin-extensions-ytdlpwrapper
python3-yt-dlp
enigma2-plugin-extensions-ytdlwrapper
python3-youtube-dl


Box is a sf8008 with OpenATV 7.1.
Benutzeravatar
azman
Member
Member
Beiträge: 70
Registriert: 10 Jan 2021 21:09
Receiver 1: SF 8008
Hat gedankt: 42 Mal
Hat Dank erhalten: 17 Mal
Geschlecht:

#8

Beitrag von azman »

Hi @4l3x2k

I tested this indicated ChannelSelection.py file.

I checked the above links and it now works as it should.

It indicates one of the channels, a message appears, I give OK disappears, then the down arrow to bring up the window with the channel list, I select another one that is online and the switch is made.

I go back to the next channel, for example, I get a message, give it ok, call up the channel list, switch to another one and everything is fine.


Thank you
Benutzeravatar
azman
Member
Member
Beiträge: 70
Registriert: 10 Jan 2021 21:09
Receiver 1: SF 8008
Hat gedankt: 42 Mal
Hat Dank erhalten: 17 Mal
Geschlecht:

#9

Beitrag von azman »

Hello
I have another question for you.

When I use streamlink server (streamlinksrv) I have no problem recording the stream.

On the other hand, when I use streamlinkwrapper, the stream is not recorded even though it indicates in the channel list and in the skin that recording has started.

The following files are saved in the "movie" directory.
Der Dateianhang Zrzut ekranu 2022-08-12 140121.png existiert nicht mehr.


tested link
[HTML]streamlink://https://tvpstream.vod.tvp.pl/?channel_id=47093982
http://127.0.0.1:8088/https://tvpstream ... d=47093982[/HTML]


The question is as follows:
1. Do we have the option to record a stream when using wrappers?
2. If there is no such possibility, will such functionality for wrappers appear in the near future?
Dateianhänge
Zrzut ekranu 2022-08-12 140121.png
4l3x2k
VIP
VIP
Beiträge: 1532
Registriert: 20 Dez 2016 10:06
Hat gedankt: 399 Mal
Hat Dank erhalten: 824 Mal

#10

Beitrag von 4l3x2k »

I can confirm that issue.

The debug log contains

Code: Alles auswählen

22:56:26.6147 [eMP3ServiceRecord] prepare filename /media/hdd/movie/20220812 2256 - [streamlink] PUTINS KRIEG - WELT Nachrichtensender - instant record.stream
22:56:26.6148 [eMP3ServiceRecord] doPrepare uri=streamlink://https://www.youtube.com/watch?v=75yfRRUM_Bs
22:56:26.6496 [eMP3ServiceRecord] doRecord error cannot set pipeline to state_playing
22:56:26.6686 [eServiceMP3Record] gstBusCall Gstreamer error: No URI handler implemented for "streamlink". (12) from uridec


Look like the servicemp3record does not respect the alternative url like servicemp3 does.

I think it should work like with any other internet stream but the alternative url needs to be added to servicemp3record.
4l3x2k
VIP
VIP
Beiträge: 1532
Registriert: 20 Dez 2016 10:06
Hat gedankt: 399 Mal
Hat Dank erhalten: 824 Mal

#11

Beitrag von 4l3x2k »

The alternative url has been added to servicemp3record.

[eServiceMP3Record] add alternativeurl handling like eServiceMP3 . openatv/enigma2@31ea372 . GitHub

Should be available tomorrow evening.
4l3x2k
VIP
VIP
Beiträge: 1532
Registriert: 20 Dez 2016 10:06
Hat gedankt: 399 Mal
Hat Dank erhalten: 824 Mal

#12

Beitrag von 4l3x2k »

4l3x2k hat geschrieben:You may try this ChannelSelection.py.

It belongs to /usr/lib/enigma2/python/Screens/. Make a backup of your ChannelSelection.py.

This change is to be discussed with the main devs.

If you can please check time shift with a normal and a iptv channel and switching to the offline channel.

I test with

Code: Alles auswählen

#SERVICE 4097:0:1:0:0:0:0:0:0:0:http%3a//127.0.0.1%3a8088/https%3a//www.youtube.com/watch?v=99fcbgyC1uE:[streamlinksrv] First SDA Church Of Teaneck
#SERVICE 4097:0:1:0:0:0:0:0:0:0:streamlink%3a//https%3a//www.youtube.com/watch?v=99fcbgyC1uE:[streamlink] First SDA Church Of Teaneck
#SERVICE 4097:0:1:0:0:0:0:0:0:0:YT-DL%3a//https%3a//www.youtube.com/watch?v=99fcbgyC1uE:[youtube-dl] First SDA Church Of Teaneck
#SERVICE 4097:0:1:0:0:0:0:0:0:0:YT-DLP%3a//https%3a//www.youtube.com/watch?v=99fcbgyC1uE:[yt-dlp] First SDA Church Of Teaneck


EDIT
The following packages are installed via command line

Code: Alles auswählen

streamlinksrv
enigma2-plugin-extensions-streamlinkwrapper
enigma2-plugin-extensions-ytdlpwrapper
python3-yt-dlp
enigma2-plugin-extensions-ytdlwrapper
python3-youtube-dl


Box is a sf8008 with OpenATV 7.1.


THIS will not be available with next update.

It has been tested with success, but we are not able to explain why that is.

So this error may still remain with any new image or updates.
Benutzeravatar
azman
Member
Member
Beiträge: 70
Registriert: 10 Jan 2021 21:09
Receiver 1: SF 8008
Hat gedankt: 42 Mal
Hat Dank erhalten: 17 Mal
Geschlecht:

#13

Beitrag von azman »

Thanks @4l3x2k for the info.

It remains to manually replace the file after each update performed until ChannelSelection.py is implemented in the image.

Regards
4l3x2k
VIP
VIP
Beiträge: 1532
Registriert: 20 Dez 2016 10:06
Hat gedankt: 399 Mal
Hat Dank erhalten: 824 Mal

#14

Beitrag von 4l3x2k »

That is right.

We do not know why this message box is messing up the session.

The last posted channelselection may work but we do not really know why and it does not work for everyone.

You need to update the channelselection file manually at the moment.

This is not what we want as you miss any updates to channelselection or need to fiddle it after every update.
Benutzeravatar
azman
Member
Member
Beiträge: 70
Registriert: 10 Jan 2021 21:09
Receiver 1: SF 8008
Hat gedankt: 42 Mal
Hat Dank erhalten: 17 Mal
Geschlecht:

#15

Beitrag von azman »

Finally, a new image was made for my box.

I tested IPTV stream recording using wrappers and it works great now.

It is a pity that the * .ts file is not created immediately, but we have to change from * .stream, but that's not a problem anymore.


Thanks to the whole team.
rpl
Beginners
Beginners
Beiträge: 16
Registriert: 29 Jul 2013 20:47
Hat gedankt: 10 Mal
Hat Dank erhalten: 8 Mal

#16

Beitrag von rpl »

Currently there is a problem with youtube. However problem has been identified for example discussion here. Youtube Error "Unable to extract uploader id" in every video . Issue #6247 . yt-dlp/yt-dlp . GitHub
I notice that yt-dlp can be use as a binary, and those usually getting patched version before main repo.
However we have package python3-yt-dlp that is using python.
Before checking anything I did the update from feed. There is a version 2023.01.06-git21419+37e325b-r0 (in 7.1 image), so after verifying in github is 25.01, no specific reason so I assume is pinned manually to that release as strealink use to be.
So python version directly from main repo, where fix is already included, is a solution for now till feed package will get an update.

And an extra question: is python faster than binary in this use case or doesn't that matter? (In usage experience to clarify )
yallah
Beginners
Beginners
Beiträge: 23
Registriert: 06 Jul 2013 08:12
Hat gedankt: 21 Mal

#17

Beitrag von yallah »

Hello rpl,

unfortunately I have the same problem with my Receiver,
can you tell me how you temporarily solved the problem?
Unfortunately the instructions on the site don't work for me.

Greetings
rpl
Beginners
Beginners
Beiträge: 16
Registriert: 29 Jul 2013 20:47
Hat gedankt: 10 Mal
Hat Dank erhalten: 8 Mal

#18

Beitrag von rpl »

Yes I can tell you. I you don't want to wait for feed update then preform following actions.

From github repository download https://github.com/yt-dlp/yt-dlp/archive/refs/heads/master.zip
Inside archive is a directory "yt_dlp" which need to be extracted and copied to box, other files are irrelevent.

On the box path to directory
/usr/lib/pythonX.XX/site-packages/yt_dlp
Where XX is python version depends on your image, 3.10 for 7.1
To be safe rename current directory on box e.g. yt_dlp.old (to avoid overwrite and mixing file)
Copy selected direcotry from archive to box path and restart box.
YT-DLP: wrapper works again
yallah
Beginners
Beginners
Beiträge: 23
Registriert: 06 Jul 2013 08:12
Hat gedankt: 21 Mal

#19

Beitrag von yallah »

@rpl Thank you for the info
rpl
Beginners
Beginners
Beiträge: 16
Registriert: 29 Jul 2013 20:47
Hat gedankt: 10 Mal
Hat Dank erhalten: 8 Mal

#20

Beitrag von rpl »

As a follow up, nobody mentioned it here. Older images like 7.1 no longer receives new compilations of plugin in feed so that is why it was frozen on January. Openatv 7.2 is constantly updated so git version of yt-dlp is in feed for those images.
Antworten

Zurück zu „Streamlink“