I am attempting to batch download a number of videos using ffmpeg. A list of the site addresses and save names is stored in a text file in the following format.
The code that I have is looping through the file and attempting to download each line by line.
#!/bin/bash while IFS=, read dl nm do echo $dl echo $nm /usr/bin/ffmpeg -loglevel error -protocol_whitelist file,http,https,tcp,tls,crypto -i $dl -c copy $nm done < $1
The expected output is that on each loop ffmpeg would download the file indicated by each line and then proceed to the next iteration of the loop.
Instead, ffmpeg outputs the error message
"site": No such file or directory
When I run the same command directly in the terminal with the site name and save name directly inserted into the command, it works without any issue.
Looking at other posts seemingly related to this I have tried appending
to the end of the ffmpeg call but it still has the same affect.