These forums are archived

See this post for further info

get_iplayer forums

Forum archived. Posting disabled.

recording

user-276

as with lengthy events broadcast on the bbc such as sport relief, london marathon, children in need etc. sometimes i only wish to record the parts i want like a sketch or performance rather than the whole programme.

is there a command that let's you record from your own start and end times?

thanks

user-2

There are two options used to start/stop recording at prescribed time offsets. See if you can spot them:

https://squarepenguin.co.uk/wiki/manpage...ng-options

user-276

Yes, I did spot it but it doesn't work for me. What am I doing wrong? I tested around 4 minutes on The Micheal McIntyre Show from Monday night.

Code:
C:\Program Files (x86)\get_iplayer>get_iplayer --pid=b041c55d --start=00:01:15 -
-stop=00:05:12
get_iplayer v2.85, Copyright (C) 2008-2010 Phil Lewis
  This program comes with ABSOLUTELY NO WARRANTY; for details use --warranty.
  This is free software, and you are welcome to redistribute it under certain
  conditions; use --conditions for details.

INFO Trying to stream pid using type tv
INFO: pid found in cache
Matches:
1151:   The Michael McIntyre Chat Show - Episode 6, BBC One, Discussion & Talk S
hows,Entertainment,Guidance,Highlights,Popular,TV, default,

INFO: 1 Matching Programmes
INFO: Checking existence of default version
INFO: flashvhigh1,flashvhigh2,flashhigh1,flashhigh2,flashstd1,flashstd2,flashlow
1,flashlow2 modes will be tried for version default
INFO: Trying flashvhigh1 mode to record tv: The Michael McIntyre Chat Show - Epi
sode 6
INFO: File name prefix = The_Michael_McIntyre_Chat_Show_-_Episode_6_b041c55d_def
ault
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
Connecting ...
INFO: Connected...
Starting download at: 0.000 kB
For duration: 237.000 sec
INFO: Metadata:
INFO:   duration              3000.84
INFO:   moovPosition          36.00
INFO:   width                 832.00
INFO:   height                468.00
INFO:   videocodecid          avc1
INFO:   audiocodecid          mp4a
INFO:   avcprofile            77.00
INFO:   avclevel              31.00
INFO:   aacaot                2.00
INFO:   videoframerate        25.00
INFO:   audiosamplerate       48000.00
INFO:   audiochannels         2.00
INFO: trackinfo:
INFO:   length                75021000.00
INFO:   timescale             25000.00
INFO:   language              und
INFO: sampledescription:
INFO:   sampletype            avc1
INFO:   length                144039936.00
INFO:   timescale             48000.00
INFO:   language              und
INFO: sampledescription:
INFO:   sampletype            mp4a
43647.479 kB / 312.00 sec (10.3%)
Download may be incomplete (downloaded about 10.30%), try resuming
INFO: Command exit code 2 (raw code = 512)
WARNING: Retry recording for 'The Michael McIntyre Chat Show - Episode 6 (b041c5
5d)'
INFO: File name prefix = The_Michael_McIntyre_Chat_Show_-_Episode_6_b041c55d_def
ault
RTMPDump v2.4
(c) 2010 Andrej Stepanchuk, Howard Chu, The Flvstreamer Team; license: GPL
ERROR: FLV file contains neither video nor audio, aborting!
INFO: Command exit code 1 (raw code = 256)

user-2

Actually, it probably did work. You should have been left with a playable .partial.flv file. You get the "Download may be incomplete" message because it is - you truncated it by design. Using
Code:
--start
and
Code:
--stop
isn't pretty, but it does work. You just don't get nicely tagged MP4 files.

Some further tips:

If you use
Code:
--start
, also add
Code:
--raw
to prevent get_iplayer from launching ffmpeg to re-mux the .partial.flv file. If the recording doesn't start at the beginning of the stream ffmpeg chokes, so all you can get is the .partial.flv file.

Use
Code:
--attempts=1
to prevent a lot of spurious retries. get_iplayer can't tell if the recording is incomplete due to another error or due to use of
Code:
--stop
, so it will kick off retries that are useless in this case.

You can cut down the number of retries a bit further by narrowing the list of recording modes attempted, e.g.,
Code:
--modes=flashhd
to limit attempts to just HD streams.

user-276

Thank heavens for that, I'm glad it worked. Thanks for the help and tips user-2.

These forums are archived

See this post for further info