TwinVine ITV Service works for me
[Attachment 89471 - Click to enlarge]
and works exactly as intended.
[Attachment 89472 - Click to enlarge]
TwinVine is designed for ease of installation.
[Attachment 89473 - Click to enlarge]
So what errors you have, I have no idea. Although at the back of my mind I seem to remember Windows Home Power Shell is just a poor imitation of the real thing. I advise all Windows Home users to install 'Terminal' from the windows store and use that. I test TwinVine using Windows running on Linux in an emulator. There I use Terminal without problem.
+ Reply to Thread
Results 661 to 676 of 676
-
Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
Hi Angela
I was able to get your itvx standalone downloader working but I had to make some tweaks as it was generating a lot of "The SSL connection could not be established, see inner exception" and then would fail after a couple of minutes.
What I did to get it working was:
1. Change VPN connection protocol to OpenVPN - UDP
2. For N_m3u8DL-RE call:
Removed -mt (multi-threaded) and added:
--thread-count 1
--download-retry-count 100
--http-request-timeout 180
--no-log
3. Added DOTNET_SYSTEM_NET_HTTP_USEHTTP2=0
with these changes the IPTX.py is rock solid and works everytime so far.
Note - I was only able to figure this out with the help of ChatGPT!
Thanks again for sharing! -
Great! ChatGPT eh? If only everyone here would try that first...
Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
For TwinVine / Envied - is there anyway to force it to skip downloading subtitles by editing the yaml file or any other method? I have made progress with the ITVx but now is only failing on subtitles download?
-
Hi Angela,
I have started using your TwinVine program. Very good indeed, but I don't seem to be able to download anything from TPTV. I keep getting these errors. Wondering what I am doing wrong -
For the issue I was having with ITVX failing on searching, I found that if you enter the URL in the GUI search box it works just fine! Once I discovered this, I was finding that ITVX downloads would fail randomly on either of the Video, Audio or Subtitle tracks. Previoulsy I had thought it only the Subtitles that was an issue, but further testing shows that it would fail randomly on any of the three tracks, on the odd occasion it would work ok and complete the download. The failure was something to do with aria2 and TLS / SSL handshaking – i.e.
[Aria2c]: Download Error (#0e5c6902873398ad): SSL/TLS handshake failure: Error: The operation completed successfully. (0) (1), https://vod-blue-irdeto-cw.fastly.content.itv.com/jwt/e........................
I cannot pretend to have a very deep understanding of what this really means, however from what I can glean it is the process of the client computer and the server negotiating encryption keys and cipher suites before sending data. To get around this I found suggestions to change the aria2 configuration file which lives at:
C:\Users\%USERNAME%\.aria2\aria2.conf
The modified file is pasted below – now ITVX is very reliable. I can now download from BBC, Channel 4, Channel 5 and STV with very good reliability!
# ===== Aria2 ITVX-tolerant, BBC/All4-safe =====
continue=true
allow-overwrite=true
auto-file-renaming=false
console-log-level=warn
file-allocation=none
# Conservative concurrency (ITVX)
max-connection-per-server=1
split=1
min-split-size=1M
# Retries & timeouts
max-tries=5
retry-wait=2
timeout=60
connect-timeout=20
# Networking
disable-ipv6=true
user-agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64)
# TLS / certificates
check-certificate=true
# If you created one, point to your CA bundle:
# ca-certificate=C:\Tools\certs\cacert.pem
# RPC (harmless if unused)
enable-rpc=true
rpc-listen-port=10790
rpc-secret=aria2tv
# Reduce console noise
summary-interval=0 -
I strongly recommend using Angelas new TwinVine rather than UK-FTA - seems to me more robust, reliable and faster.
I have been though the process of installing, wiping and installing again multiple times recently and I have been taking copious notes along the way.
If there is interest I can post these as a detailed step by step to get up and running with TwinVine -
Who knows. What were you doing before the issue started. The error message says a file is still in use - ?
Try deleting the Temp folder and trying again.
Or maybe aria2c (the downloader) is having issues with that service, (not unknown), then change the downloader in envied.yaml to something else.... n_m3u8dl_re is recommended. But be be prepared to switch these around. The fall-back that always works is 'requests', but it is s l o w .
To be clear: Twinvine is the culmination of the work of many people. I only authored the VineFeeder part and put the packages together in one installable whole. TwinVine comprises of VineFeeder and envied.
Envied is a fork of unshackle, itself being a fork of devine ,created by ralphoenix, which in turn was based on code produced by a whole bunch of software developers.
So not 'mine' and I make no claim to any of it, apart from VineFeeder and a couple of tweaks to envied for a better user experience.Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
-
OK: Here's what I know: TPTV works fine with Linux, which suggests the code is basically correct.
When checking on Windoze I get an error too even after updating everything.
I've spent the morning chasing 'faults' itracing through each step in a debugger and can find no obvious reason for it to bail-out after apparently downloading.
I did a 'uv run envied env check' and discovered I needed to install mkvpropedit from mkvtoolnix, but that made no difference.
So, presently, I am stumped. I'll see if any inspiration pops up over the next few days.
It is so easy to get TPTV on your own, just find the m3u8 file - I use The Stream Detector browser extension to do that.; or use Ctrl+ C -> network tab in your browser; filter for m3u8 and copy the url.
The url.m3u8+++++ will download with N_m3u8DL_RENoob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
Re above.
Further investigation shows that unshackle/envied/TwinVine are requesting an extra segment for (Audio) streams and getting a 404 error. This is happening on Windows only possible because of how the arithmetic is performed calculating the number of segments to download.
I use this 96 second video as an example https://tptvencore.co.uk/product/tpmov05255-6383511857112
The calculation using data from above isCode:<?xml version="1.0" encoding="UTF-8"?> <MPD xmlns="urn:mpeg:dash:schema:mpd:2011" profiles="urn:mpeg:dash:profile:isoff-live:2011" type="static" mediaPresentationDuration="PT1M36.720S" minBufferTime="PT2.000S"> <BaseURL>http://house-fastly-signed-eu-west-1-prod.brightcovecdn.com/media/v1/dash/live/clear/6272132012001/abc82a92-8430-4113-b7f9-2d63f9dc2ad9/</BaseURL> <Period> <AdaptationSet mimeType="audio/mp4" startWithSAP="1" segmentAlignment="true" lang="en"> <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"></Role> <SegmentTemplate duration="285696" initialization="$RepresentationID$/init.m4f?fastly_token=NjkwYjhiM2JfY2FjNzhjYThlMWI0N2RmN2MxY2VmZWVlNGRkYTdiZTI3YzRkN2I4MmFlOGM3ZGMxZTJhY2Q1MGY4NzM5YWNlZV8vL2hvdXNlLWZhc3RseS1zaWduZWQtZXUtd2VzdC0xLXByb2QuYnJpZ2h0Y292ZWNkbi5jb20vbWVkaWEvdjEvZGFzaC9saXZlL2NsZWFyLzYyNzIxMzIwMTIwMDEvYWJjODJhOTItODQzMC00MTEzLWI3ZjktMmQ2M2Y5ZGMyYWQ5Lw%3D%3D" media="$RepresentationID$/3x/segment$Number$.m4f?fastly_token=NjkwYjhiM2JfY2FjNzhjYThlMWI0N2RmN2MxY2VmZWVlNGRkYTdiZTI3YzRkN2I4MmFlOGM3ZGMxZTJhY2Q1MGY4NzM5YWNlZV8vL2hvdXNlLWZhc3RseS1zaWduZWQtZXUtd2VzdC0xLXByb2QuYnJpZ2h0Y292ZWNkbi5jb20vbWVkaWEvdjEvZGFzaC9saXZlL2NsZWFyLzYyNzIxMzIwMTIwMDEvYWJjODJhOTItODQzMC00MTEzLWI3ZjktMmQ2M2Y5ZGMyYWQ5Lw%3D%3D" startNumber="0" timescale="48000"></SegmentTemplate> <Representation audioSamplingRate="48000" bandwidth="63000" codecs="mp4a.40.2" id="40b79809-8499-4742-90f0-fab571885baf"></Representation> <Representation audioSamplingRate="48000" bandwidth="96000" codecs="mp4a.40.2" id="f32be94e-3f82-4289-af02-648095ad0401"></Representation> <Representation audioSamplingRate="48000" bandwidth="127000" codecs="mp4a.40.2" id="7f00e12c-873a-415c-bb60-b0e7bc1f187f"></Representation> </AdaptationSet> <AdaptationSet mimeType="video/mp4" startWithSAP="1" scanType="progressive" segmentAlignment="true"> <Role schemeIdUri="urn:mpeg:dash:role:2011" value="main"></Role> <SegmentTemplate duration="150" initialization="$RepresentationID$/init.m4f?fastly_token=NjkwYjhiM2JfY2FjNzhjYThlMWI0N2RmN2MxY2VmZWVlNGRkYTdiZTI3YzRkN2I4MmFlOGM3ZGMxZTJhY2Q1MGY4NzM5YWNlZV8vL2hvdXNlLWZhc3RseS1zaWduZWQtZXUtd2VzdC0xLXByb2QuYnJpZ2h0Y292ZWNkbi5jb20vbWVkaWEvdjEvZGFzaC9saXZlL2NsZWFyLzYyNzIxMzIwMTIwMDEvYWJjODJhOTItODQzMC00MTEzLWI3ZjktMmQ2M2Y5ZGMyYWQ5Lw%3D%3D" media="$RepresentationID$/3x/segment$Number$.m4f?fastly_token=NjkwYjhiM2JfY2FjNzhjYThlMWI0N2RmN2MxY2VmZWVlNGRkYTdiZTI3YzRkN2I4MmFlOGM3ZGMxZTJhY2Q1MGY4NzM5YWNlZV8vL2hvdXNlLWZhc3RseS1zaWduZWQtZXUtd2VzdC0xLXByb2QuYnJpZ2h0Y292ZWNkbi5jb20vbWVkaWEvdjEvZGFzaC9saXZlL2NsZWFyLzYyNzIxMzIwMTIwMDEvYWJjODJhOTItODQzMC00MTEzLWI3ZjktMmQ2M2Y5ZGMyYWQ5Lw%3D%3D" startNumber="0" timescale="25"></SegmentTemplate> <Representation bandwidth="444000" codecs="avc1.420015" frameRate="25/1" height="270" id="b48ee666-5ea9-4704-8b70-a82dac708eb8" width="506"></Representation> <Representation bandwidth="689000" codecs="avc1.42001e" frameRate="25/1" height="360" id="2496d247-be7c-4252-8990-2b94cf99fb08" width="674"></Representation> <Representation bandwidth="886000" codecs="avc1.4d001e" frameRate="25/1" height="360" id="93e4c1e6-f615-436d-b594-8eb52a16beff" width="674"></Representation> <Representation bandwidth="1185000" codecs="avc1.4d001f" frameRate="25/1" height="540" id="0e80452c-f5bf-4d97-8fa4-1c0dab0dcca7" width="1012"></Representation> <Representation bandwidth="1679000" codecs="avc1.4d001f" frameRate="25/1" height="540" id="34d3cbc0-74c0-4e6e-aaf7-89fbec4c2a90" width="1012"></Representation> <Representation bandwidth="1978000" codecs="avc1.4d001f" frameRate="25/1" height="576" id="657359f7-a8cc-41e4-bf79-1eaad8951d8b" width="1080"></Representation> </AdaptationSet> </Period> </MPD>
mediaPresentationDuration = PT1M36.720S = 96.720 s total
Video SegmentTemplate: timescale=25, duration=150. so 150/25 = 6.000 s per segment
And 96.720 / 6.000 = 16.12
ceil = 17 segments [indices 0..16 (since start number="0")] so if fails requesting sement17 - which is correct as it does not exist.
Now why this should only happen with TPTV I am at a loss to even guess. All of the segment downloading is happening in the backend of unshackle/envied/etcNoob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
TPTV should now work in Windows. The algorithm for counting media segments was over-counting by 1 for TPTV. Fix now up on https://github.com/vinefeeder/TwinVine#
Noob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
-
Hi first of all thankyou to angela and everyone else i have used software from or gained knowledge reading from, i very much appreciate it!
Please forgive my ignorance but i need help with downloading from ALL4 using twinvine
I am by no means a newbie to technical things and i am usually fairly competent with computing and software in general but i have to admit git hub and python has always baffled me a bit.
however, i have managed to get twinvine running after previously using allhell3 by angela
with twinvine i have downloaded from both BBC and ITVX perfectly but when i try to get something from ALL4 i have the error " failed to log in: request parameter error"
i have tried to do my research and figure it out myself but i am at a loss, am i missing somewhere to enter my credentials? ive checked the yaml and dont see an obvious place to enter them.
i have tried to add a cookies txt file into the service folder as with other downloaders in case this was the issue but this didnt work either.
if anyone could point me in the right direction i would be forever grateful
Also as i said before github is a bit of a struggle for me to understand so how do i update twinvine with angelas latest updates without starting from scratch do i simply replace the latest modified files on the git or is there a command to do this efficiently -
[Attachment 89595 - Click to enlarge]
take note of the formatting and add email and password for ALL4 to TwinVine/packages/envied/src/envied/envied.yaml --- assuming you've copied the envied-working-example.yaml as envied.yamlNoob Starter Pack. Just download every Widevine mpd! Not kidding!.
https://files.videohelp.com/u/301890/hellyes6.zip -
That sorted it. Thank you so much.
My apologies for missing that... i did know it was user error and not the tool.
Honestly super grateful for the tool and the help.
If you have a 'buy me a coffee' link thing, i would love to.
Similar Threads
-
Hot air on the tape.
By Litaiff in forum Capturing and VCRReplies: 2Last Post: 24th Jan 2023, 13:43 -
4K Video Downloader free or money?
By Jomapil1 in forum Video Streaming DownloadingReplies: 8Last Post: 29th Sep 2020, 11:33 -
Simplest and quickest free video downloader ?
By arcadianne in forum Newbie / General discussionsReplies: 28Last Post: 27th Feb 2019, 21:29 -
Using TV downloader
By frankopstaele in forum Newbie / General discussionsReplies: 0Last Post: 2nd Feb 2019, 19:44 -
Downloading Ustream Off-Air / No Videos?
By lemonmellow in forum Video Streaming DownloadingReplies: 1Last Post: 25th Oct 2018, 11:42


Quote