You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

使用Instagram API上传Reels时提示视频格式不支持的问题求助

Instagram API上传Reels时提示视频格式不支持的问题求助

大家好,我最近碰到个棘手的问题:用Instagram API上传图片完全没问题,但上传Reels的时候一直报错,提示**"The video format is not supported. Please check spec for supported aspect_ratio format."**

我是用FFmpeg来编译视频的,相关的代码片段如下:

compile: () => {
    return new Promise(async (resolve, reject) => {
        try {
            const videosDir = path.join(__dirname, '../public/images'); // Directory containing video files
            const outputVideoPath = path.join(__dirname, '../public/videos', 'output.mov'); // Output video path
            const audioFilePath = path.join(__dirname, '../voiceOver', 'voiceoverCut.wav'); // Path to the audio file
            // const subtitlesFilePath = path.join(__dirname, '../voiceOver', 'subtitles.srt'); // Path to the subtitles file (using .srt format)
            const subtitlesFilePath = 'D\\:/programming/ai/voiceOver/subtitles.srt' // Path to the subtitles file (using .srt format)

            console.log("Audio file path:", ...

有没有朋友能帮忙分析下问题出在哪?会不会是FFmpeg的参数没配置到位,导致视频的比例或者编码格式不符合Instagram Reels的要求?

备注:内容来源于stack exchange,提问作者yahiya

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 14:14:52