Determine if compressed file is Web Optimized

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
BrianKitt
Posts: 6
Joined: Wed Apr 18, 2018 9:23 pm

Determine if compressed file is Web Optimized

Post by BrianKitt »

So I have a standard profile I use to compress videos. One of the things I do is 'Web Optimize' them.

Suddenly today, I noticed that Handbrake suddenly changed from my profile as the default profile to the 'Very Fast 1080' profile.

My biggest heartburn, is that this doesn't have 'Web Optimize' set.

I want to find out all of the videos that are compressed without the Web Optimize. Is there some way to scan videos and see which ones are, and which ones are not web optimized?

I am a developer, so if you could tell me something to look for in the container, I can probably write my own program to scan all of my video files, and find out which ones are optimized, and which ones are not.
mduell
Veteran User
Posts: 8187
Joined: Sat Apr 21, 2007 8:54 pm

Re: Determine if compressed file is Web Optimized

Post by mduell »

See if you find the moov atom at the front of the file or at the end.

You can use AtomicParsley to check this, something like

Code: Select all

AtomicParsley input.mp4 -T | sed -n 2p | grep -q "moov" && echo "yup" || echo "nope"
Or the list (-l) option for qtfaststart.

Or look at the encode log HB produced to see if web optimized is enabled.
Post Reply