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

Unable to download ITV content on Apple Silicon M1 #305

Closed
ThisLifeIrl opened this issue Jan 15, 2021 · 11 comments
Closed

Unable to download ITV content on Apple Silicon M1 #305

ThisLifeIrl opened this issue Jan 15, 2021 · 11 comments

Comments

@ThisLifeIrl
Copy link

ThisLifeIrl commented Jan 15, 2021

Since starting to use a M1 Mac a few days ago I seem to be unable to download any ITV content on it via GiA. I've read #296
which suggests that GiA works on M1 and for BBC programs it works perfectly for me, just not ITV.

What steps will reproduce the problem? Be specific, and provide as much detail as possible.

  • Open GiA, cache automatically updates
  • Add ITV program either from Safari via "Use Current Webpage" button or search for it within GiA and hit "Add to Queue" (trying both methods still result in the same outcome)
  • Click start and the status changes briefly to Downloading before it changes to Download Failed
  • Failed Download Popup appears saying : Problem unknown. Please submit a bug report...

I've tried downloading the same program on an Intel Mac running same version of GiA and MacOS and this works without any problems. I've also tried downloading other ITV programs and all result in the same error.

What version of GiA are you using? On what version of OS X?
GiA v1.20.01, macOS Big Sur 11.1

Are you using a web proxy? DNS proxy? VPN? VPS?
No and I'm located in the UK.

*What program are you attempting to download (full title, series and episode)? *
The Pembrokeshire Murders: Series 1 - Episode 3
https://www.itv.com/hub/the-pembrokeshire-murders/2a6732a0003

Please provide any additional information below.
I'm able to download the program using youtube-dl via Terminal without issue. Couple of other things in case they're relevant:

  • I've used Migration Assistant to copy over my files and settings from Intel Mac to Silicon
  • Before the download fails it does create a folder labelled with the program title but the folder is empty.

Verbose Log
Get iPlayer Automator M1 Download Failed Log.docx

@ian02054
Copy link

ian02054 commented Jan 15, 2021 via email

@ThisLifeIrl
Copy link
Author

Yes, I had that on Intel Mac but after two or three attempts it would work. Sometimes it would fail halfway through the download too but again restarting it once, maybe twice and it would eventually succeed as you said. This time though I've tried around 15-20 times and every time is the same result.

@mteller2
Copy link

Looking at the non-verbose log entries, this appears to be a youtube-dl issue as it terminates almost instantly.

@skovatch
Copy link

Looks like the problem is an ffmpeg that crashes on an M1 Mac. get_iplayer shipped a new ffmpeg with 3.27, with a claim that they now work on M1. I'll try this on my wife's MacBook Air and try to confirm it.

@mteller2
Copy link

mteller2 commented Feb 26, 2021 via email

@ThisLifeIrl
Copy link
Author

Hi, just tried version 1.21 and the issue persists, for me at least.

@mteller2
Copy link

mteller2 commented Feb 28, 2021 via email

@skovatch
Copy link

Looks like the problem is a combination of youtube-dl and ffmpeg. Youtube-dl decides that its hlsnatve extractor can't handle the stream it has found, so it wants to delegate the download to ffmpeg. But, the ffmpeg pulled in via get_iplayer was built with ffplay disabled, so it can't do the downloading, probably because get_iplayer never delegates downloads.

So that part is fixed by replacing ffmpeg with a different binary. Doing that gets ITV working again on Apple Silicon. I'd like to figure out why youtube-dl decides it cannot handle the decryption itself, though, as it happens on the command line as well.

skovatch added a commit that referenced this issue Feb 28, 2021
- Fixed bug in ITV tagging where the show and episode title were always combined into TV's "Episode" field.
- Changed main screen to have separate columns for series name and episode name.
- More code cleanup
@mteller2
Copy link

mteller2 commented Mar 1, 2021 via email

@ThisLifeIrl
Copy link
Author

ThisLifeIrl commented Mar 2, 2021

Just tried another ITV download on v1.21.2 and it's now working correctly. Thanks for fixing it and happy to close this now if that's okay?

@skovatch
Copy link

OK, good to hear!

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

4 participants