Closed mitchell-dream closed 2 years ago
Hi,
Having a look at the error it seems the issue is likely related to an unsupported audio format. Please check the file you are attempting to play and re-encode it in a way that is supported by AVPlayer
.
Hope that helps.
No activity since December. Closed.
The mp4 file can't play
Xcode error:
Mp4 file Meta Info { "media":{ "@ref":"noplay.mp4", "track":[ { "@type":"General", "VideoCount":"1", "AudioCount":"1", "FileExtension":"mp4", "Format":"MPEG-4", "Format_Profile":"Base Media", "CodecID":"isom", "CodecID_Compatible":"isom/iso2/avc1/mp41", "FileSize":"24382157", "Duration":"229.924", "OverallBitRate":"848355", "FrameRate":"25.000", "FrameCount":"5747", "StreamSize":"72037", "HeaderSize":"72029", "DataSize":"24310128", "FooterSize":"0", "IsStreamable":"Yes", "File_Modified_Date":"UTC 2021-12-13 04:02:07", "File_Modified_Date_Local":"2021-12-13 12:02:07", "Encoded_Application":"Multimedia Cloud Transcode (cloud.baidu.com)" }, { "@type":"Video", "StreamOrder":"0", "ID":"1", "Format":"AVC", "Format_Profile":"Baseline", "Format_Level":"3.1", "Format_Settings_CABAC":"No", "Format_Settings_RefFrames":"3", "CodecID":"avc1", "Duration":"229.880", "BitRate":"750226", "BitRate_Nominal":"800000", "Width":"1280", "Height":"720", "Sampled_Width":"1280", "Sampled_Height":"720", "PixelAspectRatio":"1.000", "DisplayAspectRatio":"1.778", "Rotation":"0.000", "FrameRate_Mode":"CFR", "FrameRate_Mode_Original":"VFR", "FrameRate":"25.000", "FrameCount":"5747", "ColorSpace":"YUV", "ChromaSubsampling":"4:2:0", "BitDepth":"8", "ScanType":"Progressive", "StreamSize":"21557743", "Encoded_Library":"bd264", "Encoded_Library_Name":"bd264", "Encoded_Library_Settings":"cpu=1049583 / preset=5 / input-res=1280x720 / fps=25/1 / bitdepth=8 / rc=abr / bitrate=800 / vbv_maxrate=1200 / vbv_bufsize=2400 / vbv_init=0.900000", "colour_description_present":"Yes", "colour_description_present_Source":"Stream", "colour_range":"Limited", "colour_range_Source":"Stream", "colour_primaries":"BT.709", "colour_primaries_Source":"Stream", "transfer_characteristics":"BT.709", "transfer_characteristics_Source":"Stream", "matrix_coefficients":"BT.709", "matrix_coefficients_Source":"Stream", "extra":{ "CodecConfigurationBox":"avcC" } }, { "@type":"Audio", "StreamOrder":"1", "ID":"2", "Format":"AAC", "Format_Settings_SBR":"No (Explicit)", "Format_AdditionalFeatures":"LC", "CodecID":"mp4a-40-2", "Duration":"229.924", "BitRate_Mode":"CBR", "BitRate":"96000", "Channels":"4", "ChannelPositions":"Front: L C R, Back: C", "ChannelLayout":"C L R Cb", "SamplesPerFrame":"1024", "SamplingRate":"44100", "SamplingCount":"10139648", "FrameRate":"43.066", "FrameCount":"9902", "Compression_Mode":"Lossy", "StreamSize":"2752377", "StreamSize_Proportion":"0.11288", "Default":"Yes", "AlternateGroup":"1" } ] } }