sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
* Wav to Mp3 leads to an mp3 file that has a longer duration
@ 2019-12-11 14:26 Martin Ratinaud
  2019-12-11 17:18 ` Jeremy Nicoll - ml sox users
  2019-12-16 11:48 ` Måns Rullgård
  0 siblings, 2 replies; 16+ messages in thread
From: Martin Ratinaud @ 2019-12-11 14:26 UTC (permalink / raw)
  To: sox-users


[-- Attachment #1.1: Type: text/plain, Size: 1470 bytes --]

Hi all,

I'm converting a file called vocals.wav to vocals.mp3
 vocals.wav
<https://drive.google.com/file/d/1he1eCJag1G8iGkgL932jy_mXuLT_khGM/view?usp=drive_web>
For this I'm using this command

```
sox vocals.wav vocals.mp3
```
and here is the result of the corresponding files

- original file
```
soxi /Users/martin/Downloads/split-test/vocals.wav

Input File     : '/Users/martin/Downloads/split-test/vocals.wav'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:03:00.00 = 7938000 samples = 13500 CDDA sectors
File Size      : 31.8M
Bit Rate       : 1.41M
Sample Encoding: 16-bit Signed Integer PCM
```

- converted file
```
soxi /Users/martin/Downloads/split-test/vocals.mp3

Input File     : '/Users/martin/Downloads/split-test/vocals.mp3'
Channels       : 2
Sample Rate    : 44100
Precision      : 16-bit
Duration       : 00:03:00.04 = 7939544 samples = 13502.6 CDDA sectors
File Size      : 2.88M
Bit Rate       : 128k
Sample Encoding: MPEG audio (layer I, II or III)
```

You can see that the duration is not the same which is weird and the number
of samples also changed.
In fact, 1544 samples have been added to the beginning of the file

If I try to launch `sox -V vocals.mp3 vocals-trimmed.mp3 trim 1544s` it
does not work

Can you please help me

Thanks



-----------------------------------------------------------------------
*Martin RATINAUD*
-----------------------------------------------------------------------

[-- Attachment #1.2: Type: text/html, Size: 3022 bytes --]

[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



[-- Attachment #3: Type: text/plain, Size: 158 bytes --]

_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2019-12-19  9:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-12-11 14:26 Wav to Mp3 leads to an mp3 file that has a longer duration Martin Ratinaud
2019-12-11 17:18 ` Jeremy Nicoll - ml sox users
2019-12-12  4:18   ` Martin Ratinaud
2019-12-12 17:05     ` Jeremy Nicoll - ml sox users
2019-12-16  5:10       ` Martin Ratinaud
2019-12-16 11:48 ` Måns Rullgård
2019-12-16 12:02   ` Martin Ratinaud
2019-12-16 13:30     ` Måns Rullgård
2019-12-16 13:36       ` Martin Ratinaud
2019-12-16 17:44         ` Måns Rullgård
2019-12-17 10:04           ` Martin Ratinaud
2019-12-17 10:50             ` Måns Rullgård
2019-12-18  4:00               ` Martin Ratinaud
2019-12-18  7:43                 ` Mikko Olkkonen
2019-12-18  9:06                   ` Martin Ratinaud
2019-12-19  9:52                     ` Mikko Olkkonen

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).