Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce Stream Type enum for FFprobe #24

Closed
kokorin opened this issue Jul 1, 2018 · 1 comment
Closed

Introduce Stream Type enum for FFprobe #24

kokorin opened this issue Jul 1, 2018 · 1 comment

Comments

@kokorin
Copy link
Owner

kokorin commented Jul 1, 2018

com.github.kokorin.jaffree.ffprobe.Stream#getCodecType

@kokorin
Copy link
Owner Author

kokorin commented Jul 8, 2018

const char *av_get_media_type_string(enum AVMediaType media_type)
{
switch (media_type) {
case AVMEDIA_TYPE_VIDEO: return "video";
case AVMEDIA_TYPE_AUDIO: return "audio";
case AVMEDIA_TYPE_DATA: return "data";
case AVMEDIA_TYPE_SUBTITLE: return "subtitle";
case AVMEDIA_TYPE_ATTACHMENT: return "attachment";
default: return NULL;
}
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant