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

浏览:34日期:2022-09-22

问题描述

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

问题解答

回答1:

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)

相关文章: