I was hoping I could sneak another question in here.
The upload worked fine with a test video file transcoded in Handbrake, but when it came to test with the live video output from OBS the upload fails due to incompatible format issues both in my script and on web.
My format is mp4, 1920x1080p, 30fps, YUV 4:2:0, 4mbs bitrate, AAC(LC) 48 khz stereo, 14 seconds long, about 6mb big. Seems to be within all requirements I can find.
From ffmpeg:
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf57.66.102
Duration: 00:00:13.43, start: 0.000000, bitrate: 4089 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 4000 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 79 kb/s (default)
Metadata:
handler_name : SoundHandler
From a Handbrake version of the file that works.I can obviously see several differences, but I can’t determine if any or which of them are significant.
Metadata:
major_brand : mp42
minor_version : 512
compatible_brands: isomiso2avc1mp41
creation_time : 2017-07-02T21:30:17.000000Z
encoder : HandBrake 1.0.7 2017040900
Duration: 00:00:13.60, start: 0.000000, bitrate: 30 kb/s
Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 20 kb/s, 29.64 fps, 30 tbr, 90k tbn, 180k tbc (default)
Metadata:
creation_time : 2017-07-02T21:30:17.000000Z
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 3 kb/s (default)
Metadata:
creation_time : 2017-07-02T21:30:17.000000Z
handler_name : Stereo