Page 1 of 1

CD audio ripping.

Posted: 05 Nov 2013 04:44
by mootay
Hello folks. I'm attempting to rip CD audio tracks and I found that even though VLC appeared to process each track, only the final track was contained in the destination file. Is it possible to combine all tracks into a single MP3 or perhaps make a batch job for each track?

Re: CD audio ripping.

Posted: 05 Nov 2013 17:01
by Rémi Denis-Courmont
Yes and yes.

Re: CD audio ripping.

Posted: 22 Nov 2013 16:46
by kodela
Hallo Rémi Denis-Courmont,

please, how it is possible to combine all the tracks into a single MP3?

thank You, kodela

Re: CD audio ripping.

Posted: 03 Dec 2013 00:05
by kodela
Hallo Rémi Denis-Courmont,

please, how ... ?

kodela

Re: CD audio ripping.

Posted: 03 Dec 2013 16:27
by mederi
Media > Stream... > ... > ... :sout-keep
in Generated stream otput string.

Re: CD audio ripping.

Posted: 03 Dec 2013 22:21
by kodela
Hi,

can you please describe in more detail.

Here is my approach:

Menu -> Media -> Stream...
Open Media -> Disc -> Audio CD ->
____Disc device = G:\ - Audio CD;
____Starting Position Track = 1;
____Edit Options = :disc-caching=300 :sout-keep
____-> Next
Destination Setup -> Filename = D:\VLC\Music\Test.mp3 -> Next
Transcoding Options -> Activate Transcoding = true
____Profile = Audio - MP3 ->
____Profile edition -> Encapsulation = RAW;
____Video codes -> Video = false;
____Audio codec -> Audio = true;
____Encoding parameters -> Codec = MP3;
____Bitrate = 192 kb/s;
____Channels = 2;
____Samplae Rate = 4800 Hz
____-> Save -> Next
Option Setup -> Generated stream output string =
____:sout=#transcode{vcodec=none,acodec=mp3,ab=192,channels=2,samplerate=48000}
________:file{dst=D:\\VLC\\Musik\\Test.raw,no-overwrite} :sout-keep
____-> Stream

What happens? -> nothing!

Message:

stream_out_standard error: no mux specified or found by extension
main error: stream chain failed for
____`transcode{vcodec=none,acodec=mp3,ab=192,channels=2,samplerate=48000}
____:file{dst=D:\\VLC\\Musik\\Test.raw,no-overwrite}'
main error: cannot start stream output instance, aborting

Where is my mistake?

Thank you.

kodela

Re: CD audio ripping.

Posted: 04 Dec 2013 01:14
by mederi
Track [0] << means all tracks.
[ ] Show more options << you do not need to add anything in Edit Options.
Check filename (the cause of your error message) in the Generated stream output string >> ...\\Test.mp3,no-overwrite} :sout-keep << ":sout-keep" is already there by default. I think, that "no-overwrite" is not necessary there.
Then check playlist to see all audio tracks there. While transcoding the first track, you have some time to reorder or delete following ones if you want.
--- EDIT ---
One related recent post: Playing Audio CD From Track Other Than #1

Re: CD audio ripping.

Posted: 04 Dec 2013 09:23
by kodela
Hi mederi,

thanks for your answer.

I know, Track [0] << means all tracks and Track [1] only Track 1.
That ": sout-keep" is set automatically, I know also, but you've written:
Media > Stream... > ... > ... :sout-keep
in Generated stream otput string.
The filename in the generated stream output string is correct with certainty.

Here is the new generated stream output string:

Code: Select all

:sout=#transcode{vcodec=none,acodec=mpga,ab=192,channels=2,samplerate=48000}:file{dst=D:\\VLC\\Music\\Test.raw} :sout-keep
And the error message:

stream_out_standard error: no mux specified or found by extension
main error: stream chain failed for `transcode{vcodec=none,acodec=mpga,ab=192,channels=2,samplerate=48000}:file{dst=D:\\VLC\\Musik\\Test.raw}'
main error: cannot start stream output instance, aborting


You write:
Then check playlist to see all audio tracks there.
When I start with:
Menu -> Media -> Stream...
Open Media -> Disc -> Audio CD ->

I see in the playlist no entry.

kodela

Re: CD audio ripping.

Posted: 05 Dec 2013 12:47
by mederi
O.K., sorry. I mean to fix the .raw filename extension to .mp3 in the Generated stream output string. Then

Code: Select all

:sout=#transcode{vcodec=none,acodec=mpga,ab=192,channels=2,samplerate=48000}:file{dst=D:\\VLC\\Music\\Test.mp3} :sout-keep
or

Code: Select all

:sout=#transcode{vcodec=none,acodec=mpga,ab=192,channels=2,samplerate=48000}:file{mux=raw,dst=D:\\VLC\\Music\\Test.mp3} :sout-keep
should work.
Are we there yet :)

I have just found out that once all the tracks are loaded in the playlist, I can stop the process before any conversion, then rearrange tracks or delete unwanted tracks and start the conversion process by double-clicking the first track in the altered playlist.

Re: CD audio ripping.

Posted: 06 Dec 2013 01:14
by kodela
Hi mederi,

thank you for your help. Both proposals function properly.

Here is a batch file, with which each track can be saved individually.

Code: Select all

@ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION SET /a n=0 SET f="" SET p=D:\\VLC\\Music\\ FOR /R G:\ %%L IN (*.cda) DO (CALL :sub_transcode "%%L") GOTO :eof :sub_transcode Call SET /a n=n+1 ECHO Transcoding %1 IF !n! LEQ 9 (GOTO :with_zero) ELSE (GOTO :without_zero) :with_zero CALL SET f=%p%Track_0!n!.mp3 GOTO :transcode :without_zero CALL SET f=%p%Track_!n!.mp3 :transcode CALL "C:\Program Files\VideoLAN\VLC\vlc.exe" -I http cdda:///G:/ --cdda-track=!n! :sout=#transcode{vcodec=none,acodec=mp3,ab=128,channels=2,samplerate=44100}:std{access="file",mux=raw,dst=!f!} vlc://quit :eof
kodela

Re: CD audio ripping.

Posted: 22 Jul 2014 16:28
by GuidoGam
I modified succesfully the batch file, thanks.
The main inconvinience has been that, in the italian version of windoz, the "Program files" directory shows up in Explorer with the name "Programmi", and in Cmd as "Program Files (x86)".
It seems to work, from Explorer I can see the generated files grow in size until they are closed and truncated at lenght zero. What's wrong?