Hi guys, I have created a list of files
myFileList.txt
url.m3u8
url.m3u8
url.m3u8
to download with ffmpeg this is the line:
setlocal enableelayeexpansion
set index=0
for /f "delims=" %%i in (myfilelist.txt) do (
set /a index+=1
ffmpeg.exe -i %%i -c copy "new folder%%~ni.mp4"
)
downloads the first file, but the second one is overwritten, because it doesn't change the name.
How can I do for example to get
01.mp4
02.mp4
03.mp4
etc.
thanks, for any help.
+ Reply to Thread
Results 1 to 2 of 2
Similar Threads
-
How to batch convert/multiplex any files with ffmpeg
By Baldrick in forum User guidesReplies: 215Last Post: 1st Dec 2023, 11:38 -
Need help writing an ffmpeg script to batch split many video files by size
By manav in forum Newbie / General discussionsReplies: 11Last Post: 6th Aug 2020, 17:37 -
Use ffmpeg to batch screenshots of many video files
By MC23 in forum Newbie / General discussionsReplies: 4Last Post: 11th May 2020, 01:57 -
FFMPEG: how to batch extract all audio streams into separate mono files?
By marcorocchini in forum Newbie / General discussionsReplies: 1Last Post: 14th Aug 2019, 15:21 -
ffmpeg - How to batch screen grab from multiple video files?
By Gameshow Host in forum Newbie / General discussionsReplies: 4Last Post: 2nd May 2019, 07:04