Skip to content

Commit

Permalink
fix: ret_filename_with_ext (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jinwoo1225 committed Jun 12, 2023
1 parent aaa3690 commit 595cfee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,9 @@ function App() {

ffmpeg.FS('writeFile', name, file)

await ffmpeg.run('-i', name, "-c:v", "copy", "-c:a", "libmp3lame", "-q:a", "4", 'output.mp3')
const fileName = name.split('.').slice(0, -1).join('.')

await ffmpeg.run('-i', name, "-c:v", "copy", "-c:a", "libmp3lame", "-q:a", "4", fileName+'.mp3')

const data = ffmpeg.FS('readFile', 'output.mp3')

Expand Down

1 comment on commit 595cfee

@vercel
Copy link

@vercel vercel bot commented on 595cfee Jun 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.