CD audio ripping.

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
mootay
New Cone
New Cone
Posts: 1
Joined: 05 Nov 2013 00:38

CD audio ripping.

Postby mootay » 05 Nov 2013 04:44

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?

Rémi Denis-Courmont
Developer
Developer
Posts: 15152
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: CD audio ripping.

Postby Rémi Denis-Courmont » 05 Nov 2013 17:01

Yes and yes.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: CD audio ripping.

Postby kodela » 22 Nov 2013 16:46

Hallo Rémi Denis-Courmont,

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

thank You, kodela

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: CD audio ripping.

Postby kodela » 03 Dec 2013 00:05

Hallo Rémi Denis-Courmont,

please, how ... ?

kodela

mederi
Big Cone-huna
Big Cone-huna
Posts: 1950
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: CD audio ripping.

Postby mederi » 03 Dec 2013 16:27

Media > Stream... > ... > ... :sout-keep
in Generated stream otput string.

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: CD audio ripping.

Postby kodela » 03 Dec 2013 22:21

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

mederi
Big Cone-huna
Big Cone-huna
Posts: 1950
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: CD audio ripping.

Postby mederi » 04 Dec 2013 01:14

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

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: CD audio ripping.

Postby kodela » 04 Dec 2013 09:23

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

mederi
Big Cone-huna
Big Cone-huna
Posts: 1950
Joined: 15 Mar 2011 16:38
VLC version: 2.0.8
Operating System: Windows Vista/XP

Re: CD audio ripping.

Postby mederi » 05 Dec 2013 12:47

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.

kodela
Big Cone-huna
Big Cone-huna
Posts: 632
Joined: 25 Sep 2012 19:40
VLC version: 2.2.4
Operating System: Windows 10
Location: Germany

Re: CD audio ripping.

Postby kodela » 06 Dec 2013 01:14

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

GuidoGam
New Cone
New Cone
Posts: 1
Joined: 22 Jul 2014 16:21

Re: CD audio ripping.

Postby GuidoGam » 22 Jul 2014 16:28

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?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 11 guests