how to know before downloading whether the moov atom is at the beginning or end #10003

Closed
opened 2026-02-21 04:06:39 -05:00 by deekerman · 4 comments
Owner

Originally created by @sant527 on GitHub (Feb 15, 2017).

example link: "http://video.nationalgeographic.com/video/greenhouse-what-counts-env?gc=%2Fvideo%2Fenvironment%2Fenergy"

youtube-dl "http://video.nationalgeographic.com/video/greenhouse-what-counts-env?gc=%2Fvideo%2Fenvironment%2Fenergy"

How to know the whether the moov atom exist beginning or end of file.

Here the file is small. But in somecase the videos are 30MB+. I have to wait till the entire video is downloaded.

If i know the what type of file w.r.t moov atom then i can decide whether to download or not

Originally created by @sant527 on GitHub (Feb 15, 2017). example link: "http://video.nationalgeographic.com/video/greenhouse-what-counts-env?gc=%2Fvideo%2Fenvironment%2Fenergy" `youtube-dl "http://video.nationalgeographic.com/video/greenhouse-what-counts-env?gc=%2Fvideo%2Fenvironment%2Fenergy" ` How to know the whether the moov atom exist beginning or end of file. Here the file is small. But in somecase the videos are 30MB+. I have to wait till the entire video is downloaded. If i know the what type of file w.r.t moov atom then i can decide whether to download or not
Author
Owner

@yan12125 commented on GitHub (Feb 15, 2017):

how to know before downloading

Impossible. You can check whether moov is already there after the download just starts.

@yan12125 commented on GitHub (Feb 15, 2017): > how to know before downloading Impossible. You can check whether moov is already there after the download just starts.
Author
Owner

@sant527 commented on GitHub (Feb 15, 2017):

how to check moov immediately after download starts. Any bash script

@sant527 commented on GitHub (Feb 15, 2017): how to check moov immediately after download starts. Any bash script
Author
Owner

@yan12125 commented on GitHub (Feb 15, 2017):

IIRC ffprobe will report an error is moov is missing

@yan12125 commented on GitHub (Feb 15, 2017): IIRC ffprobe will report an error is moov is missing
Author
Owner

@sant527 commented on GitHub (Feb 15, 2017):

Ok.

@sant527 commented on GitHub (Feb 15, 2017): Ok.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/youtube-dl#10003
No description provided.