These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

Subtitles

user-91

As my username states I love subtitles...

A nice feature would be if we could have an CLI switch to prevent downloads.

For example if the get_iplayer does not detect any subtitles then it refuse to download the video (and possible the same for signed, auto description versions etc)

personally for me any videos without subtitles is pretty much useless (am deaf). It is very annoying that BBC chooses to regularly delay or even fail to provide subtitles !

thanks

user-30

I haven't ever used subtitles. If you use the command
Code:
--subtitles
are you saying that even though that command is present, if no subtitles are included in the programme, get_iplayer will still download a subtitle free file?

user-91

sorry if i wasnt clear...

at the moment when i download with get_iplayer this is typical of CLI usuage e.g.

./get_iplayer --output="/home/I_love_subtitles/Videos" --vmode=flashhigh --subtitles --refresh --get "name of programme"

so the usual outcomes at the moment would be either :-

1) The video is downloaded with the subtitles (thumbs up)
0r
2) The video is downloaded but without the subtitles (bbc being lazy gits or even just not bothered include the subtitles with the video).

So, if we were to have a CLI switch let say like --chkservice="sub" then if no subtitles then get_iplayer will not download the video.

So, when the subtitles are present then it will allow the downloading of the video.

At the moment any videos which the bbc not included with subtitle it will still download the video regardless if it actual has the subtitles or not. This is useless to people (and deaf) who totally need the subtitles.

The bbc does seem to have a bad habit of excluding subtitles.

thanks for listening

user-2

i_l_s: It would definitely be possible to add a
Code:
--subtitles-required
option that would skip media download if associated subtitles couldn't be downloaded. I don't know if it will make next release, but I'll implement it at some point. I'll post on this thread when it's ready.

user-91

Thanks user-2 that would be fab.

Just been playing about with get_iplayer and noticed that...

If I were to use the following in CLI
Code:
--versions=signed
or
Code:
--versions=audiodescribed
it produces the desired filtering output, that I think would be useful to subtitles users.

Maybe
Code:
--versions=subtitles
be more fitting ?

(I appreciate that I know nothing about what happens under the hood of get_iplayer)

Have a good weekend everyone

user-2

get_iplayer 2.84 has a new
Code:
--subsrequired
option that will skip download of a programme when its subtitles are missing or empty.

user-91

Thanks again user-2 for sprinkling your magic on get_iplayer, I have just tested the
Code:
--subsrequired
and it seem to be working perfectly and will be making good use of it thanks again :)

Would it be possible filter and list subtitles only ? e.g. when i use
Code:
--get_iplayer
it lists all the programmes available. But with some sort of CLI to only list subtitles only ?

I have noticed
Code:
--get_iplayer --versionlist=signed
Code:
--get_iplayer --versionlist=audiodescribed
does offer filtered list.

But so far
Code:
--get_iplayer --versionlist=subtitles
by the way I did have a look at the "perl codes" and seen
Code:
opensubtitled
mentioned but didn't seem to be working or is in the making ?

Note to self : you really need to learn programming :)

user-2

Quote:Would it be possible filter and list subtitles only ? e.g. when i use --get_iplayer it lists all the programmes available. But with some sort of CLI to only list subtitles only ?

No. The channel listing feeds used to populate get_iplayer's programme cache don't contain any information about subtitles. It requires several additional downloads per programme to ascertain whether or not subtitles are available, and that's not practical to do. Signed and audiodescribed programmes essentially have their own channels, so the version information can be included in the cache for searching. And of course, the only way to determine if a subtitles file is in fact empty is to download it, and that's doubly impractical.

If you want to check if a subtitles file exists for a particular programme, use:

Code:
get_iplayer --streaminfo <index>

If subtitles are available, amongst all the media streams (typically at the end) you will see the info for the subtitles stream, which will look like the listing below. However, there is no guarantee that the subtitles file actually contains any subtitles. Your first programming project can be a subtitles checker :)

Subtitles stream info:

Code:
stream:     subtitles1
authstring:
bitrate:    
ext:        srt
identifier: ng/modav/bUnknown-b005v7w3_b005v7w3_1380102712662.xml
priority:   10
server:     http://www.bbc.co.uk/iplayer/subtitles/
streamer:   http
streamurl:  http://www.bbc.co.uk/iplayer/subtitles/ng/modav/bUnknown-b005v7w3_b005v7w3_1380102712662.xml
swfurl:     http://www.bbc.co.uk/emp/releases/iplayer/revisions/617463_618125_4/617463_618125_4_emp.swf
type:       (captions) http stream (CDN: http/10)

user-91

Thank you for your in-depth explanation, after doing a bit more probing I now see some of the issues you mentioned ...

So i will have a think about writing something more advanced than those "hello world" tutorials ...

wish me luck :) cos it might take me a while lol

These forums are archived

See this post for further info