Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update script for new urls from the websites #1

Open
4 tasks
noahsmindfuck opened this issue Jun 13, 2024 · 3 comments
Open
4 tasks

Update script for new urls from the websites #1

noahsmindfuck opened this issue Jun 13, 2024 · 3 comments

Comments

@noahsmindfuck
Copy link

noahsmindfuck commented Jun 13, 2024

The url's have changed. Apparently the url from the script
'url': 'https://stream.wien.gv.at/live/ngrp:bv' + district_str_lz + '.stream_all/playlist.m3u8'
is not valid anymore or at least not for all streams (needs to be tested).

one example link looks like this:
src="https://z4atvie10swse101.rtccdn.com/pidbv/smil:pidbv_1060.smil/playlist.m3u8"

also, one was able to view the stream here so maybe that is another valid source:
https://pidbv.justlive.tv/player.php?stream=bv1060

TODO:

  • use the next dates of the bv sessions to capture the possible live stream urls
  • write a regexp that validates the url parametes against the districts array, maybe add possibel parameters/strings like 'bv', 'm3u8', etc to an array to check the url against
  • maybe use python requests to figure out which kind of url we have and to navigate to the respective and maybe even updating links to the streams
  • rewrite the capture function on those streams

Possible help:

@fleimgruber
Copy link

fleimgruber commented Jun 15, 2024

I tested the URL https://z4atvie10swse101.rtccdn.com/pidbv/smil:pidbv_1060.smil/playlist.m3u8 with ffmpeg (which is what youtube-dl would call eventually, IIUC):

ffmpeg -protocol_whitelist file,http,https,tcp,tls -allowed_extensions ALL -i https://z4atvie10swse101.rtccdn.com/pidbv/smil:pidbv_1060.smil/playlist.m3u8 -bsf:a aac_adtstoasc -c copy out.mp4

which gives 404s indicating that these are not available after the live stream ended, same as in https://pidbv.justlive.tv/player.php?stream=bv1060.

I will keep the ffmpeg command handy as a quick way to test "segments" as soon as they are supposed to be live.

@fleimgruber
Copy link

I am able to reproduce the behavior in #1 (comment) using https://pidbv.justlive.tv/player.php?stream=bv1020, see also fleimgruber@726660b.

Moving forward, I would wait for the next Bezirksvertretungssitzung Leopoldstadt on 25th of June 2024 at 5 pm and test manually as well as automated.

@noahsmindfuck I think with "use the next dates of the bv sessions to capture the possible live stream urls" we would be able to know when to check the justlive URLs directly and we might get away without any regexp'ing on streams.

@fleimgruber
Copy link

fleimgruber commented Jun 15, 2024

It turns out ffmpeg can't directly work with the https://pidbv.justlive.tv/player.php?stream=bv1020 URLs, but maybe youtube-dl handles m3u8 parsing directly. If not, I prepared a regexp here: fleimgruber@d42bd72.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants