Streamlink (tested in Fossapup64-95 only)

Moderator: Forum moderators

Post Reply
User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Streamlink (tested in Fossapup64-95 only)

Post by Jasper »

.

Last edited by Jasper on Wed Nov 20, 2024 7:04 pm, edited 2 times in total.
User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by Jasper »

.

Last edited by Jasper on Wed Nov 20, 2024 7:04 pm, edited 1 time in total.
muggins
Posts: 92
Joined: Mon Aug 31, 2020 1:31 am
Been thanked: 21 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by muggins »

Hello Jasper,

I've never used streamlink, but see it's available as an appimage here:

https://github.com/streamlink/streamlin ... e/releases

To use as appimage, just download, make executable & symlink to /usr/bin/streamlink

User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by Jasper »

That's useful to know :thumbup:

keniv
Posts: 656
Joined: Mon Jul 13, 2020 2:18 pm
Location: Scotland
Has thanked: 111 times
Been thanked: 67 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by keniv »

@Jasper
I've just tried Streamlink but installed the appimage as @muggins suggested in FossaPup64 95. However I cannot get it to work. I've attached the output from a terminal.

Code: Select all

root# streamlink -p mpv http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_vlow/ak/bbc_radio_one_dance.m3u8
realpath: --: No such file or directory
[cli][info] streamlink is running as root! Be careful!
[cli][info] Found matching plugin hls for URL http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_vlow/ak/bbc_radio_one_dance.m3u8
Available streams: 51k (worst, best)
root# streamlink -p mplayer http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_vlow/ak/bbc_radio_one_dance.m3u8
realpath: --: No such file or directory
[cli][info] streamlink is running as root! Be careful!
[cli][info] Found matching plugin hls for URL http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_vlow/ak/bbc_radio_one_dance.m3u8
Available streams: 51k (worst, best)
root# 

As you can see I first tried with mpv then mplayer (I have this installed in FossaPup and know it to be working). From what I can tell streamlink is running so I assume the fault is not with it. Have you got any ideas as to what might be wrong?

Regards,

Ken.

User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by Jasper »

@keniv

Try the url's by themselves to ensure they are still working

eg

Code: Select all


mpv http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_vlow/ak/bbc_radio_one_dance.m3u8

Streamlink does appear to be working as it provides you the option best/worst

I didn't use the AppImage and unsure how they function. My understanding is that everything is self-contained. @mikewalsh knows more than most IMO.

The only thing that I can think of is that the creator did not include a media player or that they are using VLC.

If so, that should be included in the AppImage.

Otherwise they would also have had to include Mplayer, MPV etc.

So, you could try it without using an external player eg

Code: Select all


streamlink http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_vlow/ak/bbc_radio_one_dance.m3u8

If you do get it working with the above ................. can you try it out with STV? I am hoping you have an account.

To be honest, what I had really wanted it for was to be able to record livestreams instead of having to wait for them to be uploaded/downloaded. :lol:

BTW

If it does work then you could use streamlink on your Rapsberry Pi 2.

Last edited by Jasper on Mon Dec 26, 2022 2:57 pm, edited 1 time in total.
User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by Jasper »

@keniv

If for any reason you get an error message from STV eg cannot playback encrypted stream.

I did compile FFMpeg with GnuTLS support here:

viewtopic.php?p=76639#p76639

If that doesn't do the job, you might have install GnuTLS as well.

keniv
Posts: 656
Joined: Mon Jul 13, 2020 2:18 pm
Location: Scotland
Has thanked: 111 times
Been thanked: 67 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by keniv »

@Jasper

Try the url's by themselves to ensure they are still working

Yes the urls work by themselves. I listening to the the one below at the momen

Code: Select all

root# mpv http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_vlow/ak/bbc_radio_one_dance.m3u8
 (+) Audio --aid=1 'bitrate 50880' (aac 2ch 48000Hz)
AO: [alsa] 48000Hz stereo 2ch float

I've tried others from simple gtk radio which also work but not with streamlink.
I've also tried streamlink -help and get this

Code: Select all

root# streamlink -help
realpath: --: No such file or directory
usage: streamlink [OPTIONS] <URL> [STREAM]
streamlink: error: argument -h/--help: ignored explicit argument 'elp'

and streamlink --help and get this

Code: Select all

 Zattoo:
    --zattoo-email EMAIL
    The email associated with your zattoo account, required to access any zattoo stream.
    
    --zattoo-password PASSWORD
    A zattoo account password to use with --zattoo-email.
    
    --zattoo-purge-credentials
    Purge cached zattoo credentials to initiate a new session and reauthenticate.
    
    --zattoo-stream-types TYPES
    A comma-delimited list of stream types which should be used.
    
    The following types are allowed: dash,hls7
    
    Default is "dash".
    

For more in-depth documentation see:
  https://streamlink.github.io

Please report broken plugins or bugs to the issue tracker on Github:
  https://github.com/streamlink/streamlink/issues
root# 

I find this even more baffling.
This is the first appimage I've ever tried and I'm not impressed. Perhaps I should have tried one that didn't rely on the cli to work first. I've come to the conclusion it's something else that's only for experts.
Thanks for trying to help me with this but there's so much of this with which I do not feel comfortable that I feel I should give up.

Regards,

Ken.

User avatar
fredx181
Posts: 3113
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 378 times
Been thanked: 1329 times
Contact:

Re: Streamlink (tested in Fossapup64-95 only)

Post by fredx181 »

Looks like it's needed to add best or worst after the url.
This works for me (using mpv):
./streamlink-5.1.2-2-cp311-cp311-manylinux2014_x86_64.AppImage -p mpv http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/sbr_low/ak/bbc_radio_one_dance.m3u8 best
Without the "-p mpv" it could work too but it selects vlc on my system and I have not patched my /usr/bin/vlc to be able to run as root, so that's why it probably fails.
Don't know, perhaps it needs to be somehow configured to use the mediaplayer of choice to be the default.
EDIT: For configuration, see: https://streamlink.github.io/cli/config.html

keniv
Posts: 656
Joined: Mon Jul 13, 2020 2:18 pm
Location: Scotland
Has thanked: 111 times
Been thanked: 67 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by keniv »

fredx181 wrote: Mon Dec 26, 2022 8:03 pm

spocken
Looks like it's needed to add best or worst after the url.
This works for me (using mpv):
./streamlink-5.1.2-2-cp311-cp311-manylinux2014_x86_64.AppImage -p mpv http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/nonuk/sbr_low/ak/bbc_radio_one_dance.m3u8 best

Just tried with

Code: Select all

streamlink -p mpv http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_four_extra.m3u8 best

and it works though I find the output from the terminal a bit odd.

Code: Select all

root# streamlink -p mpv http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_four_extra.m3u8 best
realpath: --: No such file or directory
[cli][info] streamlink is running as root! Be careful!
[cli][info] Found matching plugin hls for URL http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_four_extra.m3u8
[cli][info] Available streams: 140k (worst, best)
[cli][info] Opening stream: 140k (hls)
[cli][info] Starting player: mpv

I don't understand the realpath: --: No such file or directory bit. It also seems to pause here for a second or two then goes on to play the stream. I also tried with

Code: Select all

root# streamlink -p mpv http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_med/ak/bbc_radio_four_extra.m3u8 worst

It works as in the same way as above. I could not really tell the difference as far as quality of sound was concerned but radio 4 extra is mostly spoken word so a difference in quality may not show up much.
Without -p mpv I get an error

Code: Select all

error: The default player (VLC) does not seem to be installed. You must specify the path to a player executable with --player, a file path to save the stream with --output, or pipe the stream to another program with --stdout.

I don't have vlc installed.

EDIT: For configuration, see: https://streamlink.github.io/cli/config.html

I'll have a look at this. Thanks for your help to get this working.

Regards,

Ken.

User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by Jasper »

@keniv
Well, done for preserving and thank you to @fredx181 for the input and suggestions :thumbup2:

In regards to the audio quality of the output. You need to look closer at the ones being used

Mine

sbr_vlow/ak/bbc_radio_one_dance.m3u8

Yours

sbr_med/ak/bbc_radio_four_extra.m3u8

There's not going to be a boost/uplift in quality. Better to work with a regular stream and then choose an option

eg

sbr_high/ak/bbc_radio_four_extra.m3u8

I did a bit more reading on AppImage files and the developer should have all the files/libraries contained within the package. So I have no idea about their configuration contained within.

I checked my install and I do not have a Config file. That's simple enough to do. Just got to root - .config and then create a blank file (Geany) and then enter in the details of the player you would like to open up.

If you want to use VLC that runs in root then I have a package here:
https://www.forum.puppylinux.com/viewto ... vlc#p73899

keniv
Posts: 656
Joined: Mon Jul 13, 2020 2:18 pm
Location: Scotland
Has thanked: 111 times
Been thanked: 67 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by keniv »

Jasper wrote: Tue Dec 27, 2022 7:00 am

In regards to the audio quality of the output. You need to look closer at the ones being used

Mine

sbr_vlow/ak/bbc_radio_one_dance.m3u8

Yours

sbr_med/ak/bbc_radio_four_extra.m3u8

There's not going to be a boost/uplift in quality. Better to work with a regular stream and then choose an option

eg

sbr_high/ak/bbc_radio_four_extra.m3u8

Yeah, I really should have noticed the sbr_vlow, sbr_med and sbr_high myself. I do find it confusing that when I use the Radio 4 extra url it contains sbr_med but I still have to use best or worst at the end of the url to get it to work.

I checked my install and I do not have a Config file. That's simple enough to do. Just got to root - .config and then create a blank file (Geany) and then enter in the details of the player you would like to open up.

I also do not seem to have a config file for Streamlink.

can you try it out with STV? I am hoping you have an account.

I don't have an account with STV but I can try it anyway. Can you post the url for it please.
I did try streamlink -p ffplay https://www.dailym ... hs9y worst which you posted previously and it did work.

Regards,

Ken.

User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by Jasper »

@keniv

I didn't know what additional functions the config file needed.

So, it's not too difficult to type in the -p mpv command before pasting in the url.

For STV it's your regional TV player, just like the BBC iPlayer

https://stv.tv/?player=

As for the plugin configuration, I think the developer may have set it up to work with a particular plug-in that they use. Maybe left over when the made the AppImage.

I get a different output from streamlink when I query the plug-ins available to me.

As I mentioned before, my main purpose was to be able to record streams for playback later.

keniv
Posts: 656
Joined: Mon Jul 13, 2020 2:18 pm
Location: Scotland
Has thanked: 111 times
Been thanked: 67 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by keniv »

@Jasper

For STV it's your regional TV player, just like the BBC iPlayer

https://stv.tv/?player=

I'm afraid I don't have accounts for either. Get-iplayer does not seem to require this.
I seem to have the same plugins as you.

Code: Select all

root# streamlink --plugins
realpath: --: No such file or directory
[cli][info] streamlink is running as root! Be careful!
Loaded plugins: abematv, adultswim, afreeca, albavision, aloula, app17, ard_live, ard_mediathek, artetv, atpchallenger, atresplayer, bbciplayer, bfmtv, bigo, bilibili, blazetv, bloomberg, booyah, brightcove, btv, cbsnews, cdnbg, ceskatelevize, cinergroup, clubbingtv, cmmedia, cnews, crunchyroll, dailymotion, dash, delfi, deutschewelle, dlive, dogan, dogus, drdk, earthcam, euronews, facebook, filmon, foxtr, funimationnow, galatasaraytv, goltelevision, goodgame, googledrive, gulli, hiplayer, hls, http, htv, huajiao, huya, idf1, invintus, kugou, linelive, livestream, lnk, lrt, ltv_lsm_lv, mdstrm, mediaklikk, mediavitrina, mildom, mitele, mjunoon, mrtmk, n13tv, nbcnews, nhkworld, nicolive, nimotv, nos, nownews, nrk, ntv, okru, olympicchannel, oneplusone, onetv, openrectv, orf_tvthek, pandalive, picarto, piczel, pixiv, pluto, pluzz, qq, radiko, radionet, raiplay, reuters, rtbf, rtpa, rtpplay, rtve, rtvs, ruv, sbscokr, schoolism, showroom, sportal, sportschau, ssh101, stadium, steam, streamable, streann, stv, svtplay, swisstxt, telefe, tf1, trovo, turkuvaz, tv360, tv3cat, tv4play, tv5monde, tv8, tv999, tvibo, tviplayer, tvp, tvrby, tvrplus, tvtoya, twitcasting, twitch, useetv, ustreamtv, ustvnow, vidio, vimeo, vinhlongtv, vk, vlive, vtvgo, wasd, webtv, welt, wwenetwork, youtube, yupptv, zattoo, zdf_mediathek, zeenews, zengatv, zhanqi

Regards,

Ken.

User avatar
Jasper
Posts: 2097
Joined: Wed Sep 07, 2022 1:20 pm
Has thanked: 858 times
Been thanked: 490 times

Re: Streamlink (tested in Fossapup64-95 only)

Post by Jasper »

No worries :thumbup:

Post Reply

Return to “Multimedia”