Will reconnect at 504210 in 0 second(s), error=End of file. while trying to play a pre-signed URL image

Hello,
I’m trying to play an image file, as a background image. This image is hosted in AWS, and we generate a pre-signed URL of this image, to let it play in casparcg with :

PLAY 1-1 https://{pre-signed-url} RIGHT \r\n

But the image does not show in the screen consumer, and I get a bunch of errors into the server logs :

[2021-10-22 14:37:13.256] [warning] [ffmpeg] [https @ 000002B4BBE58740] Will reconnect at 504210 in 0 second(s), error=End of file.
[2021-10-22 14:37:13.256] [warning]
[2021-10-22 14:37:13.257] [warning] [ffmpeg] [https @ 000002B4A6EDED80] Will reconnect at 504210 in 0 second(s), error=End of file.
[2021-10-22 14:37:13.257] [warning]
[2021-10-22 14:37:13.312] [warning] [ffmpeg] [https @ 000002B4BBE58740] Will reconnect at 0 in 1 second(s), error=End of file.
[2021-10-22 14:37:13.312] [warning]
[2021-10-22 14:37:13.315] [warning] [ffmpeg] [https @ 000002B4A6EDED80] Will reconnect at 0 in 1 second(s), error=End of file.
[2021-10-22 14:37:13.315] [warning]
[2021-10-22 14:37:14.366] [warning] [ffmpeg] [https @ 000002B4A6EDED80] Will reconnect at 0 in 3 second(s), error=End of file.
[2021-10-22 14:37:14.366] [warning]
[2021-10-22 14:37:14.373] [warning] [ffmpeg] [https @ 000002B4BBE58740] Will reconnect at 0 in 3 second(s), error=End of file.

[edit]:

And if useful, after a few minutes, I get:
[2021-10-22 15:24:16.572] [warning] ffmpeg[https://xxxx|0.0000/0.0000] Waiting for video frame…

As if casparcg was looking for a video frame.

Does anyone have any idea ?
Thank you very much!
Thomas

Likely it doesn’t recognise the URL as an image, e.g. it doesn’t see a jpg/png extension. I tried a few different images like http://127.0.0.1/test.png/jpg and they all worked.

1 Like

Ok, actually you helped me to find a workaround!
I’ve just added a dummy query parameter at the end of the signed url ?file=png, and casparcg considers it as an image now. I guess it’s looking for an extension in the url string.

Thank you!
Thom