Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording issues with Pinephone Pro cameras #73

Open
adamplumb opened this issue Apr 12, 2023 · 0 comments
Open

Recording issues with Pinephone Pro cameras #73

adamplumb opened this issue Apr 12, 2023 · 0 comments

Comments

@adamplumb
Copy link

This may not be the best place for this, but I figured I would make a stab in the dark and see if it gets anywhere. I'm testing a Pinephone Pro on PostmarketOS edge/phosh with kernel 6.2.7 and have been working with the cameras, seeing what I can get from them as a non-expert. So far I can get them to both show video using gstreamer with a command like:

gst-launch-1.0 libcamerasrc ! glimagesink

Both the front camera (ov8858) and rear camera (imx258) work with the above command, showing output.

The issue arises when I attempt to record the output into a file. If I try to capture from the camera and encode to theora or x264, things get stuck with a rising latency clock indefinitely. The same behavior seems to happen for both the front and rear cameras.

# This command results in a "Redistribute Latency..." output that seems to last forever, even for a 1-2 second video capture. 
gst-launch-1.0 -v -e \
    libcamerasrc \
      ! video/x-raw, width=640, height=480 \
      ! videoconvert \
      ! theoraenc \
      ! queue \
      ! mux. \
   oggmux name=mux ! filesink location=libcamvideo.ogg

Using videotestsrc produces a video that works fine.

Versions:
gstreamer 1.22.1
libcamera latest master

I'm attaching some logs:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant