Check the real video file container and the correctnes of meta structures

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Check the real video file container and the correctnes of meta structures

Ben Stover
Assume I got a video file "asample.mkv"

The extension indicates that this is a Video+Audio in a Matroska container.

But I doubt this is really the case. I think it could be a MP4 container as well and accidentially got a wrong extension.

How can I let ffmpeg check the real container (not paying attention to the extension but at the internal structures) and verify the correctness of the
internal metastructures (header fields, trrack definitions,....)

Ben
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Check the real video file container and the correctnes of meta structures

Carl Eugen Hoyos-2
2018-11-08 6:21 GMT+01:00, Ben <[hidden email]>:
> Assume I got a video file "asample.mkv"
>
> The extension indicates that this is a Video+Audio in a Matroska container.

No.
(In the sense of: It may indicate this for a human being, FFmpeg
tries to ignore the extension.)

> But I doubt this is really the case. I think it could be a MP4 container as
> well and accidentially got a wrong extension.
>
> How can I let ffmpeg check the real container (not paying attention to the
> extension but at the internal structures)

Command line and complete, uncut console output missing;-)

(The behaviour you are asking for is FFmpeg's default behaviour.)

> and verify the correctness of the
> internal metastructures (header fields, trrack definitions,....)

No, FFmpeg is not a stream validator, on the contrary, it tries hard to
read files with incorrect internal metastructures.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
[hidden email]
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".