* Use "compat_getenv" * "write_json_file" now expects the filename to be a string
It produces the right mp4 urls, so we stop prefering the rtmp urls.