Cannot create proxy clip for clips with non-AV streams
(WIP)
Proxy generation is using the -map 0
option of ffmpeg, which asks ffmpeg to create the same streams in the output file that are present in the input file.
The GoPro example video has a number of data
streams:
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'GX010075.MP4':
Metadata:
major_brand : mp41
minor_version : 538120216
compatible_brands: mp41
creation_time : 2020-05-17T16:02:05.000000Z
location : +47.5030+008.7269/
location-eng : +47.5030+008.7269/
firmware : HD8.01.01.60.00
Duration: 00:00:31.91, start: 0.000000, bitrate: 60785 kb/s
Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 60471 kb/s, 200 fps, 200 tbr, 90k tbn, 200 tbc (default)
Metadata:
rotate : 180
creation_time : 2020-05-17T16:02:05.000000Z
handler_name : GoPro H.265
encoder : GoPro H.265 encoder
timecode : 04:06:16:01
Side data:
displaymatrix: rotation of -180.00 degrees
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
Metadata:
creation_time : 2020-05-17T16:02:05.000000Z
handler_name : GoPro AAC
timecode : 04:06:16:01
Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
Metadata:
creation_time : 2020-05-17T16:02:05.000000Z
handler_name : GoPro TCD
timecode : 04:06:16:01
Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 72 kb/s (default)
Metadata:
creation_time : 2020-05-17T16:02:05.000000Z
handler_name : GoPro MET
Stream #0:4(eng): Data: none (fdsc / 0x63736466), 31 kb/s (default)
Metadata:
creation_time : 2020-05-17T16:02:05.000000Z
handler_name : GoPro SOS
> ffmpeg -hide_banner -y -stats -v error -i GX010075.MP4 -vf scale=640:-2 -vcodec libx264 -g 1 -bf 0 -vb 0 -crf 20 -preset veryfast -acodec aac -ab 128k -map 0 newproxy.mp4
[mp4 @ 0x56188140d3c0] Could not find tag for codec none in stream #2, codec not currently supported in container
Could not write header for output file #0 (incorrect codec parameters ?): Invalid argument
Error initializing output stream 0:0 --