I am a newbie to this forum and am hoping I can get some insight and assistance with an issue I am having. I wrote a script that takes all of my captured videos (.avi) and converts them to mp4 using ffmpeg. When I run the script by double clicking the file, it runs good at about 45 FPS using about 85% of my CPU. I created a task in Windows 10 Task Scheduler and when I run the file from there, it only converts between 1.5-2 FPS utilizing only 3% of my CPU and I have no idea why. Obviously, that conversion rate is not acceptable. Here is the script file which also shows all the ffmpeg parameters I have passed in:
@echo off
for %%a in ("D:\Aaron Cirlin\Videos\Captured Movies\*.avi") do "C:\Program Files\WinFF\ffmpeg" -y -i "%%a" -itsoffset 0.765 -i "%%a" -map 1:0 -map 0:1 -crf 20.0 -vcodec libx264 -filter:v scale=1280:720 -preset slow -acodec libvo_aacenc -ar 48000 -b:a 128k -coder 1 -flags +loop -cmp chroma -partitions +parti4x4+partp8x8+partb8x8 -me_method hex -subq 6 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -b_strategy 1 -threads 0 "D:\Aaron Cirlin\Videos\Movies\%%~na.mp4" & del "%%a"
pause
Does anyone know why it would that much slower via the Task Scheduler?
Any help would be greatly appreciated.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays!
+ Reply to Thread
Results 1 to 5 of 5
Thread
-
-
Can you set any cpu priority in the task scheduler? Maybe it's super low?
-
That is exactly what it was, thank you so much. The priority level was at a 7. I was able to export the task, change priority level to a 3, delete original task and import the updated xml file when re-creating the task. It worked like a charm. Thanks again.
-
Consider to enrich your script with command 'START' https://technet.microsoft.com/en-us/library/bb491005.aspx
Similar Threads
-
Converting 60 fps video to 30 fps interlaced
By deadmeow in forum Authoring (DVD)Replies: 9Last Post: 22nd Mar 2016, 00:13 -
Converting AVI video from 23.976 fps to 29.976 fps
By Nico Darko in forum Video ConversionReplies: 3Last Post: 6th Feb 2016, 18:33 -
Convert MPEG2 to progressive and real fps, ffmpeg warnings, etc
By Wader8 in forum Newbie / General discussionsReplies: 6Last Post: 1st Sep 2014, 16:11 -
Dropped frames converting 29 fps mpg to 25 fps avi
By NavyLCDR in forum Video ConversionReplies: 11Last Post: 22nd Dec 2013, 23:27 -
Getting the most out of 30 fps when capturing/converting
By CursedLemon in forum Video ConversionReplies: 4Last Post: 26th Apr 2012, 09:11