User avatar
startrek.steve
Posts: 390
Joined: Thu Aug 30, 2012 7:19 pm

get_iplayer 3.27.1 problems

Tue Apr 13, 2021 6:29 pm

Hi Guys,
I couldnt find a Raspbian/Debian package of the latest Get_iplayer. As I only ever get the perl script and drop it into usr/bin I grabbed a windows version, but I cant get it to auto execute, I've done all the usual chmod +x stuff but I get the error: /usr/bin/env: 'perl\r' : no such file or directory. If I enter perl get_iplayer it works, any ideas?

Steve
Last edited by startrek.steve on Thu Apr 15, 2021 6:39 pm, edited 1 time in total.
Pi 2 running LibreElec Krypton, Pi 2 running Wheezy Desktop, Pi 1 headless Wheezy, downloading Radio, Pi 1 running Picore headless Media Server, Pi Zero to be an Old Time Radio Project. Pi 3 testing. Pi Zero W downloading Radio shows headless.

User avatar
rpdom
Posts: 18493
Joined: Sun May 06, 2012 5:17 am
Location: Chelmsford, Essex, UK

Re: get_iplayer 3.27.1 problems

Tue Apr 13, 2021 7:43 pm

Windows files have different line endings to Linux files.

Windows tends to use CR+LF. Linux just uses LF. The "\r" you are seeing is the extra CR character. There are a number of ways of getting rid of those extra characters. There is a "dos2unix" command that can be installed, or you could use something like "sed" (already installed) to strip them off like this

Code: Select all

sed -i "s/\r//" get_iplayer
You should have been able to find a Linux version though.
Unreadable squiggle

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11010
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: get_iplayer 3.27.1 problems

Tue Apr 13, 2021 7:47 pm

\r implies a line endings problem. Windows uses CR LF. Unix uses just LF.

Use wget or a web browser to download the script directly on the Pi rather than grabbing it on Windows, or look at the relevant options for converting line endings.

Ah, rpdom beat me to it.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
startrek.steve
Posts: 390
Joined: Thu Aug 30, 2012 7:19 pm

Re: get_iplayer 3.27.1 problems

Thu Apr 15, 2021 6:35 pm

The author says they dont support a linux version, they used to. Thats why I tried the windows version, after I wrote this post I saw remarks about end of lines, I found a little script that sorted it.
Thanks Guys

Steve
Pi 2 running LibreElec Krypton, Pi 2 running Wheezy Desktop, Pi 1 headless Wheezy, downloading Radio, Pi 1 running Picore headless Media Server, Pi Zero to be an Old Time Radio Project. Pi 3 testing. Pi Zero W downloading Radio shows headless.

User avatar
neilgl
Posts: 3038
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: get_iplayer 3.27.1 problems

Thu Apr 15, 2021 8:16 pm

“ The author says they dont support a linux version, they used to” - er you can get the pi version from another repo, via apt. I have been running 3.27 for months now on a pi3 and pi4, no Windows involved.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11010
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: get_iplayer 3.27.1 problems

Thu Apr 15, 2021 8:32 pm

https://github.com/get-iplayer/get_iplayer
Runs on Linux/BSD (Ubuntu, Fedora, OpenBSD and others), macOS (10.10+), Windows (7/8/10)
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
startrek.steve
Posts: 390
Joined: Thu Aug 30, 2012 7:19 pm

Re: get_iplayer 3.27.1 problems

Sat Apr 17, 2021 5:25 pm

Thats version 3.27 not 3.271
Pi 2 running LibreElec Krypton, Pi 2 running Wheezy Desktop, Pi 1 headless Wheezy, downloading Radio, Pi 1 running Picore headless Media Server, Pi Zero to be an Old Time Radio Project. Pi 3 testing. Pi Zero W downloading Radio shows headless.

User avatar
neilgl
Posts: 3038
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: get_iplayer 3.27.1 problems

Sun Apr 18, 2021 4:45 pm

What is in 3.27.1 that is essential? I can’t see 3.27.1 on GitHub, only 3.27

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11010
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: get_iplayer 3.27.1 problems

Sun Apr 18, 2021 5:08 pm

Looks like the win32 devs have gone off on their own
https://github.com/get-iplayer/get_ipla ... 0...3.27.1

Odd seeing as they link to https://github.com/get-iplayer/get_iplayer as the source code for that project.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

User avatar
neilgl
Posts: 3038
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: get_iplayer 3.27.1 problems

Sun Apr 18, 2021 5:23 pm

Thanks. I never thought of looking for a Windows version, of course...

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11010
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: get_iplayer 3.27.1 problems

Sun Apr 18, 2021 5:39 pm

neilgl wrote:
Sun Apr 18, 2021 5:23 pm
Thanks. I never thought of looking for a Windows version, of course...
I just did a search for get_iplayer 3.27.1 and that was the only hit that appeared to be source related rather than packaged.

Other than messing with the version numbering (which appears to be a "mainline" get_iplayer change), it looks like the only real change was reverting to FFmpeg 4.2.3 instead of 4.3.1.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

Undertow
Posts: 29
Joined: Thu Feb 18, 2021 2:00 pm

Re: get_iplayer 3.27.1 problems

Sun Apr 18, 2021 6:26 pm

Looking at release history https://github.com/get-iplayer/get_ipla ... 2/releases

3.27 was released for Windows on 15th Feb and then withdrawn and 3.27.1 was released on 16th Feb

The mainstream (not Windows installer) release is 3.27 released 15th Feb so it looks like 3.27.1 was just a Windows specific fix.

iz2
Posts: 2
Joined: Sun Apr 18, 2021 7:35 pm

Re: get_iplayer 3.27.1 problems

Sun Apr 18, 2021 7:59 pm

The get_iplayer_win32 repo does not contain any get_iplayer source code, only bits related to the Windows package. get_iplayer uses a two-part version number ("3.27"). The Windows and macOS packages add a third part (".1") so that the packages can be versioned separately from get_iplayer itself (and thus won't affect all the downstream Linux and BSD packages, or each other). The get_iplayer script is the same on all platforms for the same major.minor part of the version number ("3.27"). There would never be any reason to copy the script from a Windows installation. If you are unwilling or unable to use the available DEB package, manual installation using the get_iplayer repo is explained in the documentation.

User avatar
neilgl
Posts: 3038
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: get_iplayer 3.27.1 problems

Sun Apr 18, 2021 11:40 pm

Yes that is “win32” - I never look at that.

6by9
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 11010
Joined: Wed Dec 04, 2013 11:27 am
Location: ZZ9 Plural Z Alpha, aka just outside Cambridge.

Re: get_iplayer 3.27.1 problems

Mon Apr 19, 2021 7:12 am

iz2 wrote:
Sun Apr 18, 2021 7:59 pm
The get_iplayer_win32 repo does not contain any get_iplayer source code, only bits related to the Windows package. get_iplayer uses a two-part version number ("3.27"). The Windows and macOS packages add a third part (".1") so that the packages can be versioned separately from get_iplayer itself (and thus won't affect all the downstream Linux and BSD packages, or each other). The get_iplayer script is the same on all platforms for the same major.minor part of the version number ("3.27"). There would never be any reason to copy the script from a Windows installation. If you are unwilling or unable to use the available DEB package, manual installation using the get_iplayer repo is explained in the documentation.
Thank you for joining and adding useful insight.

It sounded like it would be along those lines, but the OPs quoting "The author says they dont support a linux version, they used to" was the odd bit hence the small bit of detective work.
Software Engineer at Raspberry Pi Trading. Views expressed are still personal views.
I'm not interested in doing contracts for bespoke functionality - please don't ask.

iz2
Posts: 2
Joined: Sun Apr 18, 2021 7:35 pm

Re: get_iplayer 3.27.1 problems

Mon Apr 19, 2021 10:15 am

6by9 wrote:
Mon Apr 19, 2021 7:12 am
the OPs quoting "The author says they dont support a linux version, they used to" was the odd bit
That was inexplicable. Lest there be any doubt, it is completely untrue. In the 12 years I've been using get_iplayer, the developers have never withdrawn Linux support, and I daresay they never will. get_iplayer originated on Linux, and it's implemented in Perl, after all. A DEB package has been available for Raspbian for quite a few years, but even if that disappeared, it is fairly simple to perform a manual installation on Debian and its derivatives.

Return to “Graphics, sound and multimedia”