
Recherche avancée
Médias (1)
-
Bug de détection d’ogg
22 mars 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Video
Autres articles (44)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
Sur d’autres sites (11480)
-
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...


-
ffmpeg combined video increaes duration
4 septembre 2022, par Imants GulbisI am splitting video file in scenes and then process them. After processing and combining them I gain a lot of extra seconds. Original duration 24:29 after combining 24:59.


First I split video with this command


ffmpeg -i test.mkv -f segment -c copy -map 0 -y $HOME/Encoding/SPLIT/OUTPUT-%07d.mkv



And then I process each file encoding x264 to AV1 :


ffmpeg -i $HOME/Encoding/SPLIT/OUTPUT-0000125.mkv -map 0:0 -pix_fmt yuv420p10le -strict -1 -f yuv4mpegpipe /tmp/fifo_stream

SvtAv1EncApp -i /tmp/fifo_stream --profile 0 --preset 6 --qp 35 --max-qp 63 --min-qp 1 --rc 0 --keyint 240 --input-depth 10 --crf 30 --rc 0 --passes 2 --film-grain 0 -b $HOME/Encoding/CONVERTED/OUTPUT-0000125.ivf



and store information about every converted file in $HOME/Encoding/list.txt file


Then I combine files :


ffmpeg -f concat -safe 0 -i $HOME/Encoding/list.txt -y $HOME/Encoding/encoded.mp4



result video gained extra 30 seconds. Someone knows what to do so that combined file duration will be same as original ?


-
Ffmpeg : How to remove text drawnusing drawtext
27 septembre 2015, par ramUsing the below command to draw text over a video file.
ffmpeg -i /home/user/source.mp4 -vf "drawtext=fontfile=/usr/share/fonts/truetype/msttcorefonts/Times_New_Roman_Bold.ttf: text='Sample text':fontsize=40:x=300:y=100" /home/user/destination.mp4
Question 1 : Will there be any way by which i could remove text drawn ("Sample text") from the final video "/home/user/destination.mp4" and have a new mp4 with the same video data without the text drawn ?
Question 2 : Is there any way to know what was the text added to the video "/home/user/destination.mp4" ?