recherche

Maison  >  Questions et réponses  >  le corps du texte

node.js - 用ffmpeg命令行获取json格式的视频的信息,在nodejs中怎么调用这些数据?

ffprobe -i 1.flv -print_format json -show_frames -show_format -show_streams -v 0

天蓬老师天蓬老师2871 Il y a quelques jours641

répondre à tous(1)je répondrai

  • PHP中文网

    PHP中文网2017-04-17 15:59:34

    child_process = require('child_process');
    json = child_process.execSync('ffprobe -i 1.flv -print_format json -show_frames -show_format -show_streams -v 0');
    
    console.log(json)

    répondre
    0
  • Annulerrépondre