I would like to convert videos and set time on them to be same as from source file. I use batch for converting files in folder with ffmpeg
for %%a in ("*.MP4") do ffmpeg -i "%%a" -c:v libx264 -c:a aac "%%~naC.mp4"
pause
And then I have a powershell code which I use with excel to match files LastWriteTime
powershell (Get-ChildItem 'P1290526C.mp4').LastWriteTime = (Get-ChildItem 'P1290526.MP4').LastWriteTime
Is there any way how I can joint this two codes togather so I will use just one script/bat file?
Thank you very much.