VLC / 1by1

miércoles, 8 de febrero de 2012

Para reproducir música en windows utilizo 1by1, un pequeño programa pero muy útil.

VLC, es un grandísimo programa, reproduce de casi todo multimedia y también aparte de grabador, se puede utilizar para convertir un fichero de formato, por ejemplo un *.flv a *.mp3. Para hacer una conversión múltiple (de varios ficheros a la vez) será de utilidad crear un *.bat como el que nos muestran en wiki.vlc. ( presta atención en la carpeta donde tengas instalada VLc, presupone "C:\Archivos de programa\media.VLC\" )

Ej conversión *.m4a a *.mp3
(copiado de original y modificado nombre final archivo)

@ECHO OFF
REM ########################################################################
REM # A Windows XP cmd.com script to batch convert m4a files to mp3. #
REM # #
REM # Copyright (C) 2008 Andrew Boden #
REM # (boden@graduate.uwa.edu.au) #
REM # #
REM # This program is free software: you can redistribute it and/or modify #
REM # it under the terms of the GNU General Public License as published by #
REM # the Free Software Foundation, either version 3 of the License, or #
REM # (at your option) any later version. #
REM # #
REM # This program is distributed in the hope that it will be useful, #
REM # but WITHOUT ANY WARRANTY; without even the implied warranty of #
REM # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
REM # GNU General Public License for more details. #
REM # #
REM # You should have received a copy of the GNU General Public License #
REM # along with this program. If not, see .#
REM # #
REM # Version 1.0 (June 27th 2008) #
REM # Uses VideoLAN VLC 0.8.6h (www.videolan.org) #
REM # Gracefully handles commas and apostrophes in file names. #
REM # Not aware of any other characters needing graceful handling. #
REM # 512kbps encoding with 44100 sampling. #
REM ########################################################################

@ECHO OFF
FOR /R %%G IN (*.m4a) DO (CALL :SUB_VLC "%%G")
FOR /R %%G IN (*.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:\Archivos de programa\media.VLC\vlc" -I dummy -vvv %1 --sout=#transcode{acodec="mp3",ab="512","channels=2"}:standard{access="file",mux="raw",dst="%_commanm%.mp3"} 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

javascript:void(0)