Android Mux mp4a和mp4

时间:2018-08-03 10:39:27

标签: java android mp4

我提取了MPEG-DASH xml,并手动下载了媒体网址,并且我有一个mp4视频文件,而音频文件已分别保存到mp4a文件中。
我想将此音频和视频文件合并为单个mp4文件。
我尝试使用MediaMuxer,但是MediaExtractor不知道mp4a文件。

我提取了文件编解码器等元数据信息,以及下面的其他详细信息。

音频文件元数据信息

MDItemAudioBitRate                = 48
kMDItemAudioChannelCount           = 1
kMDItemCodecs                      = (
    AAC
)
kMDItemContentCreationDate         = 2018-08-03 09:41:01 +0000
kMDItemContentCreationDate_Ranking = 2018-08-03 00:00:00 +0000
kMDItemContentModificationDate     = 2018-08-03 09:41:01 +0000
kMDItemContentType                 = "public.mpeg-4"
kMDItemContentTypeTree             = (
    "public.mpeg-4",
    "public.item",
    "public.movie",
    "public.audiovisual-content",
    "public.mpeg-4",
    "public.data",
    "public.content"
)
kMDItemDateAdded                   = 2018-08-03 09:41:01 +0000
kMDItemDateAdded_Ranking           = 2018-08-03 00:00:00 +0000
kMDItemDisplayName                 = "1533200401950_a.mp4"
kMDItemDurationSeconds             = 1129.732
kMDItemFSContentChangeDate         = 2018-08-03 09:41:01 +0000
kMDItemFSCreationDate              = 2018-08-03 09:41:01 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 0
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "1533200401950_a.mp4"
kMDItemFSNodeCount                 = (null)
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 7068402
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2018-08-03 00:00:00 +0000
kMDItemKind                        = "MPEG-4 movie"
kMDItemLastUsedDate                = 2018-08-03 11:18:56 +0000
kMDItemLastUsedDate_Ranking        = 2018-08-03 00:00:00 +0000
kMDItemLogicalSize                 = 7068402
kMDItemMediaTypes                  = (
    Sound
)
kMDItemPhysicalSize                = 7069696
kMDItemStreamable                  = 0
kMDItemTotalBitRate                = 48
kMDItemUseCount                    = 7
kMDItemUsedDates                   = (
    "2018-08-02 19:30:00 +0000"
)

视频元数据信息:

kMDItemCodecs                      = (
    "H.264"
)
kMDItemContentCreationDate         = 2018-08-03 11:06:58 +0000
kMDItemContentCreationDate_Ranking = 2018-08-03 00:00:00 +0000
kMDItemContentModificationDate     = 2018-08-03 11:07:02 +0000
kMDItemContentType                 = "public.mpeg-4"
kMDItemContentTypeTree             = (
    "public.mpeg-4",
    "public.item",
    "public.movie",
    "public.audiovisual-content",
    "public.mpeg-4",
    "public.data",
    "public.content"
)
kMDItemDateAdded                   = 2018-08-03 11:06:58 +0000
kMDItemDateAdded_Ranking           = 2018-08-03 00:00:00 +0000
kMDItemDisplayName                 = "1533200401950_v.mp4"
kMDItemDurationSeconds             = 1129.441
kMDItemFSContentChangeDate         = 2018-08-03 11:07:02 +0000
kMDItemFSCreationDate              = 2018-08-03 11:06:58 +0000
kMDItemFSCreatorCode               = ""
kMDItemFSFinderFlags               = 0
kMDItemFSHasCustomIcon             = (null)
kMDItemFSInvisible                 = 0
kMDItemFSIsExtensionHidden         = 0
kMDItemFSIsStationery              = (null)
kMDItemFSLabel                     = 0
kMDItemFSName                      = "1533200401950_v.mp4"
kMDItemFSNodeCount                 = (null)
kMDItemFSOwnerGroupID              = 20
kMDItemFSOwnerUserID               = 501
kMDItemFSSize                      = 107974918
kMDItemFSTypeCode                  = ""
kMDItemInterestingDate_Ranking     = 2018-08-03 00:00:00 +0000
kMDItemKind                        = "MPEG-4 movie"
kMDItemLastUsedDate                = 2018-08-03 11:07:06 +0000
kMDItemLastUsedDate_Ranking        = 2018-08-03 00:00:00 +0000
kMDItemLogicalSize                 = 107974918
kMDItemMediaTypes                  = (
    Video
)
kMDItemPhysicalSize                = 117506048
kMDItemPixelHeight                 = 704
kMDItemPixelWidth                  = 396
kMDItemStreamable                  = 0
kMDItemTotalBitRate                = 762
kMDItemUseCount                    = 1
kMDItemUsedDates                   = (
    "2018-08-02 19:30:00 +0000"
)
kMDItemVideoBitRate                = 762

请咨询

0 个答案:

没有答案