Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add metadata to output file #71

Open
ldevalbray opened this issue May 6, 2020 · 1 comment
Open

Add metadata to output file #71

ldevalbray opened this issue May 6, 2020 · 1 comment

Comments

@ldevalbray
Copy link

ldevalbray commented May 6, 2020

Hello,
I'm trying to convert mp4 video file to mp3 while adding metadata doing so :

 var process = new ffmpeg(videoPath);

          process.then(function (extractedVideo) {

           // I have also tried this way : extractedVideo.addCommand('-metadata', `title="TestTitle"`)
            extractedVideo.addCommand('-metadata:s:v', `title="TestTitle"`)

            const songPath = path.join(this.state.store.get('songPath'), songTitle + '.mp3');
            
            extractedVideo.fnExtractSoundToMP3("\"" + songPath + "\"", function (error, file) {

})

But looking at the output mp3 file, it does not add the metadata ...
I was also wondering the way to add multiple metadata ?

Any help would be much appreciated,
Thank you for your time !

@ldevalbray
Copy link
Author

@damianociarla sorry to disturb but, is this project still under development / maintenance ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant