
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (63)
-
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 (...) -
Récupération d’informations sur le site maître à l’installation d’une instance
26 novembre 2010, parUtilité
Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...) -
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 (...)
Sur d’autres sites (6607)
-
ultimate video player not working with one video (Uncaught in promise)
29 octobre 2018, par completeidiothereDohSo I have a small website that I have yet to launch using PHP / MySQL. One section there is a video player, and I am using the Ultimate video player script beecause it easily allowed me to change some codes to insert ads, etc. So far I’ve only added about 20 videos, mostly downloaded from archive.org. The uploads are processed using FFMPEG, specifically this command :
exec(’ffmpeg -i ’.$uploadfile.’ -f mp4 ’.$new_flv) ;I also do some other things with ffmpeg such as create an animated .gif and a video thumbnail. So far everything has worked. Prior to using the current video script I was using video.js and this issue didn’t happen. Once I switched over to the new script I noticed this one video won’t play. It acts like it wants to play (spinner spins for a few seconds) but ultimately goes back to the pre-play video thumbnail rather than playing the video.
I am experiencing this in Google Chrome, though the same thing using Edge. The Chrome console messages reads as follows : Uncaught (in promise) DOMException : The play() request was interrupted by a call to pause().
The video worked prior to switching to this video player. The file also works attempting to open in Windows. The file works opening directly in Chrome. Plus all other videos work except for this one. I contacted the author and was told that it sounds like an encoding issue and that he isn’t very good at that sort of thing.
I won’t post the paid script’s js source file here, but I guess I am wondering if anything I’ve listed points to maybe he is correct (although then why did it work in video.js and not uvp ?) and my rudimentary ffmpeg mp4 conversion command needs some work, or else perhaps some of the research I’ve done on this google chrome console message can fix the issue. I don’t believe I can make the corrections myself but I’m curious if anyone suspects this is really an encoding issue.
I’ve only managed to add about 20 videos, so so far 1/20, or 5% videos aren’t working. I am worried that ignoring a video that isn’t working now, once there are thousands of videos, then maybe 100 won’t work, etc. Furthermore, although probably mostly SERPS (since I haven’t technically launched yet), the video in question has the most views haha. So if it is attracting more organic traffic than the other videos I would obviously like to have it working again.
I may need to move back to video.js, but the reason I switched was I was having a difficult time (not being an excellent coder) attempting to implement an ads system. Oh well, thanks if anyone has any suggestions or ideas.
-
Add file name to video (drawtext) - Cannot find a valid font for the family Sans Error Ffmpeg [duplicate]
18 mars 2019, par Oli ShingfieldThis question already has an answer here :
I have a folder with a couple of short videos in, I would like to add the file names of the videos in the video in the bottom right corner while converting them from mov to mp4. I have tried using :
@echo off
set "INPUT=E:\Users\Oli Shingfield\Documents\Projects\v1.3.1\downloads3"
for %%a in ("%INPUT%\*.mov") do (
ffmpeg -i "%%~a" -vf drawtext=text="%%~na":x=105:y=120:fontfile="E:\Users\Oli Shingfield\Documents\Projects\v1.3.1\downloads3\impact.ttf":fontsize=25:fontcolor=white -b:v 1M -r 60 -b:a 320k -ar 48000 -crf 17 "%%~na.mp4"
)
pausebut I am getting the error :
[Parsed_drawtext_0 @ 000002548db70e00] Cannot find a valid font for the family Sans
[AVFilterGraph @ 000002548cd00a20] Error initializing filter 'drawtext' with args 'text=RP AS A WHOLE:x=105:y=120:fontfile=E:UsersOli_ShingfieldDocumentsProjectsv1.3.1downloads3impact.ttf:fontsize=25:fontcolor=white'
Error reinitializing filters!
Failed to inject frame into filter network: No such file or directory
Error while processing the decoded data for stream #0:0
[aac @ 000002548be61ae0] Qavg: 65536.000
[aac @ 000002548be61ae0] 2 frames left in the queue on closing
Conversion failed!It seems as though it can’t find the font file even though it’s in the same location and I am specifying the exact file path.
Has anyone got any ideas ? I’m baffled.
Thanks !
Oli -
Is there risk of shell/command injection when using FFmpeg or when there's no user input ?
10 mai 2021, par TrisI am new when it comes to thinking about the security of my web applications. I have done research on shell injections and most of the time they say to just avoid using shell/command calls in the web applications. However, my alternative seems to limit which browsers clients can use. So I would prefer executing a shell command in my nodejs server. I am using FFmpeg and calling it through system command in nodejs child processes.


I have a FFmpeg bash script like so :


VIDSOURCE="rtsp:cameraurl"
AUDIO_OPTS="-c:a aac -b:a 160000 -ac 2"
VIDEO_OPTS="-s 854x480 -c:v libx264 -b:v 800000"
OUTPUT_HLS="-hls_time 10 -hls_list_size 10 -start_number 1 -hls_wrap 10"
ffmpeg -i "$VIDSOURCE" -y $AUDIO_OPTS $VIDEO_OPTS $OUTPUT_HLS mystream.m3u8



I am wondering if I should worry about shell injection risk and if I should try another approach. I don't think there is any user input in this besides my own hard coded inputs. Therefore, I think it should be safe to use this script in a web browser... I just want to be safe and be sure. Thank you !