I've only recently started to use VLC both as a media player and converter, but I already understand the basics of how media files are encoded and "packaged" in container formats...Although my comprehension of encoding schemes themselves isn't that great. I'm currently struggling with trying to use VLC to batch job a load of FLV files into MPEG-3 audio, with all of my attempts so far resulting in seemingly valid MP3 files that still contain the video data...And of course, I'd like to get the filesize down to reasonable proportions!
FYI: I'm using VLC 1.1.4 for Win32, trying to batch-strip ~50 FLV files into reasonably sized (1MB/min) MP3 audio.
Anyhow...I'm currently using a modified version of the DOS batch script shown Here, and though I've been playing around with various command line parameters, nothing seems to have achieved what I've set out to do in a satisfactory manner.
I know that VLC can produce the output that I'm looking for, as converting files via the GUI (Using "Convert/Save") gives the kind of output that I'm looking for. However - Because the Convert/Save dialogue only seems to support one file at a time - I'm not that keen on the idea of sitting here and manually selecting and transcoding each individual file, especially as I want to reproduce this collection at four seperate bit/sampling rates. (~200 files once I'm done! )
The command likes that I've tried thus far are given below, along with their result. The input file in all cases is a 22.4MB FLV video (5:09 in length) with H264-MPEG-4 AVC video, and an MPEG AAC audio stream:
- Output file is 22.2MB in size, registers as 24:15 long, and seems to split audio into chunks with long pauses in between.
Code: Select all
CALL "C:\Program Files\VideoLAN\VLC\vlc" -I dummy -vvv %1 --sout=#transcode{acodec="mp3",ab="128",samplerate="44100","channels=2"}:standard{access="file",mux-audio="ps",dst="%_commanm%.mp3",select="novideo"} vlc://quit
. - Output file is 21.0MB in size, but otherwise is the same as above.
Code: Select all
CALL "C:\Program Files\VideoLAN\VLC\vlc" -I dummy -vvv %1 :no-video --sout=#transcode{acodec="mp3",ab="128",samplerate="44100","channels=2"}:standard{access="file",mux=dummy,dst="%_commanm%.mp3"}
. - Output file is 22.2MB in size and same as first attempt above. Encoding done in VLC GUI insted of console.
Code: Select all
CALL "C:\Program Files\VideoLAN\VLC\vlc" %1 :no-video :sout=#transcode{acodec=mp3,ab=128,samplerate=44100,channels=2}:std{access=file,mux=dummy,dst="%_commanm%.mp3"}
If someone could please give me a command string that would do the above as I'm trying to, then I would be most greatful!
Farewell for now, and many thanks in advance!
+++ DieselDragon +++