Error publishing video that match the specs
2

Hey there,

I'm trying to publish a video using the /media_publish endpoint but I am running into an error everytime:

error: { message: "The video file you selected is in a format that we don't support.", type: 'OAuthException', code: 352, error_subcode: 2207026, is_transient: false, error_user_title: 'Format non pris en charge', error_user_msg: 'Ce format vidéo n’est pas pris en charge. Consultez les caractéristiques pour connaître les formats aspect_ratio adaptés', fbtrace_id: 'A7_f83qX5d_qlpqwVXa8czf' }

This seems to indicate that the video file does not match the specs described here: https://developers.facebook.com/docs/instagram-platform/instagram-graph-api/reference/ig-user/media

The specs: Container: MOV or MP4 (MPEG-4 Part 14), no edit lists, moov atom at the front of the file. Audio codec: AAC, 48khz sample rate maximum, 1 or 2 channels (mono or stereo). Video codec: HEVC or H264, progressive scan, closed GOP, 4:2:0 chroma subsampling. Frame rate: 23-60 FPS. Picture size: Maximum columns (horizontal pixels): 1920 Required aspect ratio is between 0.01:1 and 10:1 but we recommend 9:16 to avoid cropping or blank space. Video bitrate: VBR, 25Mbps maximum Audio bitrate: 128kbps Duration: 15 mins maximum, 3 seconds minimum File size: 1GB maximum

The thing is, I check every little details to make sure my videos matchs the required specs. Here's an example ffprobe of a video giving an error:

ffprobe version 6.0 Copyright (c) 2007-2023 the FFmpeg developers built with Apple clang version 14.0.0 (clang-1400.0.29.202) configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/6.0 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon libavutil 58. 2.100 / 58. 2.100 libavcodec 60. 3.100 / 60. 3.100 libavformat 60. 3.100 / 60. 3.100 libavdevice 60. 1.100 / 60. 1.100 libavfilter 9. 3.100 / 9. 3.100 libswscale 7. 1.100 / 7. 1.100 libswresample 4. 10.100 / 4. 10.100 libpostproc 57. 1.100 / 57. 1.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'https://storage.googleapis.com/klap-assets/output_9.mp4': Metadata: major_brand : mp42 minor_version : 512 compatible_brands: mp42iso2avc1mp41 encoder : Lavf60.3.100 comment : Made with Remotion 4.0.160 Duration: 00:00:59.02, start: 0.000000, bitrate: 4339 kb/s Stream #0:00x1: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(tv, bt470bg/unknown/unknown, progressive), 1080x1920 [SAR 1:1 DAR 9:16], 4203 kb/s, 29.99 fps, 30 tbr, 15360 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc60.3.100 libx264 Stream #0:10x2: Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 129 kb/s (default) Metadata: handler_name : SoundHandler vendor_id : [0][0][0][0]

And here's the actual video file: https://storage.googleapis.com/klap-assets/output_9.mp4

As you can see, my videos matches all the required specs. What am I missing?

Also, the API seems to refuse any video over 1 minute, even tho the specs quote "15 mins maximum, 3 seconds minimum". Is there any documentation about that?

Theo
ถามแล้ว ประมาณหนึ่งเดือนที่แล้ว
คำตอบที่เลือก
1

Hey Theo! TPM @ Meta. The team has addressed this bug of early this morning. Could you please give it another try and let us know if it’s fully resolved? Thx so much

20 กันยายน เวลา 11:12 น.
Joana
Wojtek

We're still experiencing similar errors while having files converted in a same fashion as original poster, could you advise?

1 ตุลาคม เวลา 03:42 น.