Aller directement au contenu
  • Catégories
  • Récent
  • Mots-clés
  • Populaire
  • Web
  • Utilisateurs
  • Groupes
Habillages
  • Clair
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Sombre
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Défaut (Darkly)
  • Aucun habillage
Réduire

NodeBB

  1. Accueil
  2. General Discussion
  3. Linux
  4. MAJ Raspberry PI Zero W

MAJ Raspberry PI Zero W

Planifié Épinglé Verrouillé Déplacé Linux
raspberrypi zero wexiftoolmplayerffmpeg
85 Messages 2 Publieurs 2.2k Vues
  • Du plus ancien au plus récent
  • Du plus récent au plus ancien
  • Les plus votés
Répondre
  • Répondre à l'aide d'un nouveau sujet
Se connecter pour répondre
Ce sujet a été supprimé. Seuls les utilisateurs avec les droits d'administration peuvent le voir.
  • fariasF farias

    J’ai l’impression qu’il faut installer un truc (que je connais pas).

    sudo apt-get install unclutter
    unclutter -idle 0 
    

    Mais normalement via /etc/lightdm/lightdm.conf tu peux supprimer.

    S Hors-ligne
    S Hors-ligne
    srouviere06
    a écrit sur dernière édition par
    #57

    @farias

    pi@raspberrypiFlipper:~ $ sudo apt-get install unclutter
    Reading package lists... Done
    Building dependency tree... Done
    Reading state information... Done
    The following packages were automatically installed and are no longer required:
      agnostics autotouch cups-pk-helper dconf-cli device-tree-compiler dos2unix feedbackd feedbackd-common fio flashrom fonts-gfs-didot-classic fonts-piboto gir1.2-notify-0.7 gir1.2-secret-1
      grim gtk-nop gtk2-engines-pixbuf gtk2-engines-pixflat gui-pkinst gui-updater ibverbs-providers iw labwc-prompt libaio1 libbasicusageenvironment1 libboost-iostreams1.74.0 libcupsimage2
      libfdt1 libfeedback-0.0-0 libgfapi0 libgfrpc0 libgfxdr0 libglusterfs0 libgpiolib0 libgroupsock8 libgsound0 libibverbs1 libliftoff-rpi liblivemedia77 libnbd0 libnuma1 librados2 librbd1
      librdmacm1 libwf-config1 libwf-utils0 libwlroots11 lxplug-batt lxplug-bluetooth lxplug-cpu lxplug-cputemp lxplug-ejecter lxplug-magnifier lxplug-menu lxplug-netman lxplug-volumepulse
      mate-polkit-bin pastebinit pi-greeter pi-language-support pi-printer-support pipanel pixflat-icons pixflat-theme printer-driver-escpr python3-cairo python3-cups python3-cupshelpers
      python3-pycryptodome python3-smbc python3-v4l2 qt5-gtk2-platformtheme qt5-style-plugin-cleanlooks qt5-style-plugin-motif qt5-style-plugin-plastique qt5-style-plugins qt5ct raspi-utils-core
      raspi-utils-eeprom raspi-utils-otp rp-bookshelf rpd-wallpaper rpinters swaylock system-config-printer-common system-config-printer-udev triggerhappy wayfire wfplug-batt wlopm xmlstarlet
      xsettingsd
    Use 'sudo apt autoremove' to remove them.
    The following additional packages will be installed:
      unclutter-startup
    The following NEW packages will be installed:
      unclutter unclutter-startup
    0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
    Need to get 24.0 kB of archives.
    After this operation, 63.5 kB of additional disk space will be used.
    Do you want to continue? [Y/n] Y
    Get:1 http://distrib-coffee.ipsl.jussieu.fr/pub/linux/raspbian/raspbian bookworm/main armhf unclutter armhf 8-25 [15.2 kB]
    Get:2 http://mirrors.ircam.fr/pub/raspbian/raspbian bookworm/main armhf unclutter-startup all 8-25 [8,860 B]
    Fetched 24.0 kB in 1s (22.4 kB/s)
    Preconfiguring packages ...
    Selecting previously unselected package unclutter.
    (Reading database ... 168822 files and directories currently installed.)
    Preparing to unpack .../unclutter_8-25_armhf.deb ...
    Unpacking unclutter (8-25) ...
    Selecting previously unselected package unclutter-startup.
    Preparing to unpack .../unclutter-startup_8-25_all.deb ...
    Unpacking unclutter-startup (8-25) ...
    Setting up unclutter (8-25) ...
    update-alternatives: using /usr/bin/unclutter-classic to provide /usr/bin/unclutter (unclutter) in auto mode
    Setting up unclutter-startup (8-25) ...
    Processing triggers for man-db (2.11.2-2) ...
    pi@raspberrypiFlipper:~ $ unclutter -idle 0
    unclutter: could not open display
    pi@raspberrypiFlipper:~ $
    1 réponse Dernière réponse
    0
    • S srouviere06

      @farias

      pi@raspberrypiFlipper:~ $ more /etc/lightdm/lightdm.conf
      #
      # General configuration
      #
      # start-default-seat = True to always start one seat if none are defined in the configuration
      # greeter-user = User to run greeter as
      # minimum-display-number = Minimum display number to use for X servers
      # minimum-vt = First VT to run displays on
      # lock-memory = True to prevent memory from being paged to disk
      # user-authority-in-system-dir = True if session authority should be in the system location
      # guest-account-script = Script to be run to setup guest account
      # logind-check-graphical = True to on start seats that are marked as graphical by logind
      # log-directory = Directory to log information to
      # run-directory = Directory to put running state in
      # cache-directory = Directory to cache to
      # sessions-directory = Directory to find sessions
      # remote-sessions-directory = Directory to find remote sessions
      # greeters-directory = Directory to find greeters
      # backup-logs = True to move add a .old suffix to old log files when opening new ones
      # dbus-service = True if LightDM provides a D-Bus service to control it
      #
      [LightDM]
      #start-default-seat=true
      #greeter-user=lightdm
      #minimum-display-number=0
      #minimum-vt=7
      #lock-memory=true
      #user-authority-in-system-dir=false
      #guest-account-script=guest-account
      #logind-check-graphical=false
      #log-directory=/var/log/lightdm
      #run-directory=/var/run/lightdm
      #cache-directory=/var/cache/lightdm
      #sessions-directory=/usr/share/lightdm/sessions:/usr/share/xsessions:/usr/share/wayland-sessions
      #remote-sessions-directory=/usr/share/lightdm/remote-sessions
      #greeters-directory=$XDG_DATA_DIRS/lightdm/greeters:$XDG_DATA_DIRS/xgreeters
      #backup-logs=true
      #dbus-service=true
      
      #
      # Seat configuration
      #
      # Seat configuration is matched against the seat name glob in the section, for example:
      # [Seat:*] matches all seats and is applied first.
      # [Seat:seat0] matches the seat named "seat0".
      # [Seat:seat-thin-client*] matches all seats that have names that start with "seat-thin-client".
      #
      # type = Seat type (local, xremote, unity)
      # pam-service = PAM service to use for login
      # pam-autologin-service = PAM service to use for autologin
      # pam-greeter-service = PAM service to use for greeters
      # xserver-backend = X backend to use (mir)
      # xserver-command = X server command to run (can also contain arguments e.g. X -special-option)
      # xmir-command = Xmir server command to run (can also contain arguments e.g. Xmir -special-option)
      # xserver-config = Config file to pass to X server
      # xserver-layout = Layout to pass to X server
      # xserver-allow-tcp = True if TCP/IP connections are allowed to this X server
      # xserver-share = True if the X server is shared for both greeter and session
      # xserver-hostname = Hostname of X server (only for type=xremote)
      # xserver-display-number = Display number of X server (only for type=xremote)
      # xdmcp-manager = XDMCP manager to connect to (implies xserver-allow-tcp=true)
      # xdmcp-port = XDMCP UDP/IP port to communicate on
      # xdmcp-key = Authentication key to use for XDM-AUTHENTICATION-1 (stored in keys.conf)
      # unity-compositor-command = Unity compositor command to run (can also contain arguments e.g. unity-system-compositor -special-option)
      # unity-compositor-timeout = Number of seconds to wait for compositor to start
      # greeter-session = Session to load for greeter
      # greeter-hide-users = True to hide the user list
      # greeter-allow-guest = True if the greeter should show a guest login option
      # greeter-show-manual-login = True if the greeter should offer a manual login option
      # greeter-show-remote-login = True if the greeter should offer a remote login option
      # user-session = Session to load for users
      # allow-user-switching = True if allowed to switch users
      # allow-guest = True if guest login is allowed
      # guest-session = Session to load for guests (overrides user-session)
      # session-wrapper = Wrapper script to run session with
      # greeter-wrapper = Wrapper script to run greeter with
      # guest-wrapper = Wrapper script to run guest sessions with
      # display-setup-script = Script to run when starting a greeter session (runs as root)
      # display-stopped-script = Script to run after stopping the display server (runs as root)
      # greeter-setup-script = Script to run when starting a greeter (runs as root)
      # session-setup-script = Script to run when starting a user session (runs as root)
      # session-cleanup-script = Script to run when quitting a user session (runs as root)
      # autologin-guest = True to log in as guest by default
      # autologin-user = User to log in with by default (overrides autologin-guest)
      # autologin-user-timeout = Number of seconds to wait before loading default user
      # autologin-session = Session to load for automatic login (overrides user-session)
      # autologin-in-background = True if autologin session should not be immediately activated
      # exit-on-failure = True if the daemon should exit if this seat fails
      # fallback-test = Script to run to check if hardware can handle Wayland - should return 1 if so
      # fallback-session = Session to launch if fallback-test returns 0
      # fallback-greeter = Greeter session to launch if fallback-test returns 0
      #
      [Seat:*]
      #type=local
      #pam-service=lightdm
      #pam-autologin-service=lightdm-autologin
      #pam-greeter-service=lightdm-greeter
      #xserver-backend=
      #xserver-command=X
      #xmir-command=Xmir
      #xserver-config=
      #xserver-layout=
      #xserver-allow-tcp=false
      #xserver-share=true
      #xserver-hostname=
      #xserver-display-number=
      #xdmcp-manager=
      #xdmcp-port=177
      #xdmcp-key=
      #unity-compositor-command=unity-system-compositor
      #unity-compositor-timeout=60
      greeter-session=pi-greeter
      greeter-hide-users=false
      #greeter-allow-guest=true
      #greeter-show-manual-login=false
      #greeter-show-remote-login=true
      user-session=LXDE-pi-x
      #allow-user-switching=true
      #allow-guest=true
      #guest-session=
      #session-wrapper=lightdm-session
      #greeter-wrapper=
      #guest-wrapper=
      display-setup-script=/usr/share/dispsetup.sh
      #display-stopped-script=
      #greeter-setup-script=
      #session-setup-script=
      #session-cleanup-script=
      #autologin-guest=false
      autologin-user=pi
      #autologin-user-timeout=0
      #autologin-in-background=false
      autologin-session=LXDE-pi-x
      #exit-on-failure=false
      #fallback-test=
      #fallback-session=
      #fallback-greeter=
      
      #
      # XDMCP Server configuration
      #
      # enabled = True if XDMCP connections should be allowed
      # port = UDP/IP port to listen for connections on
      # listen-address = Host/address to listen for XDMCP connections (use all addresses if not present)
      # key = Authentication key to use for XDM-AUTHENTICATION-1 or blank to not use authentication (stored in keys.conf)
      # hostname = Hostname to report to XDMCP clients (defaults to system hostname if unset)
      #
      # The authentication key is a 56 bit DES key specified in hex as 0xnnnnnnnnnnnnnn.  Alternatively
      # it can be a word and the first 7 characters are used as the key.
      #
      [XDMCPServer]
      #enabled=false
      #port=177
      #listen-address=
      #key=
      #hostname=
      
      #
      # VNC Server configuration
      #
      # enabled = True if VNC connections should be allowed
      # command = Command to run Xvnc server with
      # port = TCP/IP port to listen for connections on
      # listen-address = Host/address to listen for VNC connections (use all addresses if not present)
      # width = Width of display to use
      # height = Height of display to use
      # depth = Color depth of display to use
      #
      [VNCServer]
      #enabled=false
      #command=Xvnc
      #port=5900
      #listen-address=
      #width=1024
      #height=768
      #depth=8
      fariasF Hors-ligne
      fariasF Hors-ligne
      farias
      a écrit sur dernière édition par
      #58

      @srouviere06 a dit dans MAJ Raspberry PI Zero W :

      /etc/lightdm/lightdm.conf

      Il faut ajouter :

      xserver-command=X -nocursor
      

      Dans [Seat:*]

      1 réponse Dernière réponse
      0
      • fariasF Hors-ligne
        fariasF Hors-ligne
        farias
        a écrit sur dernière édition par
        #59

        Et ensuite un reboot …

        1 réponse Dernière réponse
        0
        • fariasF farias

          @srouviere06 je préfère :

          cat /etc/lightdm/lightdm.conf | grep -v "^#"
          

          Cela permet de ne pas avoir les commentaires …

          S Hors-ligne
          S Hors-ligne
          srouviere06
          a écrit sur dernière édition par
          #60

          @farias a dit dans MAJ Raspberry PI Zero W :

          cat /etc/lightdm/lightdm.conf | grep -v “^#”

          pi@raspberrypiFlipper:~ $ cat /etc/lightdm/lightdm.conf | grep -v "^#"
          [LightDM]
          
          [Seat:*]
          greeter-session=pi-greeter
          greeter-hide-users=false
          user-session=LXDE-pi-x
          display-setup-script=/usr/share/dispsetup.sh
          autologin-user=pi
          autologin-session=LXDE-pi-x
          
          [XDMCPServer]
          
          [VNCServer]
          pi@raspberrypiFlipper:~ $
          1 réponse Dernière réponse
          👍
          0
          • S Hors-ligne
            S Hors-ligne
            srouviere06
            a écrit sur dernière édition par
            #61

            PERFECT !!! MERCIIII !!!

            1 réponse Dernière réponse
            👍
            0
            • S Hors-ligne
              S Hors-ligne
              srouviere06
              a écrit sur dernière édition par
              #62

              la vidéo passe un peu ralentie…

              fariasF 1 réponse Dernière réponse
              😲
              0
              • S srouviere06

                la vidéo passe un peu ralentie…

                fariasF Hors-ligne
                fariasF Hors-ligne
                farias
                a écrit sur dernière édition par
                #63

                @srouviere06 Tu peux ouvrir deux terminaux ?
                Et faire un top sur le second.

                fariasF 1 réponse Dernière réponse
                0
                • fariasF farias

                  @srouviere06 Tu peux ouvrir deux terminaux ?
                  Et faire un top sur le second.

                  fariasF Hors-ligne
                  fariasF Hors-ligne
                  farias
                  a écrit sur dernière édition par
                  #64

                  Soit c’est ralenti car il y a une conversion qui mange du CPU et tu peux essayer de supprimer la convertion.
                  Soit c’est parce que le Pi Zero W est déjà a fond.

                  Donc il faut faire des tests …

                  1 réponse Dernière réponse
                  0
                  • S Hors-ligne
                    S Hors-ligne
                    srouviere06
                    a écrit sur dernière édition par
                    #65

                    mplayer utilise 92% CPU

                    1 réponse Dernière réponse
                    👷
                    0
                    • S Hors-ligne
                      S Hors-ligne
                      srouviere06
                      a écrit sur dernière édition par
                      #66

                      image.png

                      fariasF 1 réponse Dernière réponse
                      👍
                      0
                      • S srouviere06

                        image.png

                        fariasF Hors-ligne
                        fariasF Hors-ligne
                        farias
                        a écrit sur dernière édition par
                        #67

                        @srouviere06 Si tu supprimes “-fps 30” c’est pareil ? ou pire ? ou mieux ?

                        1 réponse Dernière réponse
                        0
                        • fariasF Hors-ligne
                          fariasF Hors-ligne
                          farias
                          a écrit sur dernière édition par
                          #68

                          Si tu regardes le format de ta video.

                          apt-get install exiftool
                          exiftool nom.mp4
                          

                          Tu as quoi ?

                          1 réponse Dernière réponse
                          0
                          • fariasF Hors-ligne
                            fariasF Hors-ligne
                            farias
                            a écrit sur dernière édition par
                            #69

                            L’idée est de faire une video au format idéal via ffmpeg.

                            1 réponse Dernière réponse
                            0
                            • S Hors-ligne
                              S Hors-ligne
                              srouviere06
                              a écrit sur dernière édition par
                              #70
                              pi@raspberrypiFlipper:~ $ sudo exiftool LW3Org.mp4
                              ExifTool Version Number         : 12.57
                              File Name                       : LW3Org.mp4
                              Directory                       : .
                              File Size                       : 12 MB
                              File Modification Date/Time     : 2024:08:09 16:47:29+02:00
                              File Access Date/Time           : 2024:08:09 16:47:29+02:00
                              File Inode Change Date/Time     : 2025:08:29 09:12:31+02:00
                              File Permissions                : -rw-r--r--
                              File Type                       : MP4
                              File Type Extension             : mp4
                              MIME Type                       : video/mp4
                              Major Brand                     : MP4 v2 [ISO 14496-14]
                              Minor Version                   : 0.0.0
                              Compatible Brands               : isom, mp42
                              Movie Header Version            : 0
                              Create Date                     : 2018:11:21 02:24:27
                              Modify Date                     : 2018:11:21 02:24:27
                              Time Scale                      : 30000
                              Duration                        : 0:03:56
                              Preferred Rate                  : 1
                              Preferred Volume                : 100.00%
                              Preview Time                    : 0 s
                              Preview Duration                : 0 s
                              Poster Time                     : 0 s
                              Selection Time                  : 0 s
                              Selection Duration              : 0 s
                              Current Time                    : 0 s
                              Next Track ID                   : 3
                              Track Header Version            : 0
                              Track Create Date               : 2018:11:21 02:24:27
                              Track Modify Date               : 2018:11:21 02:24:27
                              Track ID                        : 1
                              Track Duration                  : 0:03:56
                              Track Layer                     : 0
                              Track Volume                    : 0.00%
                              Image Width                     : 640
                              Image Height                    : 360
                              Compressor ID                   : avc1
                              Source Image Width              : 640
                              Source Image Height             : 360
                              X Resolution                    : 72
                              Y Resolution                    : 72
                              Bit Depth                       : 24
                              Video Frame Rate                : 29.97
                              Graphics Mode                   : srcCopy
                              Op Color                        : 0 0 0
                              Matrix Structure                : 1 0 0 0 1 0 0 0 1
                              Media Header Version            : 0
                              Media Create Date               : 2018:11:21 02:24:27
                              Media Modify Date               : 2018:11:21 02:24:27
                              Media Time Scale                : 44100
                              Media Duration                  : 0:03:56
                              Media Language Code             : und
                              Handler Description             : ISO Media file produced by Google Inc. Created on: 11/20/2018.
                              Audio Format                    : mp4a
                              Audio Channels                  : 2
                              Audio Bits Per Sample           : 16
                              Audio Sample Rate               : 22050
                              Balance                         : 0
                              Handler Type                    : Metadata
                              Handler Vendor ID               : Apple
                              Google Start Time               : 0
                              Google Track Duration           : 0:03:56
                              Media Data Size                 : 12226838
                              Media Data Offset               : 100420
                              Image Size                      : 640x360
                              Megapixels                      : 0.230
                              Avg Bitrate                     : 414 kbps
                              Rotation                        : 0
                              pi@raspberrypiFlipper:~ $
                              1 réponse Dernière réponse
                              👍
                              0
                              • fariasF Hors-ligne
                                fariasF Hors-ligne
                                farias
                                a écrit sur dernière édition par
                                #71

                                Les fps c’est bon mais la résolution est plus grosse que necessaire.
                                Source Image Width : 640
                                Source Image Height : 360

                                Toi tu dois avoir du 480 au max.
                                Donc ffmpeg.
                                Tu peux l’installer ?

                                1 réponse Dernière réponse
                                0
                                • fariasF Hors-ligne
                                  fariasF Hors-ligne
                                  farias
                                  a écrit sur dernière édition par
                                  #72

                                  Ou alors chercher un mp4 en 480 .

                                  1 réponse Dernière réponse
                                  0
                                  • S Hors-ligne
                                    S Hors-ligne
                                    srouviere06
                                    a écrit sur dernière édition par srouviere06
                                    #73

                                    c’est déjà installé 🙂

                                    fariasF 1 réponse Dernière réponse
                                    👍
                                    0
                                    • S srouviere06

                                      c’est déjà installé 🙂

                                      fariasF Hors-ligne
                                      fariasF Hors-ligne
                                      farias
                                      a écrit sur dernière édition par
                                      #74

                                      @srouviere06 La commande doit etre comme cela je pense.

                                      ffmpeg -i LW3Org.mp4 -filter:v scale=480:-1 -c:a copy LW3Org-out.mp4
                                      

                                      Ensuite dans mplayer tu vires le scale

                                      fariasF S 2 réponses Dernière réponse
                                      0
                                      • fariasF Hors-ligne
                                        fariasF Hors-ligne
                                        farias
                                        a écrit sur dernière édition par
                                        #75

                                        C.a.d.

                                        mplayer -nolirc -noquiet -slave -identify -vo fbdev2:/dev/fb1  LW3Org-out.mp4 -nosound
                                        
                                        1 réponse Dernière réponse
                                        0
                                        • fariasF farias

                                          @srouviere06 La commande doit etre comme cela je pense.

                                          ffmpeg -i LW3Org.mp4 -filter:v scale=480:-1 -c:a copy LW3Org-out.mp4
                                          

                                          Ensuite dans mplayer tu vires le scale

                                          fariasF Hors-ligne
                                          fariasF Hors-ligne
                                          farias
                                          a écrit sur dernière édition par
                                          #76

                                          Tu peux aussi supprimer l’audio avec l’option “-an” dans ffmpeg. Cela permet ensuite de virer “nosound” dans mplayer.

                                          1 réponse Dernière réponse
                                          0

                                          Bonjour ! Vous semblez intéressé par cette conversation, mais vous n’avez pas encore de compte.

                                          Marre de refaire défiler les mêmes messages ? Créez un compte pour retrouver votre position, recevoir des notifications des nouvelles réponses, sauvegarder vos favoris et voter pour les messages que vous appréciez.

                                          Grâce à votre participation, ce message peut devenir encore meilleur 💗

                                          S'inscrire Se connecter
                                          Répondre
                                          • Répondre à l'aide d'un nouveau sujet
                                          Se connecter pour répondre
                                          • Du plus ancien au plus récent
                                          • Du plus récent au plus ancien
                                          • Les plus votés


                                          • Se connecter

                                          • Vous n'avez pas de compte ? S'inscrire

                                          • Connectez-vous ou inscrivez-vous pour faire une recherche.
                                          Powered by NodeBB Contributors
                                          • Premier message
                                            Dernier message
                                          0
                                          • Catégories
                                          • Récent
                                          • Mots-clés
                                          • Populaire
                                          • Web
                                          • Utilisateurs
                                          • Groupes