VideoHelp Forum
+ Reply to Thread
Results 1 to 3 of 3
Thread
  1. Hello,

    with the following script I want to convert all the m4a files into mp3 files. The problem is, sometimes only a few conversions take place so this script must be repeated sereval times. What is wrong with this script?

    @ECHO OFF
    FOR /R %%G IN (*.m4a) DO (CALL :SUB_VLC "%%G")
    FOR /R %%G IN (*.m4a.mp*) 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\VideoLAN\VLC\vlc" -I dummy -vvv %1 --sout=#transcode{acodec="mpga",ab="512","channels=2 "}tandard{access="file",mux="raw",dst="%_commanm%.mp 3"} vlc://quit
    GOTO :eof

    :SUB_RENAME
    SET _origfnm=%1
    SET _endbit=%_origfnm:*.m4a=%
    CALL SET _newfilenm=%%_origfnm:.m4a%_endbit%=.mp3%%
    SET _newfilenm=%_newfilenm:_COMMA_=,%
    COPY %1 %_newfilenm%
    DEL %1
    GOTO :eof

    :eof
    Blanc
    Quote Quote  
  2. Member Bernix's Avatar
    Join Date
    Apr 2016
    Location
    Europe
    Search Comp PM
    Hi,
    have you tried the first script that is on github page, from where you have this script?
    Still don't understand why to do it through script and VLC. In Gui, like LameXP you have full control over options in exported mp3. I think you can get better mp3 from this Gui at same size higher quality.
    Sorry, i don't like scripts. So only advice is to try the first script on the github page. They should do same thing and are bit different. HERE is that page.

    Bernix
    Quote Quote  
  3. Could you please upload the mentioned code here? For unknown reasons I can’t open this link.

    Blanc
    Quote Quote  



Similar Threads

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