flac to "stereo mp3" not "joint stereo" using ffmpeg

2

After reading and trying contents of the post talking about flac to mp3 conversion, I didn't find the solution

I try this command again and again for converting flac to "stereo" mp3:

ffmpeg -i input.flac -vn -ac 2 -ar 44100 -ab 320k -f mp3 output.mp3

but the output is joint stereo
I need a stereo output.

Any help?
Cheers

samsam114

Posted 2017-01-01T15:34:27.787

Reputation: 131

1Can you actually tell the difference, audibly? – Tetsujin – 2017-01-01T15:58:11.323

Joint stereo is still stereo, just with improved efficiency (“fitting more sound in the same amount of data”) by using appropriate delta encoding for the second channel. – Daniel B – 2017-01-01T16:32:47.657

MediaInfo software shows some kind of difference between joint stereo and stereo file – samsam114 – 2017-01-01T18:05:53.403

1@samsam114 Yes of course, joint stereo needs to be processed differently to get the two distinct channels. – Daniel B – 2017-01-01T18:18:18.370

1Joint stereo is a different process, usually using mid-side difference, which is a perfectly sound [pardon the pun] way of differentiating audio by analysing the difference between left & right. For an mp3, if you can actually tell the difference between true stereo & mid-side, then power to your ears. I can't in 9 out of 10 cases & I'm a sound engineer ;) – Tetsujin – 2017-01-01T19:47:29.560

actually, my algorithm exactly relies the differences between stereo and joint in bits. – samsam114 – 2017-01-01T20:32:10.550

3I'm glad you guys cleared this up. I thought "joint stereo" was music you listen to while stoned. – fixer1234 – 2017-01-02T06:20:13.980

@samsam114 If your algorithm relies on a bit-perfect audio stream, why use a lossy compression like MP3? With good encoders, joint stereo offers superior quality. That’s why it’s the default. – Daniel B – 2017-01-02T08:46:30.097

@DanielB that's an order ;) – samsam114 – 2017-01-02T08:48:34.347

Answers

4

Joint stereo is enabled by default, so use

ffmpeg -i input.flac -vn -ac 2 -ar 44100 -ab 320k -joint_stereo 0 output.mp3

Gyan

Posted 2017-01-01T15:34:27.787

Reputation: 21 016

I've also used above command, but the output is still joint stereo – samsam114 – 2017-01-01T18:06:48.963

1Show the console output of your command. – Gyan – 2017-01-01T19:21:25.143

Input #0, flac, from 'input.flac': Duration: 00:02:55.84, start: 0.000000, bitrate: 754 kb/s Stream #0:0: Audio: flac, 44100 Hz, stereo, s16 Output #0, mp3, to 'output.mp3': Metadata: TSSE : Lavf56.40.101 Stream #0:0:Audio: mp3 (libmp3lame), 44100 Hz,stereo,s16p, 320 kb/s Metadata: encoder : Lavc56.60.100 libmp3lame Stream mapping: Stream #0:0 -> #0:0 (flac (native) -> mp3 (libmp3lame)) size= 6871kB time=00:02:55.85 bitrate= 320.1kbits/s video:0kB audio:6870kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.015479% – samsam114 – 2017-01-02T05:31:38.240

How are you checking for the channel mode and content? – Gyan – 2017-01-02T05:35:51.430

with media Info. I didn't find sth more exact. Do you suggest sth else? – samsam114 – 2017-01-02T05:37:24.140

My command works here. Which version of ffmpeg? – Gyan – 2017-01-02T05:55:01.690

ffmpeg version 2.8.3 Copyright (c) 2000-2015 the FFmpeg developers built with gcc 5.2.0 (GCC) – samsam114 – 2017-01-02T05:56:39.253

Any idea Mulvya? – samsam114 – 2017-01-02T06:18:06.963

2Try with a newer version. – Gyan – 2017-01-02T06:25:00.237

I will try it buddy and will let you know the progress – samsam114 – 2017-01-02T06:55:40.403

GREEEEEEAAAT :) it worked buddy. Thanks you Mulvya 2^256 time :) – samsam114 – 2017-01-02T07:26:14.863