VideoHelp Forum
+ Reply to Thread
Results 1 to 5 of 5
Thread
  1. Member
    Join Date
    Dec 2017
    Location
    Toronto, Canada
    Search Comp PM
    I have batches of videos (thousands) and I would like to know which of them already have the MOOV atom at the start of the video. This way we do not have to optimize everything, just the ones without it done already.
    Quote Quote  
  2. Use a hex editor and look for "moov"? It will either be near the start of the file or near the end.
    Quote Quote  
  3. Code:
    DEL list.txt
    FOR %%a IN (*.mp4) DO (
    	mp4box -info "%%~a" 2>&1 1>NUL | find "File suitable for progressive download (moov before mdat)"
    	IF ERRORLEVEL 1 ( 
    		ECHO %%~a >> list.txt
    	) ELSE (
    		ECHO "do nothing"
    	)
    )
    Of course instead of adding the file name to the list you could also let it run the remux process. (mp4box -add "%%~a" -new "%%~na_fixed.mp4")
    Quote Quote  
  4. Sneaker, nice batch file. Just as a warning to others: I was using an old version of mp4box.exe that didn't report on progressive download. So the batch file was showing all MP4 files instead just those with the moov atom at the end. After updating my mp4box.exe the batch file worked as expected.
    Quote Quote  
  5. Member
    Join Date
    Dec 2017
    Location
    Toronto, Canada
    Search Comp PM
    Thanks sneaker! I've adapter this script for another platform.
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!