19. November, 2010

ts2mp3

Der folgende Inhalt ist eine Gedächtnisstütze für mich – damit kann man ganze Verzeichnisse von .ts-Aufnahmen einer Dreambox in MP3-Files wandeln:

:******************************************************************************
:* Function:  Extract the audio from a TS file and output it to an MP3 file.
:* Syntax:    TS2MP3 "directorypath and name"
:* Requires:  VLC.EXE (VideoLan)
:******************************************************************************
@echo off
set ts2mp3.p=C:\Program Files\MediaPlayer\VideoLAN\VLC\vlc.exe
set ts2mp3.a=--sout=#transcode{acodec="mp3",ab="256",channels="2"}
set ts2mp3.c=vlc://quit
@echo on
FOR /R %1 %%G IN (*.ts) DO "%ts2mp3.p%" -vvv %%~dG%%~pG%%~nG.ts %ts2mp3.a%:standard{access="file",mux="raw",dst="%%~dG%%~pG%%~nG.mp3"} %ts2mp3.c%

Möchtest Du antworten?