我有一部便宜的功能手机,可以用3gp文件格式录制视频。当我把这样的视频上传到电脑上并用mediainfo检查时,它会给出mysterious输出:
Format : MPEG-4
Format profile : 3GPP Media Release 5
Codec ID : 3gp5 (3gp5)
File size : 4.69 MiB
Duration : 1 min 7 s
Overall bit rate : 585 kb/s
Encoded date : UTC 1970-01-01 00:02:13
Tagged date : UTC 1970-01-01 00:02:13
Video
ID : 2
Format : JPEG
Codec ID : jpeg
Duration : 1 min 7 s
Source duration : 1 min 7 s
Bit rate : 571 kb/s
Width : 240 pixels
Height : 320 pixels
Display aspect ratio : 0.750
Frame rate mode : Variable
Frame rate : 9.137 FPS
Minimum frame rate : 3.686 FPS
Maximum frame rate : 17.192 FPS
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.813
Stream size : 4.57 MiB (97%)
Source stream size : 4.57 MiB (97%)
Language : English
Encoded date : UTC 1970-01-01 00:02:13
Tagged date : UTC 1970-01-01 00:02:13
mdhd_Duration : 67133
视频编解码器是";JPEG";。当我在图腾视频播放器中播放视频时,编解码器名称为";JPEG静止图像";。我测试了我的手机不支持MJPEG,媒体信息显示编解码器(也(被识别为MPEG-4。当我在十六进制编辑器中打开视频时,它显示为JPEG图像序列,这是不可能的(3gp容器支持H.263和MPEG-4,而不是MJPEG(。另一方面,转换为3gp MPEG-4的示例视频提供了媒体信息输出:
Format profile : 3GPP Media Release 4
Codec ID : 3gp4 (isom/iso2/3gp4)
File size : 1.84 MiB
Duration : 16 s 50 ms
Overall bit rate mode : Variable
Overall bit rate : 960 kb/s
Video
ID : 1
Format : MPEG-4 Visual
Format profile : Simple@L3
Format settings, BVOP : No
Format settings, QPel : No
Format settings, GMC : No warppoints
Format settings, Matrix : Default (H.263)
Codec ID : mp4v-20
Duration : 16 s 50 ms
Bit rate mode : Variable
Bit rate : 659 kb/s
Maximum bit rate : 1 000 kb/s
Width : 240 pixels
Height : 180 pixels
Display aspect ratio : 16:9
Frame rate mode : Constant
Frame rate : 20.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.763
Stream size : 1.26 MiB (69%)
Title : ISO Media file produced by Google Inc.
Writing library : XviD 69
从技术上看,它也是MPEG-4。图腾将第二个视频识别为MPEG-4。第二个视频可以在我的手机上播放。我的问题是我如何用";jpeg";视频编解码器?我手机的芯片组是sc6531e(数据表在互联网上可用(
我已经弄清楚了,它只是Apple Quicktime MJPEG编解码器。它与3GP容器不兼容,它旨在与MOV一起工作。我的手机只是在标题中更改了几个字节,使其看起来像3GP,尽管它是MOV。以下是规格:https://developer.apple.com/library/archive/documentation/QuickTime/QTFF/QTFFPreface/qtffPreface.html.