fix-webm-meta icon indicating copy to clipboard operation
fix-webm-meta copied to clipboard

help, not work, also no duration at potplayer&chrome video tag

Open En777 opened this issue 2 years ago • 1 comments

// "fix-webm-metainfo": "1.0.8"
// "electron": "19.0.6"

console.warn('fixWebmFile', filePath)
  const fs = await import('fs-extra')
  let buffer = await fs.readFile(filePath)
  const fixWebm = await import('fix-webm-metainfo').then(js => js.default)
  // https://stackoverflow.com/questions/61731218/conversion-of-buffer-data-to-blob-in-nodejs
  let blob = new Blob([buffer], { type: 'video/webm;codecs=h264' })
  buffer = null
  blob = await fixWebm(blob)
  buffer = Buffer.from(await blob.arrayBuffer())
  blob = null
  await fs.writeFile(filePath + '-fixed.webm', buffer)
  console.warn('fixWebmFile end')

the -fixed.webm file also not have duration on video player. help, thanks.

En777 avatar Sep 19 '22 07:09 En777

the fixed.webm file can play well, but no video duration

En777 avatar Sep 19 '22 07:09 En777