'Unsafe file name Operation not permitted

I am trying to run ffmpeg command ffmpeg -re -f concat -i ./file1.txt -c:a copy -f flv -y -vf scale=402:720 rtmp://a.rtmp.youtube.com/live2/****** I get error like Unsafe file name 'https%3A%2F%2Frr7---sn-gwpa-jv3l........'./file1.txt: Operation not permitted. My files are url encoded like,

ffconcat version 1.0
file https%3A%2F%2Frr7---sn-gwpa-jv3l.googlevideo.com%2Fvideoplayback%3Fexpire%3D1643776862%26ei%3D_rb5Yer4J_zM4-EP3vakuA0%26ip%3D137.97.78.193%26id%3Do-AINvKH0gVc3zhpgEr-3_7tzFnffhqJNO5yEHVrizm1eq%26itag%3D22%26source%3Dyoutube%26requiressl%3Dyes%26mh%3DNe%26mm%3D31%252C29%26mn%3Dsn-gwpa-jv3l%252Csn-gwpa-h55r%26ms%3Dau%252Crdu%26mv%3Dm%26mvi%3D7%26pcm2cms%3Dyes%26pl%3D19%26initcwndbps%3D448750%26vprv%3D1%26mime%3Dvideo%252Fmp4%26ns%3DwF2AzkZd8z0u-7atnm2vq28G%26cnr%3D14%26ratebypass%3Dyes%26dur%3D18117.601%26lmt%3D1608645676138009%26mt%3D1643753819%26fvip%3D7%26fexp%3D24001373%252C24007246%26c%3DWEB%26txp%3D6211222%26n%3DX52aYMLpgQcdhT2Puc%26sparams%3Dexpire%252Cei%252Cip%252Cid%252Citag%252Csource%252Crequiressl%252Cvprv%252Cmime%252Cns%252Ccnr%252Cratebypass%252Cdur%252Clmt%26sig%3DAOq0QJ8wRQIhAKxDCRBLySk_BXlA3qn3kvq-uwBFAXS3VpqSPamLomTkAiA7amzvWSXFBjETLwCcBI8GKzOnNmmOMN_F0fPXe7taVw%253D%253D%26lsparams%3Dmh%252Cmm%252Cmn%252Cms%252Cmv%252Cmvi%252Cpcm2cms%252Cpl%252Cinitcwndbps%26lsig%3DAG3C_xAwRQIhAN78GcTXvttGR8VpHzSxH8RWYh-qFyEiaVl7JlIi9JbeAiBrH8sF00wMsh1pA-pTsMgNM7plwuFFeeXx15t1SfgImw%253D%253D
file file2.txt

I added -safe 0, then it works for first file. But when auto loops to next files, it give the same error message.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source