Fri Aug 20, 2021 3:29 pm
Andrew Gibb wrote:I am surprised that nobody has done a Wireshark analysis of the packets being sent to and from the ATEM Streaming Bridge so that it could be fooled into thinking that it's "talking" to a Blackmagic device.
OOh someone did try and failed.. We were able to send a RTMP stream into the Bridge but would crash and hang it self up within 60 seconds..
Problem is that FFMPEG and all other RTMP streams uses numbers for ID in header and BMD uses String to identify there own streams.
We have not been able to get FFMPEG to customize enough to mimic the stream header exact to what BMD sends out.. But that might be due to our lack of FFMPEG skills..
To quote:
To me it goes down to RTMP headers/metadata, as Daniel said.
The problem is that none of the available open source tools and libraries that do both encoding and streaming to RTMP destinations (meaning basically ffmpeg, gstreamer and ffmpeg based OBS that internally uses libav) allow setting arbitrary metadata values.
If you just want to relay the AMP stream to some place else apart from ASB then you can use nginx-rtmp with "meta copy;" and it seems to work.
The least lacking is FFMPEG, but it overwrites the "Encoder" field, which to me is the first level of validation. Gstreamer allows setting that one, but doesn't support anything else. Additionally the Streaming Bridge and AMP use non-compilant values for the videocodecid and audiocodecid (they are numeric by standard, whereas BMD uses strings).
Overwriting those isn't really rocket science (OBS has those features internally), but I can't find time to finalize my works, so if anyone's interested taking over I can share my packet dumps. And here is the comparison of AMP and OBS originating streams:
https://gist.github.com/.../b66e2311211 ... 88e61d657c
https://gist.github.com/matiaspl/b66e23 ... 88e61d657c
Daniel Wittenaar .:: Xtreemtec Media Productions ::. -= www.xtreemtec.nl =-
4K OBV Trailer, ATEM TVS HD, 4M/E Broadcast Studio 4K, Constelation 8K, Hyperdeck Studio 12G, Ursa Broadcast 4K, 4K fiber converters with Sony Control