VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Hello
    I'm using this script to mux videos
    Code:
    @echo off
    cls
    set rootfolder=C:\1\
    echo Enumerating all MKVs under %rootfolder%
    echo.
    for /r %rootfolder% %%a in (*.mkv) do (
        for /f %%b in ('mkvmerge -i "%%a" ^| find /c /i "subtitles"') do (
            if [%%b]==[0] (
                echo "%%a" has no subtitles
            ) else (
                echo.
                echo "%%a" has subtitles
                mkvmerge -q -o "%%~dpna (No Subs)%%~xa" -S "%%a" "%%~dpna.srt"
                if errorlevel 1 (
                    echo Warnings/errors generated during remuxing, original file not deleted
                ) else (
                    del /f "%%a"
                    echo Successfully remuxed to "%%~dpna (No Subs)%%~xa", original file deleted
                )
                echo.
            )
        )
    )
    Muxing speed is very low. It takes over 6 min to mux a 2GB mkv file ( it only uses %30 of ram and %5 of cpu )
    Is there any way to speedup?

    system info : 3GB Ram
    cpu : 2.70 Ghz ( 2 core )
    os : windows 2008 r2 64bit
    Quote Quote  
  2. Muxing speed is essentially only limited by HDD I/O. If you have 2 HDDs you can speed it up by reading the source mkv from HDD A and writing to HDD B.
    Quote Quote  
  3. Originally Posted by sneaker View Post
    Muxing speed is essentially only limited by HDD I/O. If you have 2 HDDs you can speed it up by reading the source mkv from HDD A and writing to HDD B.
    I use VPS server with one hard drive. Do you think if i split the hard speed will increase?
    Quote Quote  
  4. Two partitions will still be slow as long as they are still on the same physical HDD.
    Quote Quote  
  5. I put some raw AVC video and an AC3 stream on a single 2TB drive and muxed them into a 4.2GB MKV, and writing the output to the same drive took 2 minutes 17 seconds. The same two streams muxed from the single 2TB drive to a RAID-0 volume took 1 minute 50 seconds. Hmmmmm.... I'd hoped it'd be twice as fast......

    The single drive's on a different SATA controller that's not running in RAID mode, and I think it's a bit snappier.
    Anyway..... that was timed using an old quad core running XP and MKVMergeGUI 7.8.0.

    Over 6 minutes to mux a 2GB file does sound kind of sluggish. Unless the drive's especially fragmented, or busy doing other stuff at the same time, or it's a slow RPM laptop drive, or it's connected via USB2.
    Quote Quote  
  6. Originally Posted by hello_hello View Post
    busy doing other stuff at the same time
    He's using a VPS so a number of other people might be accessing the very same HDD simultaneously.
    Quote Quote  



Similar Threads

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