Announcement

Collapse
No announcement yet.

Video COnverter file to avi

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Video COnverter file to avi

    I have many dvds that I have converted to AVIs using the profile "generic.avi.h264.audiocopy" These do not play on a particular tv that I have (Wrong format. I converted one to Generic.avi.divx.audiocopy and tv plays it fine. Because I have so may I have tried to write a batch file gleening bits of info from help and forums but no success. The deive I am using is an external drive G and if I select the source with a filder eg g:\tvin, batch opens then close. I will attach the batch file as I am sure I am doing something incorrectly. Looking for help please.

    set DVDSOURCE=G:\TVIN
    set DESTDIR=G:\TVOUT
    set DESTSUBDIR=
    set DVDFAB="C:\Program Files (x86)\DVDFab 8 QT\DVDFab.exe"
    set DESTTYPE=AVI
    set MODE="VIDEOAVI"
    set PROFILE="generic.avi.divx.audiocopy"
    set LANGUAGE="English"
    for /d %%X in ("%DVDSOURCE%\*") do (if not exist "%DESTDIR%\%DESTSUBDIR%\%%~nX.%DESTTYPE%" (%DVDFAB% /MODE %MODE% /SRC "%%X" /DEST "%DESTDIR%" /PROFILE %PROFILE% /CLOSE) else (echo "Exists %DESTFILES%\%DESTSUBDIR%\%%~nX.%DESTTYPE%"))
    Last edited by roodog46; 01-16-2013, 05:11 AM.

    #2
    Hi,

    Give this a try:
    Code:
    @echo off
    set DVDSOURCE=G:\TVIN
    set DESTDIR=G:\TVOUT
    set DESTSUBDIR=avi\
    set DVDFAB="C:\Program Files (x86)\DVDFab 8 QT\DVDFab.exe"
    set DESTTYPE=AVI
    set MODE="VIDEOAVI"
    set PROFILE="generic.avi.divx.audiocopy"
    set LANGUAGE="English"
    for /F "tokens=*" %%X in ('dir /B /S "%DVDSOURCE%\*"') do (
    if not exist "%DESTDIR%\%DESTSUBDIR%%%~nX.%DESTTYPE%" (
    set runcmd=%DVDFAB% /MODE %MODE% /SRC "%%X" /DEST "%DESTDIR%" /PROFILE %PROFILE% /CLOSE
    echo Running command: %runcmd%
    %runcmd%
    rem if not exist "%DESTDIR%\%DESTSUBDIR%%%~nX.%DESTTYPE%" (
    ) else (
    echo "File exists "%DESTDIR%\%DESTSUBDIR%%%~nX.%DESTTYPE%"
    rem if not exist "%DESTDIR%\%DESTSUBDIR%%%~nX.%DESTTYPE%" ) else ( 
    )
    rem for /F "tokens=*" %%X in ('dir /B /S "%DVDSOURCE%\*"') do (
    )
    Kevin

    Comment


      #3
      Thanks Kevin,
      Will be trying over the next hour or two. Will let you know result of course.

      Arthur

      Comment


        #4
        Kevin,

        Apart from a tweak with the "runcmd" all works well. I removed the reference for the runcmd as I was unable to spend much time on it and left the DVDFAB instructions as a line of code on its own without assigning it to a variable?? . All works fine without any problems. I appreciate your help and from the code you supplied, allowed me to learn something as well.
        Many thanks greatly appreciated. Your input is always very reliable

        Arthur

        Comment

        Working...
        X