video - FFprobe 在非常大的 .mov 文件上报告无效的 sample_count

标签 video large-files mov ffprobe mediainfo

我有一个 1.1TB ProRes 422 MOV 文件(录制时间超过 24 小时)。

当运行 ffprobe -v error -print_format xml -select_streams v:0 -show_format -show_streams "Metadata Error.mov" 时,我得到以下信息:

<ffprobe>
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000709520] Invalid sample_count=-118755256
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000000709520] error reading header
Metadata Error.mov: Invalid data found when processing input
</ffprobe>

但是如果我运行 mediainfo,我会得到正确的信息:

General
Complete name                            : Metadata Error.mov
Format                                   : YSDO
Codec ID                                 : YSDO (qt  /YSDO)
File size                                : 1.10 TiB
Duration                                 : 24 h 10 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 111 Mb/s
Encoded date                             : UTC 2017-09-24 23:48:33
Tagged date                              : UTC 2017-09-26 09:23:29
Writing library                          : mtrx

Video
ID                                       : 1
Format                                   : ProRes
Format version                           : Version 0
Format profile                           : 422
Codec ID                                 : apcn
Duration                                 : 24 h 10 min
Bit rate mode                            : Variable
Bit rate                                 : 101 Mb/s
Width                                    : 1 920 pixels
Clean aperture width                     : 1 888 pixels
Height                                   : 1 080 pixels
Clean aperture height                    : 1 062 pixels
Display aspect ratio                     : 16:9
Clean aperture display aspect ratio      : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 (29970/1000) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:2
Scan type                                : Interlaced
Scan type, store method                  : Interleaved fields
Scan order                               : Top Field First
Bits/(Pixel*Frame)                       : 1.633
Stream size                              : 1.00 TiB (92%)
Writing library                          : apm0
Language                                 : English
Encoded date                             : UTC 2017-09-24 23:48:33
Tagged date                              : UTC 2017-09-26 09:23:29
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709
matrix_coefficients_Original             : BT.709

Audio #1
ID                                       : 2
Format                                   : PCM
Format settings                          : Little / Signed
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : in24
Duration                                 : 24 h 10 min
Source duration                          : 24 h 10 min
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 11.7 GiB (1%)
Source stream size                       : 11.7 GiB (1%)
Language                                 : English
Encoded date                             : UTC 2017-09-24 23:48:33
Tagged date                              : UTC 2017-09-26 09:23:29
mdhd_Duration                            : 66187116

Audio #2
ID                                       : 3
Format                                   : PCM
Format settings                          : Little / Signed
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : in24
Duration                                 : 24 h 10 min
Source duration                          : 24 h 10 min
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 11.7 GiB (1%)
Source stream size                       : 11.7 GiB (1%)
Language                                 : English
Encoded date                             : UTC 2017-09-24 23:48:33
Tagged date                              : UTC 2017-09-26 09:23:29
mdhd_Duration                            : 66187116

Audio #3
ID                                       : 4
Format                                   : PCM
Format settings                          : Little / Signed
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : in24
Duration                                 : 24 h 10 min
Source duration                          : 24 h 10 min
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 11.7 GiB (1%)
Source stream size                       : 11.7 GiB (1%)
Language                                 : English
Encoded date                             : UTC 2017-09-24 23:48:33
Tagged date                              : UTC 2017-09-26 09:23:29
mdhd_Duration                            : 66187116

Audio #4
ID                                       : 5
Format                                   : PCM
Format settings                          : Little / Signed
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : in24
Duration                                 : 24 h 10 min
Source duration                          : 24 h 10 min
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 11.7 GiB (1%)
Source stream size                       : 11.7 GiB (1%)
Language                                 : English
Encoded date                             : UTC 2017-09-24 23:48:33
Tagged date                              : UTC 2017-09-26 09:23:29
mdhd_Duration                            : 66187116

Audio #5
ID                                       : 6
Format                                   : PCM
Format settings                          : Little / Signed
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : in24
Duration                                 : 24 h 10 min
Source duration                          : 24 h 10 min
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 11.7 GiB (1%)
Source stream size                       : 11.7 GiB (1%)
Language                                 : English
Encoded date                             : UTC 2017-09-24 23:48:33
Tagged date                              : UTC 2017-09-26 09:23:29
mdhd_Duration                            : 66187116

Audio #6
ID                                       : 7
Format                                   : PCM
Format settings                          : Little / Signed
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : in24
Duration                                 : 24 h 10 min
Source duration                          : 24 h 10 min
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 11.7 GiB (1%)
Source stream size                       : 11.7 GiB (1%)
Language                                 : English
Encoded date                             : UTC 2017-09-24 23:48:33
Tagged date                              : UTC 2017-09-26 09:23:29
mdhd_Duration                            : 66187116

Audio #7
ID                                       : 8
Format                                   : PCM
Format settings                          : Little / Signed
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : in24
Duration                                 : 24 h 10 min
Source duration                          : 24 h 10 min
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 11.7 GiB (1%)
Source stream size                       : 11.7 GiB (1%)
Language                                 : English
Encoded date                             : UTC 2017-09-24 23:48:33
Tagged date                              : UTC 2017-09-26 09:23:29
mdhd_Duration                            : 66187116

Audio #8
ID                                       : 9
Format                                   : PCM
Format settings                          : Little / Signed
Format settings, Endianness              : Little
Format settings, Sign                    : Signed
Codec ID                                 : in24
Duration                                 : 24 h 10 min
Source duration                          : 24 h 10 min
Bit rate mode                            : Constant
Bit rate                                 : 1 152 kb/s
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 kHz
Bit depth                                : 24 bits
Stream size                              : 11.7 GiB (1%)
Source stream size                       : 11.7 GiB (1%)
Language                                 : English
Encoded date                             : UTC 2017-09-24 23:48:33
Tagged date                              : UTC 2017-09-26 09:23:29
mdhd_Duration                            : 66187116

最佳答案

最终这是 FFmpeg 中的一个错误。感谢上帝,这是一个简单的修复!

Patch

关于video - FFprobe 在非常大的 .mov 文件上报告无效的 sample_count,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46454477/

相关文章:

video - ffmpeg 与 Videoconverter.js MTS 到 .mp4 转换问题

video - MP4Box 与 Qt-faststart 的比较

javascript - NW/Node Webkit - 图像解码,即使它已经可见

large-files - 如何处理大文本文件?

assembly - 反汇编命令 8E C0

assembly - x86_64 - 编码 mov 指令

video - 解压缩 MP4 文件中的 time-To-Sample 表 (STTS)

objective-c - exportAsynchronouslyWithCompletionHandler 因多个视频文件而失败(代码=-11820)

python - 打开用于写入和读取大文件的Python

video - 将 .mov 转换为 .mp4 并使用 FFMPEG 保留 alpha channel