warren-bank / node-hls-downloader-tubitv

Command-line utility for downloading an offline copy of TubiTV HLS video streams.
GNU General Public License v2.0
64 stars 8 forks source link

Arguments that don't do anything #12

Open F0x1 opened 5 months ago

F0x1 commented 5 months ago

"--min-bandwidth": null, "--max-bandwidth": null, "--highest-quality": true, "--lowest-quality": false, I noticed when I was trying to download some movies that it doesn't seem to give me the highest quality it will download the 480p instead of the 720p "Highest Quality" one https://tubitv.com/movies/100009862/osmosis-jones

warren-bank commented 5 months ago

quick test:

  tubidl --dry-run --no-mp4 --log-level 3 --url "https://tubitv.com/movies/100009862/osmosis-jones"

prints:

processing page:
  https://tubitv.com/movies/100009862/osmosis-jones
type:
  movie
HLS manifest:
  https://manifest.production-public.tubi.io/4313afb3-75b0-44e9-abc2-2f5fbb24bf11/mu1y2h278y.m3u8?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjZG5fcHJlZml4IjoiaHR0cHM6Ly9ha2FtYWkyLnR1YmkudmlkZW8iLCJjb3VudHJ5IjoiVVMiLCJkZXZpY2VfaWQiOiIxZjRlMWU3YS00ZTdjLTQ1ZTMtYTZkMS0yZjkxYmExZTE2NzQiLCJleHAiOjE3MTk0NTYwMDAsImV4cGVyaW1lbnQiOnsibmFtZSI6InpldXNfbXVsdGlfYml0cmF0ZV9wYWNrYWdlcl92MiIsIm5hbWVzcGFjZSI6InpldXNfbXVsdGlfYml0cmF0ZV9wYWNrYWdlcl92MiIsInRyZWF0bWVudCI6Im11bHRpX2JpdHJhdGUifSwibWVkaWFfc2lnIjoxMjg0NTkyMjMsInBsYXRmb3JtIjoiV0VCIiwidXNlcl9pZCI6MH0.p3cxw8gzBCgq82MK73KiXN1-dXsvmKwh3wiVc8Xpkz4
output directory:
  E:\tubi\Osmosis Jones
mp4 conversion (skipped):
  cd "E:\tubi\Osmosis Jones\hls" && mkdir "..\mp4" & ffmpeg -allowed_extensions ALL -i "master.m3u8" -c copy -movflags +faststart  "..\mp4\video.mp4"

directly inspecting the HLS manifest:

#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:BANDWIDTH=1614532,AVERAGE-BANDWIDTH=1413170,RESOLUTION=854x480,FRAME-RATE=23.976,CODECS="avc1.640028,mp4a.40.2"
bkrnhgk3/stream.m3u8?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjZG5fcHJlZml4IjoiaHR0cHM6Ly9ha2FtYWkyLnR1YmkudmlkZW8iLCJjb3VudHJ5IjoiVVMiLCJkZXZpY2VfaWQiOiIxZjRlMWU3YS00ZTdjLTQ1ZTMtYTZkMS0yZjkxYmExZTE2NzQiLCJleHAiOjE3MTk0NTYwMDAsImV4cGVyaW1lbnQiOnsibmFtZSI6InpldXNfbXVsdGlfYml0cmF0ZV9wYWNrYWdlcl92MiIsIm5hbWVzcGFjZSI6InpldXNfbXVsdGlfYml0cmF0ZV9wYWNrYWdlcl92MiIsInRyZWF0bWVudCI6Im11bHRpX2JpdHJhdGUifSwibWVkaWFfc2lnIjoxMjg0NTkyMjMsInBsYXRmb3JtIjoiV0VCIiwidXNlcl9pZCI6MH0.p3cxw8gzBCgq82MK73KiXN1-dXsvmKwh3wiVc8Xpkz4
#EXT-X-STREAM-INF:BANDWIDTH=455453,AVERAGE-BANDWIDTH=342978,RESOLUTION=426x240,FRAME-RATE=23.976,CODECS="avc1.4d401e,mp4a.40.2"
y9p6u3ya/stream.m3u8?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjZG5fcHJlZml4IjoiaHR0cHM6Ly9ha2FtYWkyLnR1YmkudmlkZW8iLCJjb3VudHJ5IjoiVVMiLCJkZXZpY2VfaWQiOiIxZjRlMWU3YS00ZTdjLTQ1ZTMtYTZkMS0yZjkxYmExZTE2NzQiLCJleHAiOjE3MTk0NTYwMDAsImV4cGVyaW1lbnQiOnsibmFtZSI6InpldXNfbXVsdGlfYml0cmF0ZV9wYWNrYWdlcl92MiIsIm5hbWVzcGFjZSI6InpldXNfbXVsdGlfYml0cmF0ZV9wYWNrYWdlcl92MiIsInRyZWF0bWVudCI6Im11bHRpX2JpdHJhdGUifSwibWVkaWFfc2lnIjoxMjg0NTkyMjMsInBsYXRmb3JtIjoiV0VCIiwidXNlcl9pZCI6MH0.p3cxw8gzBCgq82MK73KiXN1-dXsvmKwh3wiVc8Xpkz4
#EXT-X-STREAM-INF:BANDWIDTH=863486,AVERAGE-BANDWIDTH=614834,RESOLUTION=640x360,FRAME-RATE=23.976,CODECS="avc1.4d401e,mp4a.40.2"
ptsqxxpx/stream.m3u8?token=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJjZG5fcHJlZml4IjoiaHR0cHM6Ly9ha2FtYWkyLnR1YmkudmlkZW8iLCJjb3VudHJ5IjoiVVMiLCJkZXZpY2VfaWQiOiIxZjRlMWU3YS00ZTdjLTQ1ZTMtYTZkMS0yZjkxYmExZTE2NzQiLCJleHAiOjE3MTk0NTYwMDAsImV4cGVyaW1lbnQiOnsibmFtZSI6InpldXNfbXVsdGlfYml0cmF0ZV9wYWNrYWdlcl92MiIsIm5hbWVzcGFjZSI6InpldXNfbXVsdGlfYml0cmF0ZV9wYWNrYWdlcl92MiIsInRyZWF0bWVudCI6Im11bHRpX2JpdHJhdGUifSwibWVkaWFfc2lnIjoxMjg0NTkyMjMsInBsYXRmb3JtIjoiV0VCIiwidXNlcl9pZCI6MH0.p3cxw8gzBCgq82MK73KiXN1-dXsvmKwh3wiVc8Xpkz4

summary:

3052 commented 3 months ago

I can get 720p with my tool:

<Representation id="5" bandwidth="2932660" codecs="avc1.640028" mimeType="video/mp4" sar="1:1" width="1280" height="720">
    <BaseURL>https://akamai2.tubi.video/4313afb3-75b0-44e9-abc2-2f5fbb24bf11/rn29wjiw.mp4</BaseURL>
    <SegmentBase indexRange="1696-22343" timescale="90000">
        <Initialization range="0-1695"/>
    </SegmentBase>
</Representation>