
Recherche avancée
Autres articles (47)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (12624)
-
Revision ee4649ded2 : Simplify vp9_adapt_nmv_probs Remove the temporary branch count arrays and build
11 mars 2013, par John KoleszarChanged Paths : Modify /vp9/common/vp9_entropymv.c Simplify vp9_adapt_nmv_probs Remove the temporary branch count arrays and build the adapted probabilities while walking the tree. Gives an additional 1.5% or so on CIF. Change-Id : (...)
-
Parsing x264 to LibAV in C
26 mai 2018, par Stephan PichFor a Project in School I have to encode and mux a Yuv File to mp4 using the Libav and lib x264 explicitly. I’ve already managed to encode the File to h264 using the libx264 but now i’m stuck muxing them into mp4.
I know that I’ve to write the NALU Packages into the file but I’ve no Idea how to turn the NALU to AVFrame or AVPacket.
Thanks for your help in advance.
-
Cronjob does not run launcher.sh [closed]
4 novembre 2024, par WessiezI want to Run a script after a reboot ;


The Pythonscript that I want to run called baby.py :


import os

os.system("ffplay -i home/pi/dir/anything.mp4 -loop 0 -fs")



The launcher script :


#!/bin/sh
# launcher.sh
# navigate to home directory, then to this directory, then execute python script, then back home

cd /
cd /home/pi/dir
sudo python3 baby.py
cd /



And at last the crontab code :


@reboot sh /home/pi/dir/launcher.sh >/home/pi/logs/cronlog 2>&1



The problem is that after a reboot it shows a flash of the mp4, and then the screen goes black.
The cronlog gives an error as below :


error: XDG_RUNTIME_DIR is invalid or not set in the environment.
Input #0, mpeg, from 'home/pi/dir/anything.mp4':f=0/0
 Duration: 00:00:14.02, start: 0.300300, bitrate: 6426 kb/s
 Stream #0:0[0x1bf]: Data: dvd_nav_packet
 Stream #0:1[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, progressive), 720x480 [SAR 32:27 DAR 16:9], 6000 kb/s, 29.97 fps, 29.97 tbr, 90k tbn
 Side data:
 cpb: bitrate max/min/avg: 6000000/0/0 buffer size: 1835008 vbv_delay: N/A
 Stream #0:2[0x80]: Audio: ac3, 48000 Hz, stereo, fltp, 320 kb/s
 1.01 A-V: 0.016 fd= 5 aq= 40KB vq= 992KB sq= 0B f=0/0



What is wrong ? Do I have to at some timestamp in the baby.py script ?


I tried to change the video in a .vob instead of the mp4. But the result is the same.


When I run the script in a terminal : python3 home/pi/dir/baby.py, it works like it should.
When I run the sh launcher.sh command : the video plays, but there's no sound to it...