react-native-audio-transcoder icon indicating copy to clipboard operation
react-native-audio-transcoder copied to clipboard

Cannot write output file

Open yborunov opened this issue 7 years ago • 3 comments

let newAudioPath = audioPath.replace('.aac', '.mp3')

const transcodeResult = await transcode(audioPath, newAudioPath)

throws Cannot write output file exception.

newAudioPath = /Users/user/Library/Developer/CoreSimulator/Devices/6CDD781C-BADC-4630-82E4-D25F76B3BF72/data/Containers/Data/Application/87E2E2CC-0415-48A6-B06A-FE990ADF21E4/Documents/file_1.mp3

screen shot 2018-07-31 at 8 52 42 pm

yborunov avatar Aug 01 '18 00:08 yborunov

+1 same here

DevJS avatar Aug 09 '18 06:08 DevJS

I had the same issue. The problem is that the implementation has been changed for iOS. It no longer converts to .mp3 but to .m4a, although the readme is not updated to point that out.

ThomasAbbink avatar Nov 15 '18 12:11 ThomasAbbink

I can't comment too much on a update to re-implement the mp3 functionality as I no longer work on the project this was a part of, but as far as I can remember that was removed from the iOS version as some Apple update (whether that was iOS itself, AVMediaFoundation, or some other supporting library) caused the method for creating the file to fail

Commander-lol avatar Nov 21 '18 11:11 Commander-lol