Jump to content

So I am trying to create a bat. file that opens up a mp4 in my video editing program then waits 30mins to close the program and then moves the mp4 to another folder. For some reason the move.bat only works on the mp4 if activated separately from first bat file and the move command doesn't work at all if used in the first bat file. 

 

This is what I have so far

start "C:\Program Files\CyberLink\PowerDirector13\PDR13.exe" "C:\Users\user\Documents\Videos2\XSplit Videos - t\video1 .mp4"
timeout /t 30
taskkill /f /im PDR13.exe
call move.bat

 

move *.mp4 "C:\Users\user\Documents\Videos2\XSplit Videos - t\Burned Videos"

Link to comment
https://linustechtips.com/topic/794214-problem-with-moving-mp4-via-batch-file/
Share on other sites

Link to post
Share on other sites

I am trying automate as much of the process for creating a DVD copy of church services as I can.(Its to help the older members of the video team) My thought was the bat would pull the mp4 into my program for burning, I would get it started burning then, it would close everything out after the dvd was done and move the mp4 so the next time the bat could pull the new mp4 without issue .

Link to post
Share on other sites

This looks like you are trying to do something with a harder way than necessary.

 

Sort out your transcoding method

What you want to be doing is using VLC transcoding command-lines reason because VLC can batch convert and kill itself via command it waits until the batch job has completed then ends the process. No messing around with cmd timeout timers which would potentially increase the time wasted when the system isn't doing any I/O operations transcoding anything.

 

Batch transcoding with VLC

for %%a in (*.FILE_EXT) do cmd /c "PATH_TO_VLC" --no-repeat --no-loop -I dummy -vvv %%a --sout=#transcode{vcodec=VIDEO_CODEC,vb=VIDEO_BITRATE,scale=1,acodec=AUDIO_CODEC,ab=AUDIO_BITRATE,channels=6}:standard{access=file,mux=MUXER,dst=%%a.OUTPUT_EXT} vlc://quit

 

Note: 

If transcoding from a DVD, it is also necessary to use the dvdsimple:// notation instead of the dvd:// notation, in order to avoid interacting with the DVD menu system. You can use this in the GUI by choosing 'no DVD menus' option when opening the disc. See Rip_DVD

In case under Windows the "-I dummy" option produces an extra command prompt with error-message 'vbv buffer overflow' you may try "-I rc" instead what should open a text interface but under Windows exactly does what the dummy should do.

 

All information cited from VLC Transcoding Wiki

 

 

 

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×