title: batch rename / re-rename for video encoding
body: <p>i need help to rename some file using bat file. i'm trying to batch encode video with cmd
  it goes like this</p>
  <ol>
  <li>read the name of files and then save it into text file
  (file_read.txt).</li>
  <li>rename those files into simple name, 1.mp4 2.mp4 etc untill all
  files renamed (xxx.mp4). even if they were wmv/mov/avi, i usually just rename into mp4, dont really know if its bad or not</li>
  <li>encode the renamed files from 2. this is my code to encode</li>
  </ol>
  <blockquote>
  <p>.\exe\x264_32_tMod-10bit-all --level 5.1 --preset veryslow --crf 23.0 --min-keyint 12 --scenecut 45 --bframes 8 --b-adapt 2 --ref 10 --weightp 2 --qcomp 0.6 --rc-lookahead 40 --direct auto --aq-mode 3 --aq-strength 0.9 --merange 32 --me umh --subme 10 --trellis 2 --psy-rd 0.40:0.60 --acodec none --stylish --output  .\temp\Output_v.mp4 .\Input\xxx.mp4</p>
  <p>.\exe\ffmpeg -y -i .\Input\xxx.mp4 -f wav -| .\exe\neroAacEnc -ignorelength -q 0.4 -if - -of .\temp\Output_a.aac</p>
  <p>.\exe\ffmpeg -y -i .\Input\xxx.mp4 -i .\temp\Output_v.mp4 -map 1 -map_metadata 0 -c copy .\temp\newmetadatavideo.mp4</p>
  <p>.\exe\ffmpeg -y -i .\temp\newmetadatavideo.mp4 -i .\temp\Output_a.aac -vcodec copy -acodec copy .\Output\yyy.mp4</p>
  </blockquote>
  <p>here the input file is xxx.mp4 and yyy.mp4 is the output</p>
  <ol start="4">
  <li>re-rename the yyy.mp4 files into file_read.txt. extension will be mp4 (since
  i encode them into mp4)</li>
  </ol>
  <p>i'm using subfolder to differentiate input-output-exe file-and stuff, so none of them are actually in one folder. like this</p>
  <ul>
  <li>root (i put bat file here)
  <ul>
  <li>exe (x264, ffmpeg, nero aac all here)</li>
  <li>input (where i put all my videos)</li>
  <li>output (finished videos)</li>
  <li>temp (i put video-audio and file_read.txt here)</li>
  </ul>
  </li>
  </ul>
  <p>Thank you!</p>
  <p>p.s my output file using this code is roughly 2-5 times smaller with small loss (at least for me), but since i use 10 bit and level 5.1, not all player might able to play (havent tried it)</p>