Help! File not moving to iTunes folder at end of script

Come up with a useful post-processing script? Share it here!
Post Reply
sheil
Newbie
Newbie
Posts: 1
Joined: January 21st, 2013, 7:21 pm

Help! File not moving to iTunes folder at end of script

Post by sheil »

Hi everyone,

My script's purpose is to convert an mkv file to mp4 using ffmpeg, run a tagging command called "mp4meta" on the mp4 file, and copy the file to D:\iTunes\Automatically Add to iTunes. Everything works except the last command.. it's not copying the file to the folder. I tried copying the file to D:\mp4 as a test first, and that worked fine, so I can't figure out what I'm doing wrong. Checked the script log in History, and it doesn't show any log of the copy at all. Can someone please help me figure out what I'm doing wrong?

My script:

Code: Select all


d:
cd "%~1"
ffmpeg -y -ss 00:00:00 -threads 6 -i "%~3.mkv" -vcodec copy -f mp4 -strict experimental -acodec aac -ab 128k -ac 2 "%~3.mp4" > d:\ffmpeg.txt
mp4meta tv "%~3.mp4"

copy "%~3.mp4" "D:\mp4"
copy "%~3.mp4" "D:\iTunes\Automatically Add to iTunes"

Post Reply