我正在尝试连接多个由 GoPro Hero6 拆分电影产生的文件,以避免 FAT 4GB 限制。ffmpeg 非常适合此目的,但我需要在元数据流中编码的遥测数据,并且默认情况下 ffmpeg 似乎没有保留这一点。使用ffprobe
命令可以看到源视频有:
Stream #0:3(eng): Data: none (gpmd / 0x646D7067), 36 kb/s (default)
Metadata:
creation_time : 2018-07-15T16:16:26.000000Z
handler_name : GoPro MET
我从研究中知道这是我需要的流(尽管我希望能够复制所有流)。但是,当使用ffmpeg -f concat
输出时:
[concat @ 0x7febb9800000] Could not find codec parameters for stream 2 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[concat @ 0x7febb9800000] Could not find codec parameters for stream 3 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
[concat @ 0x7febb9800000] Could not find codec parameters for stream 4 (Unknown: none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, concat, from 'tmp.txt':
Duration: N/A, start: 0.000000, bitrate: 66194 kb/s
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 2704x1520 [SAR 1:1 DAR 169:95], 66005 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc
Metadata:
creation_time : 2018-07-15T16:08:22.000000Z
handler_name : GoPro AVC
encoder : GoPro AVC encoder
timecode : 16:23:48:21
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s
Metadata:
creation_time : 2018-07-15T16:08:22.000000Z
handler_name : GoPro AAC
timecode : 16:23:48:21
Stream #0:2: Unknown: none
Stream #0:3: Unknown: none
Stream #0:4: Unknown: none
Output #0, mp4, to 'GH0089.MP4':
Metadata:
encoder : Lavf58.12.100
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuvj420p(pc, bt709), 2704x1520 [SAR 1:1 DAR 169:95], q=2-31, 66005 kb/s, 0.02 fps, 59.94 tbr, 60k tbn, 60k tbc
Metadata:
creation_time : 2018-07-15T16:08:22.000000Z
handler_name : GoPro AVC
encoder : GoPro AVC encoder
timecode : 16:23:48:21
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s
Metadata:
creation_time : 2018-07-15T16:08:22.000000Z
handler_name : GoPro AAC
timecode : 16:23:48:21
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
警告Could not find codec parameters
特别有趣,并Stream mapping
显示仅映射了视频和音频流。我玩过,map_metadata
无济于事。我可能没有正确的格式,但问题似乎更可能与警告有关,因为编解码器无法识别,我希望默认情况下会映射所有流。
我期望或希望得到一个忽略警告并映射无法识别的流而不试图理解它们的答案。
任何帮助表示赞赏。