More Pinephone pictures

playing with ubuntu touch on pinephone, and command line pictures.


default ubuntu touch image from the weekend;  not sure where to check the build number from within the image….

been running apt upgrade and update since then.  Plan is to update weekly the full image.

wifi and ssh seem to be working fine.

have media-ctl and ffmpeg running. (ffmpeg updated)

trying to get the best pictures possible;

found two setting that reliably work:

media-ctl -d /dev/media1 --set-v4l2 '"ov5640 2-003c":0[fmt:UYVY2X8/1920x1080]'
ffmpeg -hide_banner -f rawvideo -pixel_format yuv420p -s 1920x1080 -f video4linux2 -i /dev/video1 -vframes 1 -vsync 2 ~/Pictures/$(date +"%Y%m%dT%H%M%S").jpg



media-ctl -d /dev/media1 --set-v4l2 '"ov5640 2-003c":0[fmt:SBGGR8/1920x1080]'
ffmpeg -hide_banner -f rawvideo -pixel_format bayer_bggr8 -s 1920x1080 -f video4linux2 -i /dev/video1 -vframes 1 ~/Pictures/$(date +"%Y%m%dT%H%M%S")-bggr8.jpg


both seem very grainy, with different colours used;

looking now to see if can improve image;  Still looking at all the various flags;


the second seems to match (on my screen) the setting.


  • better colours
  • can I access the auto focus
  • clearer image
This entry was posted in tech. Bookmark the permalink.

1 Response to More Pinephone pictures

  1. twongkee says:

    to make working remote with images easier, started a python web server on the pinephone, in the Pictures directory. That way I can sit at my laptop, with browser to quickly view photos as they are taken
    command to start webserver:

    python3 -m http.server

    and then in my browser

    http://{ip address of pinephone}:8000/

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s