VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Jun 2007
    Location
    United Kingdom
    Search Comp PM
    Hi guys,

    As the title says; I need a solution to transcode a big batch of files, but i also need to keep the folder structure of the source the same as destination i.e.

    Input
    c:\input\folder name\folder\file1.flv
    c:\input\folder name\folder\file2.flv
    c:\input\folder name\folder\file3.flv
    etc

    Output
    c:\output\folder name\folder\file1.f4v
    c:\output\folder name\folder\file2.f4v
    c:\output\folder name\folder\file3.f4v
    etc

    I know Carbon Coder can do this, but at the moment it doesn't except FLV files.

    Anyone got any solutions for this?

    Thanks!
    Quote Quote  
  2. Member
    Join Date
    Jun 2007
    Location
    United Kingdom
    Search Comp PM
    Thinking of a solution.. how about this:

    FFmpeg to search for all the *.flv in the c:\ drive and transcode those directly and then outputting it out to the source folder.

    Would that be possible?
    Quote Quote  
  3. Member
    Join Date
    Jun 2007
    Location
    United Kingdom
    Search Comp PM
    bump..
    Quote Quote  
  4. Member
    Join Date
    Jun 2007
    Location
    United Kingdom
    Search Comp PM
    I found the following and SLIGHTLY modified it to suit my needs. But doesn't really do anything else apart from opening up the script - Where am i going wrong? This is using VLC to transcode out.

    Code:
    FOR /R %%G IN (*.flv) DO (CALL :SUB_VLC "%%G")
    FOR /R %%G IN (*.flv.f4v) DO (CALL :SUB_RENAME "%%G")
    GOTO :eof
    
    :SUB_VLC
     SET _firstbit=%1
     SET _qt="
     CALL SET _newnm=%%_firstbit:%_qt%=%%
     SET _commanm=%_newnm:,=_COMMA_%
     REM echo %_commanm%
     CALL "C:\Program Files (x86)\VideoLAN\VLC\vlc" -I dummy -vvv %1 --sout=#transcode{vcodec=h264, vb=400, acodec=mpga, ab=64,"channels=1",samplerate="44100"}:standard{access="file",mux="mpeg1",dst="%_commanm%.f4v"} vlc:quit
    GOTO :eof
    
    :SUB_RENAME
     SET _origfnm=%1
     SET _endbit=%_origfnm:*.flv=%
     CALL SET _newfilenm=%%_origfnm:.flv%_endbit%=.f4v%%
     SET _newfilenm=%_newfilenm:_COMMA_=,%
     COPY %1 %_newfilenm%
     DEL %1
    GOTO :eof
    
    :eof
    Quote Quote  



Similar Threads

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