To Thread - Forum Home

The Mudcat Café TM
https://mudcat.org/thread.cfm?threadid=164083
9 messages

Tech: Windows Task Scheduler

06 May 18 - 08:02 AM (#3922482)
Subject: Tech: Windows Task Scheduler
From: Bonzo3legs

I got this working as a means of scheduling start time for BBC live webstream recordings using ffmpeg - only for radio at the moment, I'll try for a live BBC TV HD stream later.

What this means is that I can schedule a webstream recording to start at a particular time, and stop at the end of the duration specified in the ffmpeg command line, giving a "forever" recording.

I believe that the BBC live webstream is slightly better quality than that available from the iplayer, which if downloaded by the method advised by the BBC, will only be available for 30 days - perhaps not though if the file name is changed or converted to another format!!!


06 May 18 - 12:50 PM (#3922528)
Subject: RE: Tech: Windows Task Scheduler
From: Bonzo3legs

What I can't work out is if I set task scheduler to record BBC Radio 3 "Jazz Now" weekly, how can I make ffmpeg automatically include the output file creation date in its name?


06 May 18 - 05:20 PM (#3922584)
Subject: RE: Tech: Windows Task Scheduler
From: DaveRo

I know nothing about Windows Task Scheduler, but assuming you're using it to start an old-fashioned batch file containing an ffmpeg command try prepending the output file name with
%date:~-4,4%%date:~-7,2%%date:~-10,2%
%date% usually substitutes the date in the format Sun 06/05/2018 so that construction should produce 20180506


06 May 18 - 10:34 PM (#3922611)
Subject: RE: Tech: Windows Task Scheduler
From: GUEST,.gargoyle

Go to any NON-co.uk server.

Scout around, perhaps, using ",DuckDuckGo".

Almost every broadcast is available, 15 minutes post publishing, and more than two decades in the past.

Sincerely,
Gargoyle

Obviously, torrent, but anything stemming from ....


07 May 18 - 05:29 AM (#3922638)
Subject: RE: Tech: Windows Task Scheduler
From: GUEST

Thanks DaveRo and Gargoyle.


07 May 18 - 08:29 AM (#3922676)
Subject: RE: Tech: Windows Task Scheduler
From: Bonzo3legs

Damned iphone logged me out!


08 May 18 - 04:56 PM (#3923010)
Subject: RE: Tech: Windows Task Scheduler
From: Bonzo3legs

Ive managed to crack it with the following batch file:

@echo off

set hour=%time:~0,2%
set minutes=%time:~3,2%
set seconds=%time:~6,2%

set year=%date:~-4%
set month=%date:~-7,2%
set day=%date:~-10,2%

ffmpeg -i "http://a.files.bbci.co.uk/media/live/manifesto/audio/simulcast/hls/uk/sbr_high/ak/bbc_radio_scotland_fm.m3u8" -c copy -t 00:00:20 "Jazz Now %year%-%month%-%day% %hour%.%minutes%".ts

I set this up in Task Scheduler to run every 5 minutes which generated the following file names:
Jazz Now 2018-05-08 21.41.ts
Jazz Now 2018-05-08 21.46.ts
Jazz Now 2018-05-08 21.51.ts


08 May 18 - 06:03 PM (#3923020)
Subject: RE: Tech: Windows Task Scheduler
From: DaveRo

OT, but you may be interested in this and the links therein:
BBC_blog:_A_round_up_of_Sound

An earlier blog piece was about programme_segments. Having access to these would enable splitting a recording into 'tracks'. A prom could be split into its constituent perfomances, for example, automatically generating a cue sheet, like I did for that Transports recording you did.


11 May 18 - 05:26 PM (#3923746)
Subject: RE: Tech: Windows Task Scheduler
From: Bonzo3legs

Very interesting thanks.