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

How to add cover image to audio on the "fly" (stream) ? #1271

Open
websharik opened this issue May 4, 2024 · 0 comments
Open

How to add cover image to audio on the "fly" (stream) ? #1271

websharik opened this issue May 4, 2024 · 0 comments

Comments

@websharik
Copy link

websharik commented May 4, 2024

I was try:

//add cover image to stream
ffmpeg(audioStream)
  //.addInput("./tmp.jpg") //also no attach to streams
  .addInput(coverImageUrl)
  .addOption('-map', '0:a')
  .addOption('-map', '1')
  .addOption('-codec', 'copy')
  .addOption('-disposition:v', 'attached_pic')
  .outputFormat('mp3') //required for streams
  /*.output(
    filePath, //cover image fine
    writeStream //no cover image
  )*/
  //.run()
  .pipe(writeStream) //no cover image

Working with flac and wav.

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