VideoHelp Forum




+ Reply to Thread
Results 1 to 5 of 5
  1. Member
    Join Date
    Apr 2006
    Location
    United Kingdom
    Search Comp PM
    Is there's such tools that can do a batch work to scan the entire mkv videos (1680 videos) and give results back to me so that I can encode them manually using handbrake software. Or is there's such tool that can actually find L4.0 or lower, then automatically re-encode for me?

    Right-clicking on a file then "Media Info" to check every file would take me forever
    Handbrake is no problem, take 5-10 mins per job - I can queue them up and leave it overnight.

    Reason for this, appears that my Nvidia Sheild TV does not work well with L3.1? - Video stuttering, so I had to reencode into L4.1 and it works perfectly.

    Thanks
    Colt
    Quote Quote  
  2. Member Budman1's Avatar
    Join Date
    Jul 2012
    Location
    NORTHWEST ILLINOIS, USA
    Search Comp PM
    MediaInfo has a CLI command line version that should be able to be called repeatedly in a batch file .
    Quote Quote  
  3. Member
    Join Date
    Apr 2006
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by Budman1 View Post
    MediaInfo has a CLI command line version that should be able to be called repeatedly in a batch file .
    I did checked that out, i'm completely n00bs in creating .bat file
    I'm hoping for some help on that but a simple small util would come in handy tho
    Thanks
    Quote Quote  
  4. Member
    Join Date
    Aug 2010
    Location
    San Francisco, California
    Search PM
    You can do this with FFmpeg. Put the following in a batch file with paths appropriate to your file locations.

    Code:
    @echo off
    for %%M in (c:\path\to\*.mkv) do (
        c:\path\to\ffprobe.exe -v quiet -select_streams v -show_streams "%%M" 1>probe.txt
        for /f "delims== tokens=1,2" %%P in (probe.txt) do if %%P==level if %%Q lss 41 ffmpeg -y -i %%M -crf 20 -level 41 -c:a copy "%%~nM_new.mkv"
    )
    Last edited by JVRaines; 26th Nov 2018 at 14:51.
    Quote Quote  
  5. Member
    Join Date
    Apr 2006
    Location
    United Kingdom
    Search Comp PM
    Originally Posted by JVRaines View Post
    You can do this with FFmpeg. Put the following in a batch file with paths appropriate to your file locations.

    Code:
    @echo off
    for %%M in (c:\path\to\*.mkv) do (
        c:\path\to\ffprobe.exe -v quiet -select_streams v -show_streams "%%M" 1>probe.txt
        for /f "delims== tokens=1,2" %%P in (probe.txt) do if %%P==level if %%Q lss 41 ffmpeg -y -i %%M -crf 20 -level 41 -c:a copy "%%~nM_new.mkv"
    )
    Ok, i'll give that a try tomorrow .. thanks
    Quote Quote  



Similar Threads

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