dburckh / ExoPlayer

Deprecated. See https://github.com/dburckh/Media3Avi
Apache License 2.0
3 stars 2 forks source link

AVI mime type #4

Closed moneytoo closed 2 years ago

moneytoo commented 2 years ago

I understand that you define AVI with following mime type:

public static final String VIDEO_AVI = BASE_TYPE_VIDEO + "/x-msvideo";

I also see this mime type in various lists (related to Android) but when I actually work with AVI files on Android, I usually have to use video/avi to:

I don't know the history of these mime types so these are just my observations.

dburckh commented 2 years ago

Yeah, I think that's wrong. It does appear that the official mime type for avi is "video/x-msvideo", but a lot of times I'll see the extension in mime types. I would use both. :)

I think the way I have MP42 mapped is wrong, but I'm not sure what to map it to. I did just see that my Note S20 has a video/mp43, so I'm going to change it to video/mp42. I don't think it will work either way. :) I did get MP42 to play (poorly) when I mapped it to "video/mp43", but I don't think it's right.

Part of the issues is that container and the codec are both of type "video/", which confuses the matter.

dburckh commented 2 years ago

So, I found this in AOSP.

https://android.googlesource.com/platform/external/mime-support/+/refs/heads/master/mime.types

I would assume that means that "video/x-msvideo" is the official type for AVI on Android.