search

Home  >  Q&A  >  body text

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

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

天蓬老师天蓬老师2784 days ago611

reply all(1)I'll reply

  • 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)

    reply
    0
  • Cancelreply