Closed iketiunn closed 12 months ago
This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days.
This issue was closed because it has been stalled for 7 days with no activity.
@iketiunn did you ever figure out the solution to this issue with avfoundation? My hunch is that you can use expo camera's recordAsync()
function to record the frames locally to a cache and then use ffmpeg to point to the cache instead of avfoundation.
This should still be counted as "one session".
@iketiunn did you ever figure out the solution to this issue with avfoundation? My hunch is that you can use expo camera's
recordAsync()
function to record the frames locally to a cache and then use ffmpeg to point to the cache instead of avfoundation.This should still be counted as "one session".
Thanks for the suggestion! I'm actually not working with ffmpeg at the moment, but I wish you the best of luck if you find the solution!
I can take
android_camera
andavfoundation
and then output them as a file or stream in React Native.But how can I render a camera preview at the same time? Workaround I've tried so far:
output as udp stream and load it with a video player
But the latency is unacceptable as a camera preview
output as rtp stream and load it with a video player So far I can't get the vlc player(which supports loading from rtp stream) running with React Native due to shared lib conflict.
output sdl2 Don't know if this going to work or not, since the package is disabled this option when build by default.
open a camera at the same time Looks like you can only open one camera session at the same time, so the camera preview will be shutdown once the ffmpeg take the camera as input
Would love to know if I can simply take sdl2 as the output, or if there are other ways to achieve rendering the camera preview.