suchen

Heim  >  Fragen und Antworten  >  Hauptteil

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

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

天蓬老师天蓬老师2871 Tage vor647

Antworte allen(1)Ich werde antworten

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

    Antwort
    0
  • StornierenAntwort