I have tested on C:\ drive and it doesn't work. Same story as if it was on D:\ drive

Code: Select all
SETLOCAL EnableDelayedExpansion
set /A compteur=1
FOR /F "eol=C tokens=1,2,3,4,5,6,7,8,9,10* delims=\|." %%G IN ('type D:\INGEST\PANIER\%1') DO (
set chemin=\\%%G.%%H.%%I.%%J\%%K\%%L\%%M\%%N.%%O
set /A debut=%%P/1000
set /A fin=%%Q/1000
IF /I %%O==MXF (
C:\FFAStrans0.7.6_Win32\Processors\FFMpeg\ffmpeg.exe -i !chemin! -ss !debut! -to !fin! -c:v copy -c:a copy D:\INGEST\VENTEH264\%1_EXTRAIT_compteur_%%I.MXF) ELSE (
C:\FFAStrans0.7.6_Win32\Processors\FFMpeg\ffmpeg.exe -i !chemin! -ss !debut! -to !fin! -c:v copy -c:a copy D:\INGEST\VENTEH264\%1_EXTRAIT_compteur_%%I.mpg)
set /A compteur=compteur+1
)
Code: Select all
2>> c:\temp\ffmpeg_log.txt