My lambda throws from time to time an error : The browser threw an error while playing the video... Code 4 or The browser threw an error while playing the video Code 2 - PIPELINE_ERROR_READ: FFmpegDemuxer: data source error.
I was able to render the same files locally , tried switching to OffthreadVideo and increasing the timeout but it created a different issue. what's the best practice here. (files are regular MP4 H264 files)
#Browser error when running in Lambda
12 messages · Page 1 of 1 (latest)
I assume this happened because your local machine has a GPU, whereas lambda is pure CPU.
pure cpu is bad at rendering videos, so you want to use <OffthreadVideo /> which converts videos into a sequence of images and therefore rendered better at CPU (lambda).
which issue did you have with <OffthreadVideo />?
thanks @twin whale . when switching to OffthreadVideo I got render timeouts even when increasing the the timeout paraemter to the lambda quite a bit
can you post the error logs from the lambda ?
@brittle atlas you mean after I switched to OffthreadVideo?
@brittle atlas Error: A delayRender() "Loading <Img> with src=http://localhost:3001/proxy?src=[fileUrl]&time=15.633333333333333&transparent=false" was called but not cleared after 148000ms
file is about 27MB
well that's beyond my understanding
no cors issue ?
@brittle atlas nope. I might run the same video with the same props again and everything will be fine