merge mp3

About encoding, codec settings, muxers and filter usage
snaggy
New Cone
New Cone
Posts: 4
Joined: 06 Jun 2009 10:37

merge mp3

Postby snaggy » 06 Jun 2009 10:40

I usually merge mp3 files of the same bitrate without re-econding, but at times it doesn't work
How can I merge different files with vlc, decoding and then re-encoding them so that I'm sure I have a clean output?
thanks

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

Re: merge mp3

Postby Rémi Denis-Courmont » 06 Jun 2009 15:03

vlc file1.mp3 file2.mp3 --sout-keep --sout '#gather:std{access=file,mux=raw,dst=merged.mp3}'
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

snaggy
New Cone
New Cone
Posts: 4
Joined: 06 Jun 2009 10:37

Re: merge mp3

Postby snaggy » 06 Jun 2009 19:14

that's not re-encoding, is it?
I want to redo the mp3 encoding...

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

Re: merge mp3

Postby Rémi Denis-Courmont » 06 Jun 2009 19:55

No. It's remultiplexing.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

snaggy
New Cone
New Cone
Posts: 4
Joined: 06 Jun 2009 10:37

Re: merge mp3

Postby snaggy » 06 Jun 2009 21:09

anyway, it doesn't work... I added the equal sign after --sout (it whould be there, shouldn't it?) but it still won't work..
in the cl output it says in red "object is not attached"

any idea?

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

Re: merge mp3

Postby Rémi Denis-Courmont » 07 Jun 2009 14:53

sounds like you are using a prehistoric version.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

snaggy
New Cone
New Cone
Posts: 4
Joined: 06 Jun 2009 10:37

Re: merge mp3

Postby snaggy » 07 Jun 2009 19:31

sorry but I tried it on two differen OS (macOSX and Ubuntu) with the latest version, with different kinds of mp3, and it always gives this error:

main stream output error: object is not attached

what's the problem?

doriantessore
New Cone
New Cone
Posts: 1
Joined: 20 Sep 2010 22:45

Re: merge mp3

Postby doriantessore » 20 Sep 2010 22:53

Hi,
I need to merge two .flv files. They have exactly the same characteristics (I downloaded them as two parts of a 15 min long single video from youtube - now I want again the original video).
I tried:
1.
c:\programmi/videolan/vlc/vlc.exe -vvv "d:\tmp/one.flv" "d:\tmp/two.flv" --sout-keep --sout=#gather{} --sout=#standard{access=file,mux=raw,dst=d:\tmp/out.flv} --sout-all

2.
c:\programmi/videolan/vlc/vlc.exe -vvv "d:\tmp/one.flv" "d:\tmp/two.flv" --sout-keep --sout='#gather:std{access=file,mux=raw,dst=d:\tmp/out.flv}'

But both dont work !!
Please help.
Thanx
Dorian

GuccizBud
New Cone
New Cone
Posts: 9
Joined: 25 Dec 2013 23:49

Re: merge mp3

Postby GuccizBud » 06 Aug 2014 00:21

For his trouble, this OP was (a) given advice which he didn't ask for ( he specified he wanted to transcode ) and didn't work for him in any case ( nor will it work for anybody with those silly-ass single quote marks ), and then (b) ignored when he said the advice wasn't working. I'm sure the board can't be too proud of this thread. And, 4 year old thread notwithstanding, people who want to do the same thing will keep coming back to it as it's one of the first Google search results.

For future visitors, and keeping in mind the OP wanted to transcode, this'll do it :

                    %ProgramFiles%\<vlc install folder>\vlc FILE_1.mp3 FILE_2.mp3 --sout
                    "#transcode{acodec=mp3,ab=<desired bit rate>,channels=2}:std{access=file,mux=raw,dst=OUTFILE.mp3}" --sout-keep

          • you have to supply the data yourself for anything in blue
          • for <desired bit rate>, you can just use the same bit rate as the two original files if they're identical.
          • the whole thing is on a single command line, not two as it seems here, with a single space between --sout at the end of the first line
                    and "#transcode… at the beginning of the second.

Open a command shell and run it from right there ( %UserProfile%\Desktop folder ).


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 17 guests