How to fix "moov atom not found" error in ffmpeg?

user10664722 picture user10664722 · Apr 29, 2019 · Viewed 12.9k times · Source

Well, I'm using this project to create a Telegram bot which receives URL of mp4 files, downloads them on server and uploads them to Telegram.

everything works fine so far, except converting certain .mp4 files.

for example if I use a sample mp4 video from https://sample-videos.com/ it works fine and converts it successfully, but if I use, for example a video of some random website which is also simple .mp4 file, it doesn't work and throws this error:

[mov,mp4,m4a,3gp,3g2,mj2 @ 0x1932420] Format mov,mp4,m4a,3gp,3g2,mj2 detected only with low score of 1, misdetection possible! [mov,mp4,m4a,3gp,3g2,mj2 @ 0x1932420] moov atom not found data/720P_1500K_210306701.mp4: Invalid data found when processing input

Answer