0
指定流我有一個文件,這些流的ffmpeg通過handler_name
Stream #0:0(eng): Video: h264 (High) (avc1/0x31637661), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 45315 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 119.88 tbc (default)
Metadata:
creation_time : 2017-04-12T19:32:57.000000Z
handler_name : GoPro AVC
encoder : GoPro AVC encoder
timecode : 19:51:39:46
Stream #0:1(eng): Audio: aac (LC) (mp4a/0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2017-04-12T19:32:57.000000Z
handler_name : GoPro AAC
timecode : 19:51:39:46
Stream #0:2(eng): Data: none (tmcd/0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2017-04-12T19:32:57.000000Z
handler_name : GoPro TCD
timecode : 19:51:39:46
Stream #0:3(eng): Data: none (gpmd/0x646D7067), 34 kb/s (default)
Metadata:
creation_time : 2017-04-12T19:32:57.000000Z
handler_name : GoPro MET
Stream #0:4(eng): Data: none (fdsc/0x63736466), 14 kb/s (default)
Metadata:
creation_time : 2017-04-12T19:32:57.000000Z
handler_name : GoPro SOS
,並想只輸出流#0:3(ENG):數據:無(gpmd/0x646D7067)
我可以-Map 0映射它:3,但有些文件具有相同的流在不同的位置,這樣的:
Stream #0:0(eng): Video: h264 (High) (avc1/0x31637661), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 60013 kb/s, 90 fps, 90 tbr, 90k tbn, 180 tbc (default)
Metadata:
creation_time : 2017-04-12T19:32:25.000000Z
handler_name : GoPro AVC
encoder : GoPro AVC encoder
Stream #0:1(eng): Audio: aac (LC) (mp4a/0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2017-04-12T19:32:25.000000Z
handler_name : GoPro AAC
Stream #0:2(eng): Data: none (gpmd/0x646D7067), 35 kb/s (default)
Metadata:
creation_time : 2017-04-12T19:32:25.000000Z
handler_name : GoPro MET
Stream #0:3(eng): Data: none (fdsc/0x63736466), 18 kb/s (default)
Metadata:
creation_time : 2017-04-12T19:32:25.000000Z
handler_name : GoPro SOS
我怎樣才能確保我選擇正確的呢?我試着-map 0:M:handler_name:「GoPro的MET」之類的東西,但我總是得到一個錯誤:
Stream map '0:m:handler_name:GoPro_MET' matches no streams.
注意,我從來沒有使用過的ffmpeg之前,可能會丟失一些明顯的事
謝謝!