5#include <AVFoundation/AVFoundation.h>
60 auto avtypes = [AVURLAsset audiovisualMIMETypes];
61 for (AVFileType filetype
in avtypes) {
64 if (strcmp(filetype.UTF8String,
m->name)) {
69 QList<QMediaFormat::VideoCodec> video;
70 QList<QMediaFormat::AudioCodec> audio;
75 extendedMimetype +=
v->name;
76 if ([AVURLAsset isPlayableExtendedMIMEType:[NSString stringWithUTF8String:extendedMimetype.constData()]])
84 extendedMimetype +=
a->name;
85 if ([AVURLAsset isPlayableExtendedMIMEType:[NSString stringWithUTF8String:extendedMimetype.constData()]])
126 int codecId = kAudioFormatMPEG4AAC;
134 codecId = kAudioFormatMPEG4AAC;
137 codecId = kAudioFormatMPEGLayer3;
143 codecId = kAudioFormatEnhancedAC3;
149 codecId = kAudioFormatAppleLossless;
155 codecId = kAudioFormatLinearPCM;
162 const char *
c =
"hvc1";
190 return [NSString stringWithUTF8String:
c];
197 return AVFileTypeMPEG4;
199 return AVFileTypeQuickTimeMovie;
201 return AVFileTypeMPEGLayer3;
203 return AVFileTypeAppleM4A;
205 return AVFileTypeWAVE;
207 return AVFileTypeQuickTimeMovie;
Combined button and popup list for selecting options.
GLsizei const GLfloat * v
[13]
GLboolean GLboolean GLboolean GLboolean a
[7]