get_iplayer forums

Full Version: Automatically deleting m4a files after conversion?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
get_iplayer 2.99.0. Windows 10. get_iplayer output directory is on my local hard drive.

How can I tell get_iplayer to automatically delete the original m4a radio file after conversion to mp3 is complete please? I've searched the guides for an answer but to no avail. Here's below an example of the command line I'm using:

get_iplayer --get 16793 --command-radio="ffmpeg -i \""<filename>"\" -c:v copy -c:a libmp3lame -b:a 320k -id3v2_version 3 -write_id3v1 1 -y \""<dir>/<fileprefix>.mp3"\""

I've read the answer at

https://squarepenguin.co.uk/forums/thread-1155.html

but I'm afraid I couldn't make heads or tails of it. Could you tell me how exactly I need to change the above command line to delete m4a files after convertion? Thanks.

Amro
Works a treat! Many thanks for your help.