[FFmpeg-user] ffprobe error return

Carl Zwanzig cpz at tuunq.com
Wed Jan 18 21:01:46 EET 2023


On 1/16/2023 12:30 AM, Yazhou (William) He wrote:

> I have also double checked it on VLC and found the video is unplayable for
> the last a few seconds, 

Pretty much everything confirms that you have a corrupt file. You might be 
able to scrape some metadata out since it's partly playable, but IIRC most 
of the interesting MP4 metadata is at the end (unless the file was 
re-created for "fast start").

Is there specific metadata that you need?


> Just in case the attached text is unreadable, I also put the full text here:

Please, just drop the text into the email, no need for the attachments.


> C:\Users\Ingest_1>ffprobe
> G:\Ballymun\Harddrive_SIPS\Donation\aaa5844\59023442-d512-4206-9b18-2d9326821821\objects\DJI_0034.MP4
> ffprobe version 5.1.2-full_build-www.gyan.dev Copyright (c) 2007-2022 the
> FFmpeg developers
...
> [mov,mp4,m4a,3gp,3g2,mj2 @ 000001e61beee200] Invalid sample size -1
> [mov,mp4,m4a,3gp,3g2,mj2 @ 000001e61beee200] error reading header
> G:\Ballymun\Harddrive_SIPS\Donation\aaa5844\59023442-d512-4206-9b18-2d9326821821\objects\DJI_0034.MP4:
> Invalid data found when processing input


> # vlc report
> 
> mp4 warning: track[0x1] will be disabled (eof?): Failed to read -1 bytes
> sample at 1867557853

Just based on that, it's possible (likely?) that the file wasn't properly 
"finalized" when it was created, but I am not an expert here. You should be 
able salvage the readable streams into another file by copying them with ffmpeg.


Also, please find out what "top-posting" is and avoid doing so on this 
mailing list.

Later,

z!


More information about the ffmpeg-user mailing list