• [^] # Re: caméra censée fonctionner

    Posté par . En réponse au message Reconnaissance d'image sur smartphone: Droidian, Mobian, PostmarketOS...?. Évalué à 1. Dernière modification le 12 avril 2026 à 18:09.

    Je ne sais pas trop non plus. Peut-être que le commit mentionné sur https://docs.droidian.org/porting-guide/debugging-tips/ joue un rôle.

    Je suis bloqué un peu après maintenant. Les outils v4l avec /dev/video* ne semblent pas marcher. J'ai regardé le code source de droidian-camera, qui utilise GStreamer. J'ai essayé ça:

    gst-launch-1.0 droidcamsrc mode=2 camera-device=1 ! jpegdec ! jpegenc snapshot=TRUE ! filesink location=test.jpeg
    

    Sans succès:

    library "libstagefright_ccodec.so" not found
    Setting pipeline to PAUSED ...
    Pipeline is live and does not need PREROLL ...
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    ERROR: from element /GstPipeline:pipeline0/GstDroidCamSrc:droidcamsrc0: GStreamer encountered a general supporting library error.
    Additional debug info:
    ../gst/droidcamsrc/gstdroidcamsrcdev.c(159): gst_droidcamsrc_dev_error_callback (): /GstPipeline:pipeline0/GstDroidCamSrc:droidcamsrc0:
    error 0x1 from camera HAL
    ERROR: pipeline doesn't want to preroll.
    ERROR: pipeline doesn't want to play.
    Execution ended after 0:00:00.426148854
    Setting pipeline to NULL ...
    Freeing pipeline ...
    

    dmesg me dit:

    [ 4053.537440] CAM_WARN: CAM-SENSOR: cam_sensor_driver_cmd: 730 Not in right state to aquire 3
    [ 4053.570627] CAM_WARN: CAM-ISP: cam_vfe_bus_acquire_wm: 1013 Override width 648 with expected 656
    [ 4053.590181] CAM_ERR: CAM-ICP: cam_ipe_handle_resume: 198 IPE: resume failed : 1