Using --command-tv with pathnames containing spaces
#1
Hi,
I'm using the --command-tv to reencode the raw .ts file to another format and it is working well, e.g:

get_iplayer --raw  --url=1234XYZ --command-tv="ffmpeg -i \""<filename>"\" -c:v libx265 -crf 28 -c:a copy -y \""C:\Videos\<fileprefix>.mp4"\""

This saves the reencoded file to C:\Videos. But, what I really want to do is to save the reencoded file to a different folder - one with a space in: C:\New Videos:

So, instead of "C:\Videos\<fileprefix>.mp4", I changed it to be: "C:\New Videos\<fileprefix>.mp4"

If I do this I get the error at the start of the ffmpeg reencode stage:
Code:
[NULL @ 07136040] Unable to find a suitable output format for 'C:\New'
C:\New: Invalid argument
INFO: Command exit code 1 (raw code = 256)
ERROR: Command Exit Code: 1

I'm sure it's a case of rearranging the quotes and escape characters correctly. Can anyone help?
Thank you.
Andy