These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

simply get url of video

user-311

Hi,
Is there some simple command I can use to just get the url of the content (preferably .mp4).
I would like to pass this url to a upnp media renderer so that I can watch content on any upnp enabled TV / xbmc etc.

I'm hoping there might be something nice and simple like yturl - https://github.com/cdown/yturl

Thanks.

user-2

Not quite. You can use
Code:
get_iplayer --streaminfo <INDEX>
or
Code:
get_iplayer --streaminfo pid:<PID>
for a programme episode to return the parameters for all streams available for that episode. However, you'll have to parse the
Code:
--streaminfo
output to assemble a valid URL for an RTMP stream. I think you'll need to assemble it like this:

Code:
"<streamurl> playpath=<playpath> tcURL=<tcurl> swfUrl=<swfurl>"



Be aware that the generated authentication token in
Code:
<streamurl>
is time-limited and device-dependent, so you'll need to generate the URL at time of use. Also, the streams will be in Flash Video format. It's get_iplayer that re-muxes from FLV to MP4, but that won't apply for your case.

These forums are archived

See this post for further info