VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. i want to save screenshot inside the subfolders

    i using this app
    Code:
    http://moviethumbnail.sourceforge.net/
    this is my parent folder
    N:\WK\SH\Movie


    inside parent folder there is multiple folder

    N:\WK\SH\Movie\bluray\Inception (2010)\Inception.mkv
    N:\WK\SH\Movie\bluray\Avatar (2009)\Avatar.mkv


    i want mtn will read the subfolder media file and make screenshot inside the sub folder i.e

    N:\WK\SH\Movie\bluray\Inception (2010)\Inception_s.jpg
    N:\WK\SH\Movie\bluray\Avatar (2009)\Avatar_s.jpg


    this is the mtn batch script i able to make

    this is the path i need to fix "N:\WK\SH\Movie\%%f\%%s". if i use "N:\WK\SH\Movie\%%f" it's saving image file in N:\WK\SH\Movie\bluray.

    like this: https://forum.videohelp.com/images/imgfiles/pFcpZiY.png

    i have very little knowledge about batchs script, can someone please help me to fix this script?


    Code:
    CD N:\WK\SH\Movie"
    for /d %%f in (*) do (
      pushd %%f
      
      (
      cd "N:\work\doc\mtn"
      mtn -c 2 -r 4 -w 1000 -c 1 -r 4 -b 0.3 -D 6 -O "N:\WK\SH\Movie\%%f"  -L 4:2 -t -i "N:\WK\SH\Movie\%%f" -P
      popd
      
      )
    )
    Last edited by iKron; 22nd Jul 2021 at 22:25.
    Quote Quote  
  2. Member
    Join Date
    Apr 2007
    Location
    Australia
    Search Comp PM
    Hi.

    This seemed to work OK.
    I put a pause in between each movie so you can read the text on the screen.
    There may be "brainfarts'. This is a real return code.

    [h264 @ 6BD90F00]brainfart cropping not supported, this could look slightly wrong ...
    Delete the pause line if and when you're happy.
    Remember to set the path to the folder containing mtn.exe and libraries.

    Code:
    @echo off
    SETLOCAL
    :: The folder containing mtn.exe and libraries.
    set path=d:\mtn;
    
    for /r %%a in ("*.mp4", "*.mkv") do call :process "%%~dpa" "%%~nxa"
    ENDLOCAL
    goto :end
    
    :process
    set videopath=%~1
    set video=%~2
    mtn -c 2 -r 4 -w 1000 -b 0.8 -D 6 -L 4:2 -t -i -P "%videopath%%video%"
    pause
    goto :eof
    
    :end
    I just copied your program parameters. I know nothing about the program.
    I'm sure a number of people will be interested in trying it.
    I'm not interested in learning. I'll stick to batch files.

    Cheers
    Quote Quote  
  3. thank you so much for the script. cheers!
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!