andrewrk / andrewrk/node-sox

Transcode mp3 to ogg failes

Đang mở
#5 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
62
Fork
22
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

While trying to transcode a mp3 file to ogg using the following code...

```
var job = sox.transcode('src.mp3', 'dest.ogg', {
sampleRate: 44100,
format: 'ogg',
channelCount: 2,
bitRate: 192 * 1024,
compressionQuality: -1
});
```

I get the following error...

```
{ [Error: sox returned nonzero exit code: 2]
code: 2,
stdout: '',
stderr: 'sox FAIL formats: can\'t open output file `dest.ogg\': Vorbis compression quality nust be between -1 and 10\n',
args:
[ '--guard',
'--magic',
'--show-progress',
'src.mp3',
'-r',
44100,
'-t',
'ogg',
'-C',
191,
'-c',
2,
'dest.ogg' ] }
```

Which is due to the following code...

```
'-C', Math.round(self.options.bitRate / 1024) +
self.options.compressionQuality,
```

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.