gpt4 book ai didi

android - 是否可以在 Android 设备中查看 H.264 视频的 .mpeg 流?

转载 作者:行者123 更新时间:2023-11-29 22:25:20 33 4
gpt4 key购买 nike

这是一个具有一定设置的高度理论性问题:

我有一个视频编码器,可以将 H.264 高清视频打包成 .MPG 传输流进行传输。我可以剥离 TS 包装——如果 Android 不能给我我需要的速度,也许在编码器中——但我只剩下一个 H.264 基本流。我是否必须将其重新打包为一种受支持的流格式,以便 Android 设备查看流,或者它们可以处理 .MPG 流?

最佳答案

H.264 是仅 android >=3.0 支持的编码,大多数(所有?)版本都支持解码,带有 3gpp 或 MPEG-4 容器。 Gingerbread 添加了 MPEG-TS。

Format / Codec H.264 AVC

Encoder (Android 3.0+)

Decoder Yes

Details Baseline Profile (BP)

Supported File Type(s) / Container Formats: 3GPP (.3gp) and MPEG-4 (.mp4). MPEG-TS (.ts, AAC audio only, not seekable, Android 3.0+)

For video content that is streamed over HTTP or RTSP, there are additional requirements:

  • For 3GPP and MPEG-4 containers, the moov atom must precede any mdat atoms.

  • For 3GPP, MPEG-4, and WebM containers, audio and video samples corresponding to the same time offset may be no more than 500 KB apart. To minimize this audio/video drift, consider interleaving audio and video in smaller chunk sizes.

支持的媒体格式的完整列表在这里:http://developer.android.com/guide/appendix/media-formats.html

关于android - 是否可以在 Android 设备中查看 H.264 视频的 .mpeg 流?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6127683/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com